mapbasic 调用dll时总出错,以下是dll内容,请大侠帮看下

mysummering 2017-04-10 11:20:56
//头文件:
//#pragma once
#ifdef sayhello_EXPORTS
#define sayhello_API __declspec(dllexport)
#else
#define sayhello_API __declspec(dllimport)
#endif

namespace say
{
// This class is exported from the MathFuncsDll.dll
class Myhello
{
public:
// Returns a + b
static sayhello_API int sayhello();


};
}

//cpp文件:
#include "stdafx.h"
#include "sayhello.h"
#include <stdexcept>

using namespace std;

namespace say
{
int Myhello::sayhello()
{
return 1;
}
}

//def文件:

LIBRARY
EXPORTS
sayhello

...全文
764 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧