02-27-2005, 09:48 PM
Is possible to call a freebasic procedure or function from a DLL?; Anyone has some example?.
Thks in Adv.
Tio Bit
Thks in Adv.
Tio Bit
Calling a FB Sub from a DLL
|
02-27-2005, 09:48 PM
Is possible to call a freebasic procedure or function from a DLL?; Anyone has some example?.
Thks in Adv. Tio Bit
02-27-2005, 10:15 PM
see exaples\dll\ in your freebasic directory
url]http://fbide.sourceforge.net/[/url]
02-27-2005, 10:26 PM
Hi VonGodric; But in that example you call a function defined in the DLL from the EXE file (the normal way); I want to know if it's possible to call a Function defined on the main EXE from the DLL (something like a callback function)
02-27-2005, 10:37 PM
Do you mean using EXPORT on the sub in the main exe code and using GetProcAddress to get this function in the DLL code. Look at the export and import examples in the export folder.
02-27-2005, 11:08 PM
Ok, Thanks, it was very easy (adapted from the dll and export examples ):
TEST.BAS Code: '' and MYDLL.BAS Code: . mydll.bi doesn't change. |
« Next Oldest | Next Newest »
|