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
urgent! how to give back values from a pb.dll
-
- Enthusiast
- Posts: 423
- Joined: Fri Apr 25, 2003 5:22 pm
- Contact:
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
yes.....i just found it here in the forum
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
i just was not able to find this ProcedureReturn in the pb-help.
kimio
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!

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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )