Changeset 32718 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Sep 23, 2010 12:57:52 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r31974 r32718 162 162 { 163 163 Bstr value1; 164 hrc = machine->GetExtraData(Bstr("VRDP/DisconnectOnGuestLogout"), value1.asOutParam()); 164 hrc = machine->GetExtraData(Bstr("VRDP/DisconnectOnGuestLogout").raw(), 165 value1.asOutParam()); 165 166 if (SUCCEEDED(hrc) && value1 == "1") 166 167 { … … 798 799 if (id.isEmpty()) 799 800 { 800 rc = virtualBox->FindMachine(Bstr(name) , m.asOutParam());801 rc = virtualBox->FindMachine(Bstr(name).raw(), m.asOutParam()); 801 802 if (FAILED(rc)) 802 803 { … … 812 813 { 813 814 /* Use the GUID. */ 814 rc = virtualBox->GetMachine(id , m.asOutParam());815 rc = virtualBox->GetMachine(id.raw(), m.asOutParam()); 815 816 if (FAILED(rc)) 816 817 { … … 1054 1055 { 1055 1056 Bstr bstr = vrdpPort; 1056 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(bstr ));1057 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(bstr.raw())); 1057 1058 } 1058 1059 /* set VRDP address if requested by the user */ 1059 1060 if (vrdpAddress != NULL) 1060 1061 { 1061 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(NetAddress)(Bstr(vrdpAddress) ));1062 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(NetAddress)(Bstr(vrdpAddress).raw())); 1062 1063 } 1063 1064 /* enable VRDP server (only if currently disabled) */ -
trunk/src/VBox/Frontends/VBoxHeadless/testcase/tstHeadless.cpp
r31070 r32718 115 115 116 116 // find ID by name 117 CHECK_ERROR_BREAK(virtualBox, FindMachine(Bstr(name), m.asOutParam())); 117 CHECK_ERROR_BREAK(virtualBox, FindMachine(Bstr(name).raw(), 118 m.asOutParam())); 118 119 119 120 if (!strcmp(operation, "on")) … … 122 123 RTPrintf ("Opening a new (remote) session...\n"); 123 124 CHECK_ERROR_BREAK (m, 124 LaunchVMProcess(session, Bstr("vrdp") ,125 LaunchVMProcess(session, Bstr("vrdp").raw(), 125 126 NULL, progress.asOutParam())); 126 127
Note:
See TracChangeset
for help on using the changeset viewer.