[vlc-devel] ActiveX: failed to load DLL

Howard howard at starvedia.com
Thu Feb 21 03:17:01 CET 2008


Hi,

So if I link the ABC.dll at build time, then I would be able to load it
successfully?

I don't have experience about this. Sorry for the question.

Thank you for the help.

 

Howard.

 

 

  _____  

From: vlc-devel-bounces at videolan.org [mailto:vlc-devel-bounces at videolan.org]
On Behalf Of Damien Fouilleul
Sent: Wednesday, February 20, 2008 6:30 PM
To: Mailing list for VLC media player developers
Subject: Re: [vlc-devel] ActiveX: failed to load DLL

 

 

libvlc.dll is linked at build time, which means that LoadLibrary() is
performed automatically by windows when axvlc.dll loads.

 

regarding your problem, they are 2 issues you need to consider when using
LoadLibrary(TEXT("ABC.dll"))

 

- ABC.dll cannot be found because it is not reachable from PATH or isn't in
the same directory as loader (.i.e AXVLC.DLL)

- ABC.dll has external dependencies (i.e it needs to load DLLs itself) which
cannot be found

 

you will need to examine the error from GetLastError() to find out what
happenned.

 

Damien

 

 

On 20 Feb 2008, at 06:26, Howard wrote:





Hi all,

          Does anyone know how the ActiveX loads the libvlc.dll?  

I wanna load a dll, say, ABC.dll in the getVLC() in activex/plugin.cpp and I
made a cab file including the ABC.dll with libvlc.dll, axvlc.dll and other
plugins of the VLC.

However, the return value of LoadLibrary( TEXT("ABC.dll") ) is always a null
pointer.

I also tried to load other library which was included in the cab file, say
libaccess_udp_plugin.dll, as well as the ABC.dll but it was success.

Can anyone tell me why?

Please!

 

PS. I'm running this on windows XP with service pack 2.

PS. The ABC.dll was compiled separately, not with VLC.

 

Best Regards,

 

Howard.

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel




__________ NOD32 2887 (20080219) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080221/2cdd862b/attachment.html>


More information about the vlc-devel mailing list