Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am currently trying to get MinGW (a Windows port of GCC) to compile a Win32 DLL that interacts with an EXE I made using VC++. The problem is: in GCC it appears that when I obtain pointers to C++ objects that have a virtual table, I get the address the first "real" data member and not the address of the hidden vtable data member. The EXE assumes that the pointer to the object is the address of the vtable data member. I tried using the "-fvtable-thunks" option, but it did not correct the problem. Is there some other option that I can use, or am I just out of luck?
Thanks in advance,