15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Building Telnet Application using MFC

Madhav Shidhaye -- shidhmj@cat.com
Tuesday, November 12, 1996

Environment: VC++ 4.2-flat, NT 4.0

I am using MSVC++ 4.2 on Windows NT 4.0 / Widows 95 with TCP/IP connection.
I would like to know if there is any way to establish a Telnet connection using MFC classes ?
Can i use the CInternetSession class to build a telnet app ? 
Also, is there any OCX which will enable me to do the same ??

Any suggestions will be greatly appreciated .


Regards.

Madhav Shidhaye
shidhmj@cat.com





John and Cecilia -- jandce@iglobal.net
Thursday, November 14, 1996

[Mini-digest: 2 responses]

> From: Madhav Shidhaye 
> To: 'mfc-l@netcom.com'
> Subject: Building Telnet Application using MFC
> Date: Tuesday, November 12, 1996 10:24 AM
> 
> Environment: VC++ 4.2-flat, NT 4.0
> 
> I am using MSVC++ 4.2 on Windows NT 4.0 / Widows 95 with TCP/IP
connection.
> I would like to know if there is any way to establish a Telnet connection
using MFC classes ?

There sure is. I have just completed a similar project for Ftp. I used the
class CAsyncSocket to create a state machine that handles all of the ftp
interface for me. The resulting class is in a extension dll that I will be
able to inlude in any project.

> Can i use the CInternetSession class to build a telnet app ?

I am using VC 4.0 so I do which does not have a CInternetSession, so I do
not know it that will work. But I am sure it can be done. 

> Also, is there any OCX which will enable me to do the same ??
> 
> Any suggestions will be greatly appreciated .

I would recommend checking out whatever RFC covers the telnet protocol and
start from there. If you would like more detailed assistance, let me know.

> 
> 
> Regards.
> 
> Madhav Shidhaye
> shidhmj@cat.com
> 

John Boehme
http://www.iglobal.net/pub/JohnAndCe
http://www.iglobal.net/pub/JohnAndCe/webmap.htm

-----From: Mike Blaszczak 

At 10:24 11/12/96 -0600, Madhav Shidhaye wrote:
>Environment: VC++ 4.2-flat, NT 4.0

>I am using MSVC++ 4.2 on Windows NT 4.0 / Widows 95
>with TCP/IP connection. I would like to know if there is any
>way to establish a Telnet connection using MFC classes ?

Use the CAsyncSocket or CSocket classes.

>Can i use the CInternetSession class to build a telnet app ? 

No.  WININET.DLL doesn't support TELNET--mainly because there's
really no protocol.  It's just a bare-naked bidirectional socket
connection.

>Also, is there any OCX which will enable me to do the same ??

Probably.

.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |