一个突发奇想的问题(关于使用DLL内中的函数或类对象)?

hk318 2000-04-29 12:18:00
现在 C++BUILDER 5。0 下编一DLL文件。(工程名:mydll)

// declare in the header file aa.h
[注意声明] class declspec(dllexport) myclass{
public:
myclass(void);
A(void);
B(char *);
};
实现过程略。。。

编译后,导出 mydll.lib ,mydll.dll 在 C++Builder 中调用没问题
// #include in the header file bb.h
[注意声明] class declspec(dllimport) myclass{
public:
myclass(void);
A(void);
B(char *);
};

现提出的问题是:能否在VC中调用
myclass c1;
c1.A();
c1.B();

????(有无附加条件??)
...全文
157 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pcly 2000-06-02
  • 打赏
  • 举报
回复
Please Look it in your DLL and you will find it is not the same but ...
pcly 2000-06-02
  • 打赏
  • 举报
回复
Try Your best and you'll find it !

552

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder 茶馆
社区管理员
  • 茶馆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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