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

C / C++ / MFC

 
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 
Unfortunately I cannot give my e-mail address, and I don't use ICQ.

First, go and download and install the latest version of the Microsoft RDP Client ActiveX Control. You can find it here[^]. After the control is installed, browse to the directory where you installed it. You can find a 'default.htm' test page there. Open it up on your browser, and you'll get a test page. Use this test page to connect to the TS client like you normally would. If the connection fails, the problem resides in the TS Server, and not in your end.

After installing, if you have Windows XP, you'll have two RDP Client controls. The one we just installed is called 'Microsoft RDP Client (redist)'. Use OLE/COM Viewer tool to browse through it's type library.

When/If the connection was succesfull, the control is tested and you can use the it anywhere you need. I have created a small example application that connects to a server IP you provide it with, and displays the login screen. The code is commented heavily, and the interesting parts are in the Connect and Disconnect buttons click handlers. Works smoothly for me. The example application is not very usable, as the display area is very small. But it'll show you how it's done. Note that in order to disconnect my application from the TS Server, you must first click outside the RDP Desktop screen, then click on Disconnect button.

You can download the source code and the example application from http://www.tpu.fi/~t1akeski/TSClient.zip. It is written with VC++ .Net 2003.

As for the problem you described, then an answer is written to MSDN:

The control connects asynchronously, so a return from a Connect call indicates only that the connection has been initiated successfully, not that it has been completed. You should respond to events on the IMsTscAxEvents interface to determine when the control has successfully connected (or has been disconnected).

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
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 
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 

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.