Apologies, if this is not where the question should be placed...
How do you access a DLL from TB? I have read the manual and can't seem to find anything.
Thank you in advance for any help.
Apologies, if this is not where the question should be placed...
How do you access a DLL from TB? I have read the manual and can't seem to find anything.
Thank you in advance for any help.
To be able to use a function that is inside a DLL you need to tell thinBasic what function, what DLL, what parameters.
To do so, use DECLARE statement.
See help here: http://www.thinbasic.com/public/prod...ml?declare.htm
Example:
Ciao'---Declare WinBeep function from KERNEL32 dll library DECLARE FUNCTION WinBeep LIB "KERNEL32.DLL" ALIAS "Beep" ( _ BYVAL dwFreq AS DWORD, _ BYVAL dwDuration AS DWORD _ ) AS LONG
Eros
Last edited by ErosOlmi; 24-09-2017 at 12:17.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thank you. Exactly what I needed. I knew it was something that had to be there that I was inadvertently overlooking.
Last edited by Kuron; 24-09-2017 at 18:33.
Are there any tips for getting thinBasic to fully unload once you are finished with it? After several of hours after closing the program, it is still hogging resources.
Mainly it depends on how you write your code.
It seems you have an endless loop.
If you post some code, I can check and see.
Last edited by ErosOlmi; 24-09-2017 at 20:18.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Found the culprit (at least I think this is the cause). Had forgot to disable Panda before compiling, and as I mentioned elsewhere, Panda immediately quarantines the compiled EXE and that causes TB to freeze up. It seems the only to fully get TB shut down is a reboot at that point.
Going to get rid of Panda. Sadly it was the least resource intensive and the least false positive problematic for my very low spec system.
Bookmarks