Hi,
I think that the problem is that the windows kernel
(wine) is not initialized at this time (when the
constructors in MFC global objects are invoked at the
begining, before the 'main()') and you can't call any
kernel function. 

I sugest you to write your app as a .so lib and to
write a small loader. which can perform additional
LoadLibrary'c in it's WinMain routine to load MFC and
your app.

I follow this techique and manage to run a program
that use a MFC.

The next step will be to avoid GPF when the app is
terminating. Today I solve this by removing any
'atexit(..)' calls from MFC and touch some wine
sources to force FreeLibrary to unload a shared
library.
in relay32/builtin32.c:
BUILTIN32_UnloadLibrary() and
BUILTIN32_LoadLibraryExA()
may be I am badly wrong to change something here but
this was a place in which I manage to force unloading
of libs.


Regards,
Damyan

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

Reply via email to