负载库 [英] LoadLibrary

查看:59
本文介绍了负载库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我有个问题.我正在尝试在symatnec dll上使用LoadLibrary.它的出口如下所示,但我不知道从哪里开始.我以前在标准DLL上使用过LoadLibrary,但没有在类上使用过.

谁能看到使用此DLL的任何问题,有人可以帮助我.

Hi.

I have a problem. I am trying to use LoadLibrary on a symatnec dll. It''s exports are shown below but I don''t know where to begin. I''ve used LoadLibrary before on standard DLL''s but not classes.

Can anyone see any problems with using this DLL, could someone help me.

private: __thiscall Func::Func(void)
private: __thiscall Func::~Func(void)

public: int __thiscall Func::Clear(void)
public: int __thiscall Func::Init(void)
public: static class Func* __cdecl Func::New(void)
public: unsigned long __thiscall Func::Function(void)
public: void __thiscall Func::Delete(void)
public: void __thiscall Func::Free(void)



非常感谢.

我以前从未使用过该网站,所以请原谅.我刚刚找到了改进问题按钮.

我正在使用VS2005,但我现在希望下载Symantec C ++,尽管它看上去确实已经过时.



Thank you very much.

I have never used this website before so please forgive me. I have just found the improve question button.

I am using VS2005 but I am looking to download Symantec C++ now, although it does look very out of date.

推荐答案

这应该有帮助-
This should help - Using classes exported from a DLL using LoadLibrary[^]


为什么不采用标准的方法呢:通过使用其库文件隐式地dll?如果DLL导出了类,那么显然是要与隐式加载一起使用.
Why don''t you go with the standard way of doing it then: load the dll implicitely by using its library file ? If the DLL exports classes, then it is clearly meant to be used with implicit loading.


您是否正在使用Symantec的C ++编译器来调用要手动加载的函数? br/>
如果您不在,那将是一个充满伤害的世界.这不是不可能,但流浪汉完全痛苦.

干杯,

Are you using Symantec''s C++ compiler to call the functions you''re manually loading?

If you''re not then there''s a world of hurt coming your way. It''s not impossible but it''s a complete pain in the bum.

Cheers,

Ash


这篇关于负载库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆