查看dll函数

dumpbin -exports (dll地址)

	HINSTANCE g_hSFCSDll = NULL;
	g_hSFCSDll = LoadLibrary(".\\SFCSDll.dll");
	CString szMsg = "SUCCESS";
	if(!g_hSFCSDll)
	{
		szMsg = "Load Library Fail.[SFCSDll.dll]";
		return;
	}

	typedef BOOL (*SFCS)(int nFunIndx, CString szStage, CString szData[], int nSize, CString &szErrMsg);
	SFCS SFCSGapStep = NULL;
	SFCSGapStep = (SFCS)GetProcAddress(g_hSFCSDll, MAKEINTRESOURCE(1));

	if(SFCSGapStep == NULL){
		::AfxMessageBox("get function address failed");
		return; }

你可能感兴趣的:(c++)