Rank: Newbie
Joined: 11/23/2016(UTC) Posts: 1
|
I'm trying to run lesson1 from documentation. I use VS2008 I set all configurations . this is the code #include "stdafx.h" #include "conio.h" #include "UAClientHeaders.h" using namespace std; using namespace Mtk::Ua::ClientSDK; using namespace Mtk::Ua::Stack; using namespace Mtk::General;
int _tmain(int argc, _TCHAR* argv[]) { ClientToolkitAutoInitializerCleaner autocleaner; std::shared_ptr<IUaString> spString(IUaString::Create(L"Hello UA SDK!")); wcout<<spString->ToString().c_str()<<endl; _getch();
return 0; }
I get these errors
error C2039: 'shared_ptr' : n'est pas membre de 'std' error C2065: 'shared_ptr' : identificateur non déclaré error C2275: 'Mtk::Ua::Stack::IUaString' : utilisation non conforme de ce type comme expression error C3861: 'spString' : identificateur introuvable error C2065: 'spString' : identificateur non déclaré error C2227: la partie gauche de '->ToString' doit pointer vers un type class/struct/union/générique error C2228: la partie gauche de '.c_str' doit avoir un class/struct/union
I think the error is here : error C2275: 'Mtk::Ua::Stack::IUaString' : utilisation non conforme de ce type comme expression
Any help ? thank you
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.