//dlltest.h文件如下
#ifndef _LIB_H_
#define _LIB_H_#ifndef DLL_EXPORT
#define DECLDIR __declspec(dllexport)
#else
#define DECLDIR __declspec(dllimport)
#endifbool DECLDIR __stdcall GetCamerFrame(int CamerId, int &Count);#endif //dlltest.cpp文件如下
#include "dlltest.h"
#include "windows.h"
bool APIENTRY DllMain(HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
    return true;
}
bool DECLDIR __stdcall GetCamerFrame(int CamerId, int &Count)
{
//略...
return true;
}
//以上Dll已编译成功,并dlltest.dll已放至正确目录//以下另一工程的按钮事件中调用
void CCamerDllDlg::OnBnClickedOk()
{
HINSTANCE hDll = 0;
hDll = LoadLibrary(_T("dllTest.dll")); 
if (0 == hDll) return;
void far *test = 0;
test = (void far*)GetProcAddress(hDll, "GetCamerFrame");
if (0 == test) return;
test();  //这里出错
FreeLibrary(hDll);
hDll = 0;
}
/*
在编译至test();这行出错,如下:
错误 2 error C2064: term does not evaluate to a function taking 0 arguments e:\camerdlldlg.cpp
*/
怎么改?