Oxygen Basic
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest OxygenBasic.zip at GitHub
(Click on the Wizard)
Home
Help
Search
Login
Register
Oxygen Basic
»
Information
»
Open Forum
»
Do we need to freelibrary when declared this way?
« previous
next »
Print
Pages: [
1
]
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?
Logged
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
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
Oxygen Basic
»
Information
»
Open Forum
»
Do we need to freelibrary when declared this way?