Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

How to load other dll in constructor | CPP

Still a little green? Ask your beginner's questions here

How to load other dll in constructor | CPP

Postby barakooda » Wed Sep 04, 2019 2:12 pm

Hi there,
I want to load second dll in constructor,
what is recommended way to do so?
can I retrieve somehow the path to the plugin dll ?

thank you !
B.
User avatar
barakooda
 
Posts: 669
Joined: Fri Nov 27, 2009 5:08 pm

Re: How to load other dll in constructor | CPP

Postby malcolm » Wed Sep 11, 2019 6:23 pm

Easiest is just to have your .dll be linked against the other .dll so you don't need to manually load it.
If you need to load manually then you'll need to use LoadLibrary/LoadLibraryEx and potentially deal with the issues with .dll search paths.
The path the plugin's .dll in would be helpful for this, so I'll add that to the OP_NodeInfo class for future builds in 2019.30000
User avatar
malcolm
Staff
 
Posts: 4428
Joined: Tue Nov 13, 2007 1:11 am


Return to Beginners

Who is online

Users browsing this forum: Bing [Bot] and 18 guests