procedure showauthor;stdcall;
begin
Form1:=TForm1.Create(Application);
Form1.ShowModal;
end;function CheckRed_Green(i:Integer;ComNum:Integer):PChar;stdcall;
。function CheckRed_Green_C(i:Integer;ComNum:Integer):PChar;cdecl ;
{
result:=CheckRed_Green(i:Integer;ComNum:Integer);
}exports
CheckRed_Green,
CheckRed_Green_c,
showAuthor;因为我没有C++的环境,不知道这样可以不?
1、如果delphi调用就调用CheckRed_Green,如果C++调用就调用CheckRed_Green_C
2、dll静态载入还要注意什么谢谢
begin
Form1:=TForm1.Create(Application);
Form1.ShowModal;
end;function CheckRed_Green(i:Integer;ComNum:Integer):PChar;stdcall;
。function CheckRed_Green_C(i:Integer;ComNum:Integer):PChar;cdecl ;
{
result:=CheckRed_Green(i:Integer;ComNum:Integer);
}exports
CheckRed_Green,
CheckRed_Green_c,
showAuthor;因为我没有C++的环境,不知道这样可以不?
1、如果delphi调用就调用CheckRed_Green,如果C++调用就调用CheckRed_Green_C
2、dll静态载入还要注意什么谢谢
解决方案 »
- MDI主窗体下调用DLL窗体,最大化后窗体显示问题
- 勿忘国耻-纪念七七事变 70周年--给自己上上历史课,一个民族不能忘记自己的历史!!!请大家顶上去
- 关于软件注册的问题
- 帮忙解决错误 '80004005',Optional feature not implemented
- 菜鸟问题,控件安装
- 请问 工具栏中那些只有在鼠标放在上面时才凸出来的按钮是怎么做的?
- 不知道大家有没有遇见这个问题,斑竹,我向你诉苦了。
- 300分求助,实现这个论坛的自动回复(老婆安排的任务)
- 在INSERT INTO 中插入整数变量,100分,来者有分
- 新手delphi遇到的一个小问题
- 倒计时延时
- 让文件夹下的图片动画显示出来
增加一个给C的函数
function CheckRed_Green_C(i:Integer;ComNum:Integer):PChar;cdecl;
begin
result:= CheckRed_Green(i,ComNum);
end;