Page 1 of 1

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

Posted: Wed Oct 29, 2003 12:28 pm
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

Posted: Wed Oct 29, 2003 12:55 pm
by Froggerprogger
Shouldn't the normal way work?

Code: Select all

ProcedureDLL.l returnLong()
  Protected result.l
.
.
  ProcedureReturn result
Endprocedure

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

Posted: Wed Oct 29, 2003 1:00 pm
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

Posted: Wed Oct 29, 2003 2:14 pm
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!