Page 1 of 1

Guide for Visual C# Express on Vista x64

Posted: Sun Aug 02, 2009 4:54 am
by karstux
Hi folks,

I had a bit of trouble getting the OptiTrack SDK to work with VC# Express on Vista 64. When trying to create the NPCameraCollection object, I got an error saying:

[font:Fixedsys]
Retrieving the COM class factory for component with CLSID {1CA83C6F-70A6-40EB-836F-D9EEC0BD168F} failed due to the following error: 80040154.
[/font]

To be able to use the SDK, the following settings need to be made:

1. Enable build platform configuration manager. Select "Tools" -> "Options", enable "Show all settings", then select "Projects and Solutions" from the list to tick "Show advanced build configurations".

2. Now the Solution Configurations and Solution Platforms boxes in the toolbar should be un-greyed. Start the Configuration Manager in the platforms combobox.

3. In the Active Solution Platform, choose "". Select the x86 platform, and Copy settings from "".

4. Build your project with x86 as solution platform. It should run now.

Hope I could help!