c语言生成dll文件 c 如何导出dll中的类,没有头文件的那种?
c 如何导出dll中的类,没有头文件的那种?Typedef bool(WinAPI*lpfsetlayeredwindowattributes)(hWnd,colorref,byte,DWORD)/
c 如何导出dll中的类,没有头文件的那种?
Typedef bool(WinAPI*lpfsetlayeredwindowattributes)(hWnd,colorref,byte,DWORD)//函数类型address
hinstance Muhinctance=LoadLibrary(“User32.DLL”)
if(Muhinctance)//加载名为User32的DLL。DLL
mupfsetlayeredwindowattributes =(lpfSetLayeredWindowAttributes)GetProcAddress(muhinctance,“setlayeredwindowattributes”)//获取名为setlayeredwindowattributes的函数的地址