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静态载入还要注意什么谢谢