082-C++Bulider高级应用分析报告.pptVIP

  • 1
  • 0
  • 约1.07万字
  • 约 42页
  • 2016-11-14 发布于湖北
  • 举报
// 以下两行对需要调用的输入函数进行说明 extern C__declspec (dllimport)__stdcall int add (int a, int b); extern C__declspec (dllimport) char* SayHello (char* Name); //--------------------------------------------------------------------------- void__fastcall TForm1::Button1Click (TObject *Sender) { Label1-Caption = IntToStr (add (StrToInt (Edit1-Text), StrToInt (Edit2-Text))); } //--------------------------------------------------------------------------- void__fastcall TForm1::Button2Click (TObject *Sender) { Label1-Caption = SayHello (Edit1-Text.c_str ( )); } //-------------------------------------------

文档评论(0)

1亿VIP精品文档

相关文档