Restored from previous forum. Originally posted by blueb.
Hi,
I just rec'd registered ver 2.40 and I'm looking for additional information.
A few areas I'm not clear on:
#1 - Where is the list of constants(equates)kept?
e.g. #PB_EventCloseWindow
#2 - Can I use DLL's other than Windows, if I know the calls?
e.g. - If Zap.Dll has a function in it called EraseFile can
I use IncludeBinary "Zap.dll" and have PureBasic understand it?
Thanks,
blueb
Need Info
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
Hello blueb,
There are 2 api calls: LoadLibraryA and Freelibrary.
I have only the demo version so I can't test it but LoadLibraryA_(name.dll) must work.
Maybe after that you have access to all dll functions with function_(bla,bla).
Don't forget to unload the library with FreeLibrary_(name.dll) by closing your program.
Don't know if PB can handle all dll's. Infozip's free zip.dll and unzip.dll probably don't work with PB beacuse of callback's. Maybe somebody can write a library for something like that (if it is possible...)
greetings
Franco
Hello blueb,
There are 2 api calls: LoadLibraryA and Freelibrary.
I have only the demo version so I can't test it but LoadLibraryA_(name.dll) must work.
Maybe after that you have access to all dll functions with function_(bla,bla).
Don't forget to unload the library with FreeLibrary_(name.dll) by closing your program.
Don't know if PB can handle all dll's. Infozip's free zip.dll and unzip.dll probably don't work with PB beacuse of callback's. Maybe somebody can write a library for something like that (if it is possible...)
greetings
Franco