若dll中有一函数
void F1()
{
}
现在要用这个函数创建一个窗口
void F1()
{
    WNDCLASSEX wc = {sizeof(WNDCLASSEX), CS_CLASSDC, WinProc, 0L, 0L, 
                     GetModuleHandle(NULL), NULL, NULL, NULL, NULL,
                     "DX Project 1", NULL};
    RegisterClassEx(&wc);
.
.
.
}
错误如下:
Compiling...
StdAfx.cpp
Compiling...
cfir.cpp
E:\Temp\C++\cfir\cfir.cpp(208) : error C2065: 'WinProc' : undeclared identifier
E:\Temp\C++\cfir\cfir.cpp(208) : error C2440: 'initializing' : cannot convert from 'int' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\Temp\C++\cfir\cfir.cpp(209) : error C2440: 'initializing' : cannot convert from 'struct HINSTANCE__ *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
E:\Temp\C++\cfir\cfir.cpp(210) : error C2440: 'initializing' : cannot convert from 'char [13]' to 'struct HBRUSH__ *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.cfir.dll - 4 error(s), 0 warning(s)Help~~~