Simple DLL handling question from newbie
Blitz3D Forums/Blitz3D Beginners Area/Simple DLL handling question from newbie
| ||
Hi, I am still playing around with the examples and have some problem with understanding the DLL handling in BlitzPlus... Would be nice, if you give me some simple hints: The command ".lib" is not explained in the manual? so, how do I include a standard win dll? I typed: .lib "wininet.dll" in the beginning of my source and when I want to compile, it says: Expecting "End of File" right after the .lib.. Is there a very basic working example of code how to handle DLLs? Thanks, P! |
| ||
okok, the ".something" defines a label... thats what I found out, but I have not found ANY working example of using a windows DLL in blitz... anyone? thanks, P! |
| ||
Have a look in the code archive. http://www.blitzbasic.com/codearcs/codearcs.php?cat=14 Sergio. |
| ||
hi sergio, i did that and downloaded the ggTray example... unzipped it, loaded it and started it... "function not found"... the example consists of 3 parts: ggTray/trayexamp/trayexamp.bb ggTray/ggTray.dll ggTray/ggTray.decls Ok, so far so good: I understand, that I have to declare the functions I want to use and that I need the .dll file some where. But if I just open the trayexamp.bb and want to compile it, it dies with an error (Function not found)... Do I have to include the .decls file there? Thanks P! |
| ||
Actually, what you should look at is the Userlibs Specifications document (under "Specs and Utils") http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt |
| ||
OH THANK YOU!!!!! I WAS ALMOST GIVING UP... (sorry for shouting :-) helped a lot! P |