Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
Antti Keskinen10-Aug-04 2:33
Antti Keskinen10-Aug-04 2:33 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
4apai10-Aug-04 3:02
4apai10-Aug-04 3:02 
Generalone more question Pin
4apai10-Aug-04 3:12
4apai10-Aug-04 3:12 
GeneralRe: one more question Pin
Antti Keskinen10-Aug-04 9:41
Antti Keskinen10-Aug-04 9:41 
GeneralRe: one more question Pin
4apai10-Aug-04 22:17
4apai10-Aug-04 22:17 
GeneralRe: one more question Pin
wangycol6-Feb-12 21:11
wangycol6-Feb-12 21:11 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
lokimeg12-May-09 21:22
lokimeg12-May-09 21:22 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
Antti Keskinen13-May-09 4:45
Antti Keskinen13-May-09 4:45 
Hi Lokesh,

It's been a while since I dealt with this issue. But the URL works just fine. I just tested it. Might've been a hiccup at the Microsoft end, or perhaps you cannot access it for some other reason? But rest assured, the website is there.

I can't upload the code. I would be violating Microsoft's ToS. Please visit the web-site in the link.

As for your second question, you can't. The IMsTscAx is an interface exposed by the Remote Desktop ActiveX Control. What you need to do is instantiate the RDAC itself, and query it for the IMsTscAx interface. I can't remember the RDAC's CLSID value out of the top of my head, so you'll need to use the OLE/COM Object Browser tool in order to determine it. It might be the CLSID_MsRdpClient2 you discovered) Once you have the CLSID, call CoCreateInstance with it and query for the target interface. If this fails, ask the object for IUnknown first and use the returned pointer to query for the IMsTscAx. All COM objects support IUnknown, so if you have the CLSID correct, you should be able to get it at least. If the IMsTscAx interface query returns a failure through IUnknown::QueryInterface, at least you'll have more details on why and how it fails.

As for the reasons why the 'Connect' call refuses to work, I can't say. There are numerous reasons why a Remote Desktop connection may fail, and not all of them are related directly to code. Perhaps the service is disabled? Perhaps access is prohibited? You should first try to connect to the Remote Desktop service by manually using the RDS software (Found in Start -> Programs -> Accessories -> Remote Desktop Connection). If you can connect manually to the host computer, then try the code-wise approach.

Regards,
Antti

------------------------------
Programming Windows is like
a box of assorted chocolates.

You never know what you're
going to get.

QuestionIs there a Multi-radio button control like the CodeProject Article Voting Control? Pin
Stone Free9-Aug-04 23:45
Stone Free9-Aug-04 23:45 
AnswerRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
Antti Keskinen10-Aug-04 0:18
Antti Keskinen10-Aug-04 0:18 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
Stone Free10-Aug-04 0:32
Stone Free10-Aug-04 0:32 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
David Crow10-Aug-04 3:10
David Crow10-Aug-04 3:10 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
Stone Free10-Aug-04 3:15
Stone Free10-Aug-04 3:15 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
David Crow10-Aug-04 4:11
David Crow10-Aug-04 4:11 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
Stone Free10-Aug-04 4:26
Stone Free10-Aug-04 4:26 
GeneralRe: Is there a Multi-radio button control like the CodeProject Article Voting Control? Pin
David Crow10-Aug-04 4:32
David Crow10-Aug-04 4:32 
QuestionHow to change static text on a property page clicking on command button.? Pin
Rajesh_K_Sharma9-Aug-04 23:04
Rajesh_K_Sharma9-Aug-04 23:04 
AnswerRe: How to change static text on a property page clicking on command button.? Pin
V.10-Aug-04 0:08
professionalV.10-Aug-04 0:08 
Generaluse ProgressCtrl Pin
fatidarya9-Aug-04 22:30
fatidarya9-Aug-04 22:30 
GeneralRe: use ProgressCtrl Pin
Antti Keskinen10-Aug-04 0:23
Antti Keskinen10-Aug-04 0:23 
GeneralRe: use ProgressCtrl Pin
David Crow10-Aug-04 3:18
David Crow10-Aug-04 3:18 
GeneralImage processing Pin
nyquisttt9-Aug-04 22:29
nyquisttt9-Aug-04 22:29 
GeneralRe: Image processing Pin
*Dreamz10-Aug-04 3:13
*Dreamz10-Aug-04 3:13 
GeneralCWebBrowser Help with Navigate function Pin
ramingo9-Aug-04 22:11
ramingo9-Aug-04 22:11 
GeneralTristate checkbox in tree Pin
alfa_aquila9-Aug-04 22:10
alfa_aquila9-Aug-04 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.