August 29th, 2012, 11:30 AM
Ok if I write :
long *l = &(cgm.o->m_metafileVersion);
it should be :
a = 0x053e3d28
&(cgm.o->m_metafileVersion) = 0x053e3d28
but it is :
a = 0x053e3d50
&(cgm.o->m_metafileVersion) =...
August 29th, 2012, 10:15 AM
I tried and there is no runtime error.
as I told you,
long *l = &(cgm.o->m_metafileVersion);
doesn't work as it should be, that's why I try to find help here. I don't understand.
I've got...
August 29th, 2012, 07:43 AM
I dont see what I have to do with your links.
I tested the lib in a new simple main program, and I have the error too. So Maybe it comes from the lib, but how? The error seems to come from the IDE,...
August 29th, 2012, 07:12 AM
errh, the object "o" points to a data structure, a class, from the library I use (it's a lib to read cgm files)
Do you think the lib has a problem? or my EDI (Visual Studio)?
August 29th, 2012, 04:42 AM
yeah I know it's weird... but I don't even know, who can I speak to to get help...
August 29th, 2012, 03:47 AM
after! I put a break point at the following instruction.
August 29th, 2012, 03:29 AM
Why it is weird?
because "a" is a pointer and it get the adresse of cgm.o->m_metafileVersion.... so unless I woke up in a parallel world, where the C++ rules would be different, "long *a" should...
August 29th, 2012, 02:44 AM
Alright, here is my piece of code :
long *a = &(cgm.o->m_metafileVersion);
I put a break point at the following instruction and when I look in the watch section of visual C++ 2010, I have...