Thread: Can HyperTerminal communicate with Microsoft Visual C++ 6?

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    6

    Unhappy Can HyperTerminal communicate with Microsoft Visual C++ 6?

    Hi,

    Urgent!!!
    I'm currently a Full-Time student, having my Final-Year Project. Who seeking help regards on the above mentioned Title.

    Tasks:
    PC(1) opens Hyperterminal, input some text to transmit (Transmitter, Tx) to...
    PC(2) through a Null Modem Cable which opens Microsoft Visual C++ 6 with a program to receive (Receiver,Rx) what the HyperTerminal input text that has been transmitted...

    How can this be done?
    After further research made, Terminals with the same communication setting must set under the same bps, data bits, parity, stop bits and flow control.

    But I seeking help on how to start off on the Microsoft Visual C++ 6 program?
    As I'm new to Microsoft Visual C++ 6


    Regards
    XinG

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    I assume you want to talk to 2 computers over a COM port (RS-232)?
    Then this should get you started: Serial Communications in Win32

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    6
    Yes,
    But what i required to do is to come out a program in Microsoft Visual C++ 6 as a (Receiver, Rx) to receive what the text input by the HyperTerminal and appear on the screen

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    The link I gave you tells you how to read from a COM port. After that it is just a matter of writing it to the screen. There really is not that much more to it.

    You should be able to just create a windows console project, include windows.h and iostream and be on your merry way (might have to link to some library aswell but don't think that is necessary).

    I would as a first exercise get it to work with 2 hyperterminals so you get communications working correctly and then you can start working on your program.

  5. #5
    Registered User
    Join Date
    Dec 2010
    Posts
    6
    windows console project? how to do that on Microsoft Visual C++ 6?

    U would as a first exercise ?

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Yes as first exercise i would get communications working on 2 computers using hyperterminal.

    Here is a guide how to create a console project using visual studio 6:
    Console application projects with Microsoft Visual C++

  7. #7
    Registered User
    Join Date
    Dec 2010
    Posts
    6
    Regards on the mentioned "Console Application projects with Microsoft Visual C++" is using Project Type: Win 32 Console Application.

    How to create under Project Type: MFC AppWizard (exe) instead?

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    just google it. But since you seem to have trouble getting started with it all i strongly suggest you go with the console at first. MFC applications are much harder than console applications when trying out new things (that don't require a GUI).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  2. how to use microsoft visual c++ 2005 express edition
    By crazyheavyd in forum C++ Programming
    Replies: 4
    Last Post: 10-05-2007, 02:59 PM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM
  5. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 12:06 AM