⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ccode.c

📁 《Delphi开发人员指南》配书原码
💻 C
字号:
#include "PasStng.h"

// globals
extern char * GLOBALVAR;

// exported data
char __export C_VAR[128];

#ifdef __cplusplus
extern "C" {
#endif

//externals
extern int __stdcall MessageBox(long, char *, char *, long);

//functions
int __export __cdecl SAYHELLO(char * hellostr)
{
  char a[64];
  memset(a, 64, 0);
  strcat(a, hellostr);
  strcat(a, " from Borland C++Builder");
  MessageBox(0, a, GLOBALVAR, 0);
  return 0;
}

#ifdef __cplusplus
}     // end of extern "C"
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -