LIBRARY "TestDll"
DESCRIPTION "TestDll"
EXPORTS
;Add
/*
int __stdcall Add(int a,int b)
{
return a+b;
}
*/
#pragma comment(linker,"/export:Add=OrgTestDll.Add,@1")
// callDll.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int __stdcall Add(int a,int b);
#pragma comment(lib,"TestDll.lib")
int main(int argc, char* argv[])
{
printf("Hello World!%d\n",Add(2,3));
return 0;
}