C++动态导出问题

[复制链接]
 楼主| yybj 发表于 2012-3-7 18:17 | 显示全部楼层 |阅读模式
#pragma once
#ifndef DLL_H
#define DLL_H
#ifndef DLLEXPORT
#define DLLEXPORT __declspec(dllexport)
#endif
#ifndef DLLIMPORT
#define DLLIMPORT __declspec(dllimport)
#endif
#ifndef EXTERNC
#define EXTERNC extern "C"
#endif
#ifndef EXTERNCC  
#define EXTERNCC extern "C++"  
#endif
#include <string>
using namespace std;
为什么我在c++中调用,会无法定位呢?这是怎么回事?
火箭球迷 发表于 2012-3-7 18:27 | 显示全部楼层
一般来说,不要在导出函数里使用对象,用原生指针
xsgy123 发表于 2012-3-7 20:54 | 显示全部楼层
你把问题弄复杂了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

175

主题

2496

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部