天啊~~~Delphi的高手呢?~~~~~
解决方案 »
- delphi算法的问题。算法帝在哪里?求大师
- 谁有Delphi5开发人员指南和Delphi6开发人员指南原版书
- 怎样用QTplugin.ocx播放mov文件?
- 有关EXCEL的记录数
- 请问如何禁用窗体的最大化、最小化以及关闭?
- 在DBGRID中怎样在"每一行"的双击下编程
- 怎样让edit.text输入1到9时,自动变为01,02....?????
- 关于程序执行DTS包文件出现"执行已被用户取消"的问题,江湖救急阿急急!!!!!!!!
- !!!怎样用GSM模块(手机modem)发中文短讯,英文的我已实现。
- 发生异常后,如何在异常中断处继续执行!
- 有没有人见过由中国人自己研制成功的语言及相应的编译器或IDE?
- 没人会SOAP吗?天啊...我太超前了,110分想送,请进
function GetCharInd(zzchar: PChar):char; stdcall;//BCB
typedef char (__stdcall *TGetCharInd)(PChar);TGetCharInd GetCharInd = NULL;void __fastcall TForm1::Button1Click(TObject *Sender)
{
AnsiString DLLFile = "C:\\project2.dll";
HINSTANCE hHandle = LoadLibrary(DLLFile.c_str());
try
{
AnsiString ProcName = "GetCharInd";
GetCharInd = (TGetCharInd)GetProcAddress(hHandle, ProcName.c_str());
if (GetCharInd == NULL)
ShowMessage("GetProcAddress Error");
else
{
char C = GetCharInd(Edit1->Text.c_str());
if (C == '\0')
ShowMessage("#0");
else
ShowMessage(C);
}
}
__finally
{
FreeLibrary(hHandle);
GetCharInd = NULL;
}
}