Author Topic: Do we need to freelibrary when declared this way?  (Read 2346 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Guest
Do we need to freelibrary when declared this way?
« 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?

Charles Pegge

  • Guest
Re: Do we need to freelibrary when declared this way?
« Reply #1 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

kryton9

  • Guest
Re: Do we need to freelibrary when declared this way?
« Reply #2 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.