Oxygen Basic

Information => Open Forum => Topic started by: kryton9 on June 29, 2011, 01:44:29 AM

Title: Do we need to freelibrary when declared this way?
Post by: kryton9 on June 29, 2011, 01:44:29 AM
I am using this declaration method to access winapi dll's.

declare function QueryPerformanceFrequency lib "kernel32.dll" ( byRef lpFrequency as quad ) as long

Do I need to use the freeLibrary command then?
Title: Re: Do we need to freelibrary when declared this way?
Post by: Charles Pegge on June 29, 2011, 03:29:19 AM

No Kent, when you declare external prototypes Basic/C style, their libraries are logged and freed automatically at the end of the prog.

Charles
Title: Re: Do we need to freelibrary when declared this way?
Post by: kryton9 on June 29, 2011, 12:17:10 PM
That is really nice. I like this way to use winapi, with Oxygen byref, it makes the code look neat when pointers are needed.