7,763
社区成员
发帖
与我相关
我的任务
分享
extern "C" __declspec(dllexport) unsigned int __stdcall WINAPI SetPath(CString FileDir);
unsigned int __stdcall WINAPI SetPath(CString FileDir)
{
AfxMessageBox(FileDir);//第1步
FileDir=FileDir+"\1";//第2步
AfxMessageBox(FileDir);//第3步
return 1;
}
Declare Function SetPathLib "MyDLL" _
(ByVal FileDir As String) As Integer
Private Sub Command18_Click()
Dim r As Single
r = SetPath(App.Path)
End Sub