L
lark1
Unregistered / Unconfirmed
GUEST, unregistred user!
aa.dll中被调用函数
extern "C" __declspec(dllexport) AnsiString __stdcall Login(AnsiString username)
{...
username=FrmLogin->Edt_UserName->Text;
...}
调用方式如下
String retValue;
AnsiString Username;
HINSTANCE hDLL;
hDLL = LoadLibrary("aa.dll");
Login = (_Login)GetProcAddress(hDLL, "Login");
retValue=Login(Username);
Edit1->Text =Username;
为什么不论被调用表单中输入什么,Edit1->Text 和Username总是返回空值?
extern "C" __declspec(dllexport) AnsiString __stdcall Login(AnsiString username)
{...
username=FrmLogin->Edt_UserName->Text;
...}
调用方式如下
String retValue;
AnsiString Username;
HINSTANCE hDLL;
hDLL = LoadLibrary("aa.dll");
Login = (_Login)GetProcAddress(hDLL, "Login");
retValue=Login(Username);
Edit1->Text =Username;
为什么不论被调用表单中输入什么,Edit1->Text 和Username总是返回空值?