Pechi
July 28th, 2003, 09:12 PM
My Code...(LoadLibrary and Get ASPI Enter).....
HINSTANCE hinstWNASPI32;
hinstWNASPI32=LoadLibrary("WNASPI32");
if(!hinstWNASPI32)
{/*LoadLibrary Success....*/}
BOOL(*pfnGetASPI32Buffer)(PASPI32BUFF);
pfnGetASPI32Buffer=GetProcAddress(hinstWNASPI32,"GetASPI32Buffer");
But, I Compiling have Error:
--------------------Configuration: x1 - Win32 Debug--------------------
Compiling...
x1.cpp
c:\documents and settings\administrator\®à_±\x1\x1.cpp(332) : error C2440: '=' : cannot convert from 'int (__stdcall *)(void)' to 'int (__cdecl *)(ASPI32BUFF *)'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.
x1.exe - 1 error(s), 0 warning(s)
Have anyone can tell me how to fix this error?
and could you give me a Example ??
thanks.
:(
HINSTANCE hinstWNASPI32;
hinstWNASPI32=LoadLibrary("WNASPI32");
if(!hinstWNASPI32)
{/*LoadLibrary Success....*/}
BOOL(*pfnGetASPI32Buffer)(PASPI32BUFF);
pfnGetASPI32Buffer=GetProcAddress(hinstWNASPI32,"GetASPI32Buffer");
But, I Compiling have Error:
--------------------Configuration: x1 - Win32 Debug--------------------
Compiling...
x1.cpp
c:\documents and settings\administrator\®à_±\x1\x1.cpp(332) : error C2440: '=' : cannot convert from 'int (__stdcall *)(void)' to 'int (__cdecl *)(ASPI32BUFF *)'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.
x1.exe - 1 error(s), 0 warning(s)
Have anyone can tell me how to fix this error?
and could you give me a Example ??
thanks.
:(