...
wait:)

解决方案 »

  1.   

    example:extern "C" __declspec(dllexport) void _stdcall YourFunc(.....)
    {}这样就可以了,需要改变的就是void、YourFunc和参数
      

  2.   

    如下:
    HINSTANCE hInst = LoadLibrary("User32.DLL"); 
    if(hInst) 

    typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD); 
    MYFUNC fun = NULL;
    //取得SetLayeredWindowAttributes函数指针 
    fun=(MYFUNC)GetProcAddress(hInst, "SetLayeredWindowAttributes");
    if(fun)fun(this->GetSafeHwnd(),0,210,2); 
    FreeLibrary(hInst); 
    }
      

  3.   

    定义def文件~
    或者采用C的调用形式……
    extern "C" __declspec(dllexport) 
    http://www.csdn.net/expert/topic/1034/1034807.xml?temp=2.790469E-02
    look this~
      

  4.   

    定义def文件~
    或者采用C的调用形式……
    extern "C" __declspec(dllexport) 
    http://www.csdn.net/expert/topic/1034/1034807.xml?temp=2.790469E-02
    look this~