G
GRenard
Hello,
We just switch in our company to VisualStudio 2005 and the new ATL
library.
We use a wrapper to use CFileDialog. Its name is CFileDialogDeluxe
Here the call
CFileDialogDeluxe oFileDialog( ... );
There are some problems in the debug, look the sizeof from the debug :
sizeof(oFileDialog) 1144 unsigned int
sizeof(CFileDialogDeluxe) 1156 unsigned int
sizeof((*(WTL::CFileDialog*)(&oFileDialog))) 1156 unsigned int
Now the CFileDialogDeluxe just call the constructor of CFileDialog, I
removed all the members from our class.
But when I put members, there are some offsets on the address which
make the program crashes when destructing variables.
So what can affect the sizeof of a variable like that because it
inserts offset of variables.
Thank you very much
Jean-Sébastien Goupil
We just switch in our company to VisualStudio 2005 and the new ATL
library.
We use a wrapper to use CFileDialog. Its name is CFileDialogDeluxe
Here the call
CFileDialogDeluxe oFileDialog( ... );
There are some problems in the debug, look the sizeof from the debug :
sizeof(oFileDialog) 1144 unsigned int
sizeof(CFileDialogDeluxe) 1156 unsigned int
sizeof((*(WTL::CFileDialog*)(&oFileDialog))) 1156 unsigned int
Now the CFileDialogDeluxe just call the constructor of CFileDialog, I
removed all the members from our class.
But when I put members, there are some offsets on the address which
make the program crashes when destructing variables.
So what can affect the sizeof of a variable like that because it
inserts offset of variables.
Thank you very much
Jean-Sébastien Goupil