// // link1.cpp // // # __declspec(dllimport)を使ってインポート、暗黙的リンク // #include #include "dll\test.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { int n= average(32,56); char buf[10]; ::wsprintf(buf,"%d",n); ::MessageBox(NULL,buf,"32と56の平均",MB_OK); return 0; }