I read all you have written about manifest here ... but find no solution to resolve my problem!!!
Here is the situation :
I work on a big application where the main application is written in VB6 ... This VB6 application call method of some home made DLL written in C++ using VC6 ...
I want that my application and all DLL show XP theme GUI ... So I call InitComCtrl method in the Form_Initialize of my VB6 application ... and I add a manifest (MyAppName.exe.manifest) in the same directory of my exe file.
When I start my Application ... All seems to work fine and GUI is XP themed ...
And then the application crash for no reason!! I debug that, and found that a DLL Call the method GetClassInfo and the call succeed (return TRUE) but it return the WNDCLASS lpfnWndProc member set to 0xffff04df... That is an invalid address!!!
So the crash occur because this DLL Subclass a ListBox Window and try to forward message to the original WndProc returned in the WNDCLASS lpfnWndProc ... That is invalid...
I not that the GetClassInfo method only return invalid WinProc address when the manifest is present!!
Somebody understand something in that??
Some body could help me??