Visual C++ programming help

This is a discussion on Visual C++ programming help within the C++ Programming forums, part of the General Programming Boards category; Hello, I am want to know basic rs232 interfacing using the visual c++.. I want to experiment on getting to ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    1

    Question Visual C++ programming help

    Hello,

    I am want to know basic rs232 interfacing using the visual c++.. I want to experiment on getting to communicate with the COM port 1. Can you give me like a simple program that would be able to read COM port settings and be able to send a simple data into the COM port? How should this be done like from the first thing the application is opened and pressing a simple button to read the status of the COM port and be able to send a data once the COM port is ready to send (something like that)..

    Thanks in advance,
    B e g i n n e r

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    Umm, no.

    Nobody's going to write a program for you. Welcome to cboard, home of the do-it-yourself'ers. Go do a google search or something and come back when you've shown a bit more effort.

  3. #3
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,812
    Heres come code
    Code:
    #include <windows.h>
    
    int main(void)
    {
        if(getComPort1State())
        {
            getComPort1Info();
        }
      return 0;
    }
    Woop?

  4. #4
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    Quote Originally Posted by prog-bman
    Heres come code
    Code:
    #include <windows.h>
    
    int main(void)
    {
        if(getComPort1State())
        {
            getComPort1Info();
        }
      return 0;
    }
    No no no, you're all wrong

    Code:
    #include <windows.h>
    
    void main()
    {
        if(getComPort1State())
        {
            getComPort1Info();
        }
        System("PAUSE");
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 09:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21