urgent! how to give back values from a pb.dll

Just starting out? Need help? Post your questions and find answers here.
kimio
New User
New User
Posts: 8
Joined: Sat Jul 19, 2003 10:37 am
Location: heidelberg / germany

urgent! how to give back values from a pb.dll

Post by kimio »

hello!

is there anyone who can tell me how to give back values from an pb.dll?

no problem to send values to my pb.dll - but how can i send parameters back? (like: return_values(1,2,"hallo",etc.)

ProcedureDLL MyFunction(in_value.l)
MessageRequester("Hello", Str(in_value), 0)
...
operations...
result=result of in_value
...

EndProcedure (----> return_value?)


thanks a lot in advance!

kimio
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

Shouldn't the normal way work?

Code: Select all

ProcedureDLL.l returnLong()
  Protected result.l
.
.
  ProcedureReturn result
Endprocedure
%1>>1+1*1/1-1!1|1&1<<$1=1
kimio
New User
New User
Posts: 8
Joined: Sat Jul 19, 2003 10:37 am
Location: heidelberg / germany

yes.....i just found it here in the forum

Post by kimio »

thanks for the quick reply! for my program its ok that i can give back only one value.

i just was not able to find this ProcedureReturn in the pb-help.

kimio
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

well, a search in the help file would have led you to procedure() which shows the use of procedurereturn() :-)

on the other hand, it's funny one of themost important keywords procedure() isn't listed in the index!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply