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 / Make a DLL for blending 2 images?

Author
Message
enderleit
16
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 21st Aug 2008 04:33
Hey peeps!

I am trying to make a .dll to replace this function:



I have finally found out how to actually make a dll and call the function in DBP, but how do i actually get the memblock pointer to c++ and access it in the c++ code?

I have been messing around with pointers... but can't seem to get it to work...

If anyone could point me in the right direction, I would be really appreciative.

A simple example to show how i get the data through pointers and alter it.

- enderleit
[href]www.eleit.dk[/href]
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 27th Aug 2008 15:23
To import the command to retreive the pointer to a memblock, you first have to declare this outside the function:


(you can also do this inside the function but this way you won't have to declare it for every function you wrote).

Then, to access the command, you first use this part:
which is pretty much a check to see if the memblock DLL has been loaded by DBP (you can force this in DBP by using a simple memblock command that doesn't even have to be used)

to call the command afterwards, you simply use

If I made a mistake somewhere, someone correct me.
This is how I would do it anyway.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
chunks chunks
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 30th Aug 2008 02:30 Edited at: 30th Aug 2008 02:32
ive made a dll to blend using that function you provided , ive also added the c++ source so ya can see how i did it ..

credit to Aaron miller i use part of his plugin sdk....

chunks

toshiba satellite 1.6 core duo + nvidia geforce go 7300
windows xp pro.

Attachments

Login to view attachments
enderleit
16
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 14th Sep 2008 12:09
Thanks guys... very helpful!

- enderleit
[href]www.eleit.dk[/href]

Login to post a reply

Server time is: 2024-04-23 10:07:14
Your offset time is: 2024-04-23 10:07:14