Read a non .NET DLL version from C#?

Use the FileVersionInfo object. Here’s an example from the Microsoft website that gets the version info from notepad.exe public void GetFileVersion() { // Get the file version for the notepad. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(“%systemroot%\\Notepad.exe”); // Print the file name and version number. textBox1.Text = “File: ” + myFileVersionInfo.FileDescription + ‘\n’ + “Version number: ” + … Read more

RegSvr32 exit codes documentation?

The exit codes are not documented. The documentation is here: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32 However, the source code for a version REGSVR32.EXE is shipped with Visual Studio 2008. This gives its version as 4.0.0, so is not the same as the one shipped with windows, which reports version 6. http://msdn.microsoft.com/en-us/library/ms177531(v=vs.90).aspx A quick look shows these: #define FAIL_ARGS 1 … Read more

Difference between load-time dynamic linking and run-time dynamic linking

load-time linking is when symbols in the library, referenced by the executable (or another library) are handled when the executable/library is loaded into memory, by the operating system. Run-time linking is when you use an API provided by the OS or through a library to load a DLL or DSO when you need it, and … Read more

Use Visual Studio 2012 and compile with older platform toolset?

According to this page on MSDN, you need to have the corresponding version of Visual Studio (2008 or 2010), or the relevant Windows SDK for the “Platform Toolset” drop down to list those versions: To change the target platform toolset, you must have the associated version of Visual Studio or the Windows Platform SDK installed. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)