// dlltest1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" // 隐式调用dll:h、lib、dll; // 注意,此时头文件没有定义dllexport,使用是的dllimport; #include "..\win32dll\win32dll.h" /* #ifdef _DEBUG #pragma comment(lib,"..\\Debug\\win32dll.lib") #else #pragma comment(lib,"..\\Release\\win32dll.lib") #endif */ #pragma comment(lib,"..\\..\\..\\..\\bin\\win32dll\\win32dll.lib") int _tmain(int argc, _TCHAR* argv[]) { printf("test1=%d\n", add(3,9)); printf("g_result = %d\n", g_result); g_result = 100; printf("test1=%d\n", add2(3,9)); getchar(); return 0; }