Setting VC++ up to use Casablanca

Once you’ve installed Casablanca, you’ll need to add the required include/lib folders to your VC++ projects. I took the same approach used by the sample projects.

Open Project Properties / Configuration Properties / C/C++ / General and add the following entry to the Additional Include Directories. (note: line breaks added for formatting)

$([MSBuild]::GetRegistryValue(
`HKEY_LOCAL_MACHINE\Software\Microsoft\Casablanca\OpenSourceRelease\110\SDK`, 
`InstallDir`))\include

Open Project Properties / Configuration Properties / Linker / General and add the following entry to the Additional Library Directories (separate ones for Debug and Release configs). (note: line breaks added for formatting)

$([MSBuild]::GetRegistryValue(
`HKEY_LOCAL_MACHINE\Software\Microsoft\Casablanca\OpenSourceRelease\110\SDK`,
`InstallDir`))\lib\x86\Debug\
$([MSBuild]::GetRegistryValue(
`HKEY_LOCAL_MACHINE\Software\Microsoft\Casablanca\OpenSourceRelease\110\SDK`,
`InstallDir`))\lib\x86\Release\

Now add casablanca110.lib to the Linker / Input / Additional Dependencies.

You’re all set at this point.

Advertisements

2 thoughts on “Setting VC++ up to use Casablanca

  1. After installing Casablanca using nuget on VS2012, I d’ont find any registry entry specified. This tip don’t work 😦

    Is there any other instllation method ?

    btw, the c++ project must be in unicode to work ?? is MBCS supported or not ?

    Thank you;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s