Gettin dll and ocx version

Just starting out? Need help? Post your questions and find answers here.
Waussie
User
User
Posts: 24
Joined: Fri Nov 11, 2005 12:14 pm

Gettin dll and ocx version

Post by Waussie »

Does anyone know how to get the fileversion of a dll and ocx file?
And get it trough purebasic code?
Currently coding the unbelievable WFS program...
You'll know it, when it gets released...
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Post by Armoured »

User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

You can use GetFileVersion from the Droopy Lib
Waussie
User
User
Posts: 24
Joined: Fri Nov 11, 2005 12:14 pm

Thnx for the info

Post 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.
Currently coding the unbelievable WFS program...
You'll know it, when it gets released...
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post 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:
netfriends
User
User
Posts: 36
Joined: Wed Jan 18, 2006 8:25 am
Contact:

Post by netfriends »

i am the same to upstair
┏┓ CT+pro Studio - www_ct-pro_com
█┛ From China
┏█ MSN:ct1676@hotmail.com
┗┛ I have felt the pure power already.
|-.-|`o`|`_`|o_o|:_:|'_'|^.^|-_-!|
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

netfriends wrote:i am the same to upstair
??
netfriends
User
User
Posts: 36
Joined: Wed Jan 18, 2006 8:25 am
Contact:

Post by netfriends »

I don't know how to Function API from Lib
who can give some example?
I am a beginner
┏┓ CT+pro Studio - www_ct-pro_com
█┛ From China
┏█ MSN:ct1676@hotmail.com
┗┛ I have felt the pure power already.
|-.-|`o`|`_`|o_o|:_:|'_'|^.^|-_-!|
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post 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
netfriends
User
User
Posts: 36
Joined: Wed Jan 18, 2006 8:25 am
Contact:

Post by netfriends »

PB can identify the .dll which the API from ??

as VB did

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

the red area
┏┓ CT+pro Studio - www_ct-pro_com
█┛ From China
┏█ MSN:ct1676@hotmail.com
┗┛ I have felt the pure power already.
|-.-|`o`|`_`|o_o|:_:|'_'|^.^|-_-!|
Post Reply