Click here to Skip to main content
15,911,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: writing in any active window Pin
4apai10-Aug-04 3:18
4apai10-Aug-04 3:18 
Generalvc++ Pin
anandforu10-Aug-04 2:40
anandforu10-Aug-04 2:40 
GeneralRe: vc++ Pin
David Crow10-Aug-04 2:48
David Crow10-Aug-04 2:48 
GeneralDisplay data in table format Pin
nainakhawaja10-Aug-04 2:26
nainakhawaja10-Aug-04 2:26 
GeneralRe: Display data in table format Pin
David Crow10-Aug-04 2:52
David Crow10-Aug-04 2:52 
GeneralActiveX and VC++ Pin
EmployMen10-Aug-04 2:16
EmployMen10-Aug-04 2:16 
GeneralRe: ActiveX and VC++ Pin
Antti Keskinen10-Aug-04 2:52
Antti Keskinen10-Aug-04 2:52 
GeneralRe: ActiveX and VC++ Pin
EmployMen10-Aug-04 2:57
EmployMen10-Aug-04 2:57 
GeneralRemoving Combo Box borders Pin
Joel Holdsworth10-Aug-04 0:32
Joel Holdsworth10-Aug-04 0:32 
GeneralRe: Removing Combo Box borders Pin
4apai10-Aug-04 1:23
4apai10-Aug-04 1:23 
GeneralRe: Removing Combo Box borders Pin
Jaime Stuardo10-Aug-04 4:02
Jaime Stuardo10-Aug-04 4:02 
GeneralMSTSCAX ActiveX Ctrl Pin
4apai9-Aug-04 23:54
4apai9-Aug-04 23:54 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
Antti Keskinen10-Aug-04 0:25
Antti Keskinen10-Aug-04 0:25 
GeneralRe: MSTSCAX ActiveX Ctrl Pin
4apai10-Aug-04 0:49
4apai10-Aug-04 0:49 
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 

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.