Unable to get session state

Discussions related to using VirtualBox on Linux hosts.
Post Reply
vazzdoin
Posts: 15
Joined: 2. Feb 2009, 05:55

Unable to get session state

Post by vazzdoin »

unable to get sessionType ?
Last edited by vazzdoin on 18. Feb 2009, 11:11, edited 2 times in total.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

That's because GetSessionType expects to return a PRUnichar* so you have to pass it a PRUnichar** so

Code: Select all

PRUnichar* Stype;
...
machine->GetSessionType(&Stype); 
Nothing do with VBox; just C++ 101
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
vazzdoin
Posts: 15
Joined: 2. Feb 2009, 05:55

Post by vazzdoin »

thanks .
i already had taken the PRUnichar as datattype, but i was not declaring a pointer type variable. Here was the fault. thanks a lot.
Post Reply