Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Acess DBP Functions from DLL

Author
Message
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Dec 2008 05:42 Edited at: 7th Dec 2008 06:03
I've been searching for hours and I can't find what I'm looking for.

I'm learning how to make plugins, and up to now it was going pretty good.

However the trouble comes when trying to access DBP functions from within DBP. The weird part is, I can access 'Core' functions fine; I just can't access anything else. (2D, 3D, etc.)

The following works fine:



However this code crashes when I run a DBP project and use the function:



So could someone offer me some functional code on accessing DBP functions from a DLL so that I can get a clue on what to do? This is realllllly bugging me.

EDIT:

Oops. Typo in title.

EDIT 2:

ahh, nevermind. I got it working. Apparently I have to use a command from the same DLL that my function is from in the same program. For instance, this works:



but this doesn't



IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Dec 2008 14:33
It doesn't have to be that way. Lee added a method for you to specify which plug-ins are required for your plug-in into the runtime.

Here's the code I use, excerpted from my of my own plug-ins:


It's organised in such a way that you only have to edit the list of DLLs in the Dependencies array.

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Dec 2008 14:49
Sweet! Thanks.

Login to post a reply

Server time is: 2024-04-25 09:47:38
Your offset time is: 2024-04-25 09:47:38