测试环境:VS2010 win7 64位
C++项目准备:
包含文件C++test.h和C++test.cpp
—其中C++test.h:
#include <iostream>
extern "C" __declspec(dllexport) int sumTest1(int dataA, int dataB);//方式1
__declspec(dllexport) int sumTest2(int dataA, int dataB);//方式2
—其中C++test.cpp
#include "C++Test.h"
int sumTest1(int