Sign in to follow this  
Followers 0
Luigi

How to get a dll version?

4 posts in this topic

Greetings!

I seeking in the forum how to get a version from a dll file.

The example from the help guide about DllStructGetData does not working for me, when I try change the dll file.

I thinking is the DllStructCreate("dword dwOSVersionInfoSize;dword dwMajorVersion;dword dwMinorVersion;dword dwBuildNumber;dword dwPlatformId;char szCSDVersion[128]") needed new dwords for the specific dll file, its is corretly?

If is the point... How do get this new dwords? Or thats dwords is the same for all dll files?

I write here because I need get a version from sqlite3.dll.

I don't have much experience with dll files.

The sqlite3.dll in the c:\windows\system32 have a version table in the properties files, and your dll version is 3.6.22.0.

I download the new version sqlite3.dll, version file 3.7.5, but, the new archive does not contaim a description's tables how to the file 3.6.22.0.

If I know or unknow the version of dll file my script is working too...

But, that is the point, I want know how do that.

Please, some one can help me?

Best regards.


Visit my repository

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The native SQLite dll as provided by either the SQLite.org site or by AutoIt (sqlite.dll.au3 include is a bit outdated but still solid for most uses) does not provide versionning information. In order to reliably obtain this information the simplest is to _SQLite_Startup("mypah\Offending.dll") perform an _SQLiteOpen() and issue a _SQLite_QuerySingleRow(-1, "select sqlite_version();", $row) and then you get the version string is in $row[0]. Do a _SQLite_ShutDown() to be sure to unload the tested .dll

You also have access to compile-time option by use of the sqlite_compileoption_get(N) function (see sqlite docs from the sqlite.org site) and the sqlite_source_id() function which gives you the exact description of the source version used from the Fossil repository.

Placing a specific dll version in c:\windows\system32 by yourself is not recommended, as a number of commonly used programs (FireFox, Abobe ***, iTunes, ...) tend to install and register their own sqlite .dll version. In some (rare) circumstances, changing them to newer releases may lead to issues. I strongly recommend you manage your own version, which is safer and easier to update without fear of dark corner side effect.

Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Ok jhcd, your reply is very usefull for me, realy thanks! ^^


Visit my repository

Share this post


Link to post
Share on other sites

You're welcome of course!

Good luck with all your projects, but don't hesitate to come back if we can help again.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0