Archive for the ‘Win32’ Category

Windows 7 x64 32 Bit ODBC

05:44 PM

[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

If you need to create a ODBC Datasource for 32 Bit Applications under Windows 7 x64 you have to use C:\Windows\SysWOW64\odbcad32.exe. More info can be found in this tutorial.

Windows 7 OpenVPN

05:21 PM

Successstory: OpenVPN Build 2.1_rc19, released on 16.07.2009, successfully installed on Windows 7 x64!

PuTTY: default to UTF-8

03:53 PM

There are quite a few posts on how setting the “Window > Translation > Received Charset” of PuTTY to UTF-8 helps when connecting to current UTF-8 base Linux systems.

I’ll just add this snippet of code, which can be used as putty_utf8.reg to fix this up in a single double click:


[HKEY_CURRENT_USER\\Software\\SimonTatham\\PuTTY\\Sessions\\Default%20Settings]
"LineCodePage"="UTF-8"

Visual Studio 2008 SDK re-introduces BaseCodeGeneratorWithSite for “Custom Tool” implementation

11:52 AM

A nice detail I thought should be mentioned, since nobody else talks about it:

Many people talk about using BaseCodeGeneratorWithSite with older versions of the Studio and point to a vanished MS Sample which implements the class outside of the Visual Studio SDK since it became internal with the 2003 release. Rejoice! The Visual Studio 2008 SDK 1.1 has the BaseCodeGeneratorWithSite back in its full glory.

(If someone has the Visual Studio 2005 SDK installed I’d be interested to hear about the BaseCodeGeneratorWithSite status there.)

Vista wants to backup EFS key

03:59 PM

EFS-Error

Vista has this nice encryption mechanisms for the whole disk (BitLocker) and single files (EFS), and if you need and use it, then you’d better follow the recommendations. But if you — like me — never ever had a file encrypted on this system and still get strange messages like this you could start wondering. Like I did:

First, check your local drive for encrypted files. They are marked green in the file explorer. Since checking manually is tedious at best, Heinzi pointed me to “cipher /n /u” which lists all encrypted files from the local system. To run that command, open a command line (Win+R -> “cmd”) and type the command without quotes. That’ll take a while, but on my system it didn’t show any files. If you have found any, you should now have an idea where they come from.

In the Management Console (Win+R -> “mmc”), choose “File”/”Add Snap-In” (Ctrl+M) and add the “Certificates” snap-in for your own user. Under “My user account”, “Personal” “Certificates” you can check whether you have any certificates whose intended purpose is “Encrypted File System” and check the creation date (expiration – 100 years). If this doesn’t ring any bells (perhaps that NSA software you installed yesterday?) — mine was already a month old — delete it there. Bye, bye, annoying pop-up!

Managed C++ Debug Assemblies

04:58 PM

It should be known, but if you try to deploy Managed C++ Debug Assemblies on a Customers PC/Server, your Application will not run because of missing Debug C++ whatever DLLs.

Just to remember if someone has forgotten.

OpenVPN und Windows Vista

02:57 PM

Before I forget it again, here some notes about getting OpenVPN to run under Windows Vista:

  • Download and install the OpenVPN 2.1_rc7 or newer from OpenVPN Downloads.
  • C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe -> Contextmenü -> Properties -> Compatibility -> activate “Run as administrator” -> Ok

The hostname has to be set in the client example configuration.

The X.509 certificates are needed to create a trustpath from the client to the server. OpenVPN has toolage for this and a simple Certificate Authority can be setup easily. Client authentication works with username and password via PAM.

Just copy the config file and the certificate authority’s certificate to C:\Program Files\OpenVPN\config\foo.ovpn. Now it is available as “foo” entry in the OpenVPN GUI.

Now it’s ready to rock’n'roll.

Focus Follow Mouse … or not

02:59 PM

Coming from a very comfortable and powerful Linux desktop, I despise the lowest common Win3.1-denominator, single-workspace, cluttered-and-stacked-windows user experience of the Windows Desktop. Today I had a little look around what can be done for this, but no luck. The best what windows offers is calling out to SystemParametersInfo, where I could set “Focus Follows Mouse” and “Do not Raise On Focus”. I wrote a minimal app to set these two parameters (see attachement).

Of course that was too good to be true … (more…)