HINSTANCE PH=LoadLibrary(_T("APlayerCaller.dll"));

HWND hwnd = AfxGetMainWnd()->m_hWnd;

int hwndw = int(hwnd);
int aplayer;

typedef int (WINAPI*dll) (int hParent,int x,int y,int width,int height,int Onmessage,int OnStateChanged,int OnOpenSuccessed,int OnSeekCompleted,int OnBuffer,int OnVideoSizeChanged ,int OnDownloadCodec,int OnEvent);
dll dll_add;
if (PH!=NULL)
{

dll_add=(dll)GetProcAddress(PH,"APlayer_Create");
aplayer=dll_add(hwndw,1,32,200,200,0,0,0,0,0,0,0,0);

}else {
MessageBox(_T("dll加载失败"));
}

//调用dll APlayerCaller.dll

//dll 命令 APlayer_Create

05-11 11:07