以下是vc中的函数声明:<br>#define DLLEXPORT_API extern "C"__declspec(dllexport) <br>DLLEXPORT_API LONG __stdcall VIDEO_SetValueGetCallBack(BOOL(CALLBACK* fOsdCallBack)(LPVOID OsdHandle,char* pBuf, DWORD dwBufLen,void *Context), void *Context);<br>DLLEXPORT_API LONG __stdcall VIDEO_GetValueConfig(LONG lUserID,DWORD dwCommand, DWORD lChannel,LPVOID lpOutBuffer, DWORD dwOutBufferSize, DWORD* lpBytesReturned);<br>//调用<br>void Cmfc1Dlg::OnBnClickedButton2()<br>{<br> // TODO: 在此添加控件通知处理程序代码<br> DWORD lpBytesReturned = 0;<br> VIDEO_SetValueGetCallBack(fOsdCallBack,(void*)this);<br> VIDEO_GetValueConfig(m_lServerID, CMD_1, 0,&m_hOsdHandle,0,&lpBytesReturned);<br>}<br>//回调<br>BOOL __stdcall fOsdCallBack(void * OsdHandle, char* pBuf, DWORD dwBufLen, void *nUser)<br>{<br><br>}