Thread: Com1, Graphing from file.

  1. #1
    Registered User
    Join Date
    Jul 2003

    Com1, Graphing from file.

    This is a Win32 application.
    I want to read from the comm. port. (I think you use CreateFile()?)
    I then want to read that file that was created when i read from the comm port and construct a gaph out of the information that was obtained.

    I think thats how it works, i am not quite sure. But thats what i need to do.

    i just want to make a graph made from the information at the comm port . I want to be able to print and save the graph.

    Thank you.
    I dont even care about the graph right now. I just want to get the information from the serial port and save it to a text file or sumthing. Pplease help. I have been endlessly working.

    i figured out how to open the serial port:

    HANDLE m_hCommPort = ::CreateFile( szPortName,
    Last edited by The Exodus; 08-05-2003 at 02:32 AM.

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Umm, not sure what you're looking for. Could you be more specific? If you're just looking to get data from the port, I believe you can use the ReadFile() function. Also, I may be wrong (you've done the research), but you might not need the FILE_FLAG_OVERLAPPED. Try just putting 0, or FILE_ATTRIBUTE_NORMAL.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 09:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM