Page 1 of 1

Gettin dll and ocx version

Posted: Sat Jan 14, 2006 3:25 pm
by Waussie
Does anyone know how to get the fileversion of a dll and ocx file?
And get it trough purebasic code?

Posted: Sat Jan 14, 2006 5:21 pm
by Armoured

Posted: Sat Jan 14, 2006 7:20 pm
by Droopy
You can use GetFileVersion from the Droopy Lib

Thnx for the info

Posted: Mon Jan 16, 2006 12:31 pm
by Waussie
I thank you very much, it's been quite helpful code.

And Droopy, I might sound like a total newbie, but I don't understand how to use libraries in purebasic yet. :?
Could you give me a little example (With includes or whatever is neccesary to implement a simple command from a library?

I thank you in advance.

Posted: Mon Jan 16, 2006 1:49 pm
by Droopy
Just download and install the Droopy Lib.
Restart your PureBasic Editor.

Type GetFileVersion in the pureBasic editor, and press F1 to get Help for this function.

You can use functions of this lib like the native PureBasic command.
A lot of examples are included in the help file :wink:

Posted: Wed Jan 18, 2006 1:17 pm
by netfriends
i am the same to upstair

Posted: Wed Jan 18, 2006 6:25 pm
by Bonne_den_kule
netfriends wrote:i am the same to upstair
??

Posted: Thu Jan 19, 2006 8:28 am
by netfriends
I don't know how to Function API from Lib
who can give some example?
I am a beginner

Posted: Thu Jan 19, 2006 6:59 pm
by Droopy
It's the same as using API in a PureBasic code

Simple Example :

Code: Select all

Procedure Beep(Frequency,Duration)
  beep_(Frequency,Duration)
EndProcedure

Posted: Fri Jan 20, 2006 5:27 am
by netfriends
PB can identify the .dll which the API from ??

as VB did

Private Declare Function NtQueryObject Lib "ntdll.dll" ( _

the red area