Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I return a variable from a DLL

Status
Not open for further replies.

EricDraven

Programmer
Jan 17, 2002
2,999
GB
Hi all,

I can successfully call my DLL's and run their code then close them using the loadlibrary, getprocaddress procedures absolutely fine. My problem is that one of these DLL's creates two integer values which need to be returned to my main application and as I only started creating DLL's on friday, I have no idea how to do this.

Help would be greatly appreciated! Arte Et Labore
 
Same way you would from any procedure, stick var before the name of the variable in the declaration, eg

procedure MyProc(VarIn:Type; var VarOut1:Type; var VarOut2:Type);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top