BrianHoffer


This is probably a pretty easy problem to overcome, but i am not able to compile my VS 2005 C++ app with Client SDK code in it. I downloaded and installed the SDK, then I added the reference to Microsoft.WindowsLive.Id.Client to my project and I put:

using namespace Microsoft::WindowsLive::Id::Client;

at the top of my .cpp file. However, I am getting these errors:

.\Account.cpp(8) : error C3083: 'WindowsLive': the symbol to the left of a '::' must be a type

.\Account.cpp(8) : error C3083: 'Id': the symbol to the left of a '::' must be a type

.\Account.cpp(8) : error C2039: 'Client' : is not a member of 'Microsoft'

.\Account.cpp(8) : error C2871: 'Client' : a namespace with this name does not exist

Is there something else i must do

Thanks,

Brian




Re: Live ID in a VS 2005 c++ app.

Stanislav Simicek


What kind of C++ 'app' have you created Windows Live ID SDK is written in .NET, so you cannot use it directly in a native C++ application - you'd have to create either 'Windows Forms Application' or 'CLR Console Application', or use '/clr' compiler switch to produce 'mixed-mode' app, which (as the name indicates) allows you to mix native and managed (.NET) code.






Re: Live ID in a VS 2005 c++ app.

BrianHoffer

Sorry, left out that piece of info. It is a Windows Forms app.





Re: Live ID in a VS 2005 c++ app.

BrianHoffer

Ok, I got it working by adding a path to DLL that was installed with the SDK into the Resolve #using References field under Project Properties --> Cfg Properties --> C/C++...

Pretty annoying since I am not actually using the #using directive. In fact, when i put it there, I got a bunch of warnings that it was already being #use'd. I would have figured adding the reference would have taken care of everything.

Would have been nice for MS to include VS C++ instructions with their SDK...