calldll.cpp

来自「操作系统上机实验报告」· C++ 代码 · 共 17 行

CPP
17
字号
// CallDll.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
extern "C" int __declspec(dllexport) add(int x,int y);
extern "C" int __declspec(dllexport) sub(int x,int y);
int main(int argc, char* argv[])
{
	printf("Hello World!\n");
	int Add,Sub;
	Add=add(8,6);
	Sub=sub(8,6);
	printf("Add=%d,Sub=%d\n",Add,Sub);
	return 0;
}

⌨️ 快捷键说明

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