Andrew Ziem ahziem1@mailbolt.com writes:
+typedef void (*_INITTERMFUN)(void); +unsigned int (WINAPI *p_initterm)(_INITTERMFUN *,_INITTERMFUN *);
Msvcrt functions are not WINAPI. And why don't you simply call the function directly instead of loading it dynamically?
Alexandre Julliard wrote:
+typedef void (*_INITTERMFUN)(void); +unsigned int (WINAPI *p_initterm)(_INITTERMFUN *,_INITTERMFUN *);
Msvcrt functions are not WINAPI.
Thanks for catching that.
And why don't you simply call the function directly instead of loading it dynamically?
Dynamic loading was the easier solution to the problem "LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'" when compiling with MSVC7. Now, I found msvcrt.lib, so I'll test and resubmit.
Andrew
Alexandre Julliard wrote:
Andrew Ziem ahziem1@mailbolt.com writes:
+typedef void (*_INITTERMFUN)(void); +unsigned int (WINAPI *p_initterm)(_INITTERMFUN *,_INITTERMFUN *);
Msvcrt functions are not WINAPI. And why don't you simply call the function directly instead of loading it dynamically?
I found the second problem. To avoid warning implicit declaration of function ‘_initterm’ when compiling the test data.c, where should _initterm be declared? In a new dlls/msvcrt/data.h?
Andrew