Dll that send result to a procedure on the calling

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

I want to make a dll that makes some things and return the result to a process on the calling exe.
My dll is supposued to run with a VB executable.

I have used some dlls that return results in a procedure of the calling application if the calling app gives a pointer to the procedure.
Okay, i want to do exactly that.
That my VB code send a pointer to its procedure (function in VB) but, how do i return teh result to this procedure from my PB dll?

Hope i make my self clear :)

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

So you have a pointer to a procedure and whant to call it with it's arguments, do I understand right?
Well, that would be just:

CallFunctionFast(Pointer.l, Argument1, Argument2, [...] )

Timo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Thanks Freak

If you think it this is an easier way to pass strings betwen applications or even structures.
In my case i need to pass a percent of the work done and another info, so i will use this way to pass as many info as i need.

Thanks again!!

Best Regards

Ricardo

Dont cry for me Argentina...
Post Reply