cygwin vs win32 help

This is a discussion on cygwin vs win32 help within the C++ Programming forums, part of the General Programming Boards category; ok so i am working on a firmware updater. It is already written but it uses cygwin to make some ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    7

    cygwin vs win32 help

    ok so i am working on a firmware updater. It is already written but it uses cygwin to make some unix commands/labraries available. My problem is that the cygwin stuff is crashing when I try to update an embedded system. I would like to completely remove all of the cygwin stuff and convert everything to win32. any help/recommendations on where i can get help (sites, etc) would be awesome!

  2. #2
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    This is obvius example that Linux is better than Windows. Despite it, you are trying to destroy everything Linux has, and then coding stupid converted code full of bugs for Windows. "Nothing lasts forever!", but this can't be applied to Windows!!! Can it ?
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Are you talking about the GUI, or the "meat" of your program?

    For the GUI - The Forger's Tutorial, and the book Programing Windows, by Charles Petzold. And, of course there's MSDN.

    For the "meat", I assume you're writing a kernel mode driver?

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    7
    Yes, it is a kernal mode driver with a GUI wrap. the GUI works fine, but I need to remove all of the UNIX commands. the stuff that is giving me the most problems is in the unix standard libraries (sys/unistd).

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    7
    i have taken care of a few things but i am very very stuck on termios.h. i dont know what win32 library i could us to get the equivalent commands.

  6. #6
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by dynomyte
    i have taken care of a few things but i am very very stuck on termios.h. i dont know what win32 library i could us to get the equivalent commands.
    there are no equivalent win32 functions. We windows programmers don't normally bother with such details because ms-windows os does not (normally) support multiple consoles and console types off the same machine like *nix does.
    Last edited by Ancient Dragon; 05-10-2006 at 12:19 PM.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,848
    > i have taken care of a few things but i am very very stuck on termios.h.
    Which bits of termios are you interested in - baud rate?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Registered User
    Join Date
    May 2006
    Posts
    7
    yeah i have declared the paud rate variable as unsigned but the baud table is giving me lots of problems.

    Code:
    gBaudTable[] =
    {
        { B50,          50 },
        { B75,          75 },
        { B110,        110 },
        { B134,        134 },
        { B150,        150 },
        { B200,        200 },
        { B300,        300 },
        { B600,        600 },
        { B1200,      1200 },
        { B1800,      1800 },
        { B2400,      2400 },
        { B4800,      4800 },
        { B9600,      9600 },
        { B19200,    19200 },
        { B38400,    38400 },
        { B57600,    57600 },
        { B115200,  115200 },
        { B230400,  230400 }
    };
    that is what i dont know how to take care of...any suggestions?

  9. #9
    Registered User
    Join Date
    May 2006
    Posts
    7
    also there is thsi call
    Code:
    struct termios  attr;
    and it uses the tcgetattr command and that is unique to termios

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,848
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  2. Problems with compiling code in cygwin
    By firyace in forum C++ Programming
    Replies: 4
    Last Post: 06-01-2007, 09:16 AM
  3. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 04:26 PM
  4. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  5. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 06:57 PM

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