锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
鍒氭墠鑺變簡澶ф妸鏃墮棿鍐欑殑涓緥瀛?br>
//useyumen.cpp
#include <stdio.h>
#pragma comment(lib, "..\\yumen\\Debug\\yumen.lib")
extern"C" __declspec(dllimport) Add(int x, int y);
int main()

{
printf("%d", Add(3, 5));
return 0;
}

/**//**//**///////////////////浠ヤ笅鏄痗onsole 鐨?nbsp;DLL宸ョ▼
//yumen.h
#ifndef YUMEN_H
#define YUMEN_H
extern "C" int __declspec(dllexport) Add(int x, int y);
#endif
//yumen.cpp
#include "yumen.h"
int Add(int x, int y)

{
return x + y;
}
鍙戠幇濡傛灉鏄被鐨凞LL錛岃皟鐢ㄨ搗鏉ユ瘮杈冩柟渚褲傘傘?nbsp;
]]>