Main Menu

DLL

Started by andrewmann123, March 21, 2009, 02:21:18 PM

Previous topic - Next topic

andrewmann123

how can i prosicely use dll files with Play Basic?
how can i prosicely know how to use them?
how can i know what the dll do if installed correcly?

kevin

#1
Quotehow can i prosicely use dll files with Play Basic?

    Assuming the functions contained with the DLL use StdCALL calling convention.   Then you'd use the LinkDLL / EndLinkDll blocks to declare each function within your PlayBasic program.

    If the functions use a different calling convention, then you'd need to use the LoadDLL / CALLDLL combination instead.

    For examples of this  look at the libraries board.   

 

Quotehow can i prosicely know how to use them?

  How could we know ? -  For how to use the DLL's command sets, you'll need to read the information (SDK) that the DLL authors issued. 



Quotehow can i know what the dll do if installed correcly?

  Once you've written all  the required function links (LinkDLL) or wrapper (CallDLL), then when you call those functions it'll either work, or the function the will pop a runtime error.