Thread: Not able to build old c Code developed in windows xp 32 bit to windows 7 64 bit

  1. #1
    Registered User
    Join Date
    Feb 2020
    Posts
    1

    Not able to build old c Code developed in windows xp 32 bit to windows 7 64 bit

    hi ,
    porting the application which basically communicate through serial to windows 7 so trying building the c code having issues can someone help me out in building a exe in 64 bit.

    Thanks,
    sathya
    Attached Files Attached Files

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you pretty much have to throw it away and read MSDN on how to use the serial port using the Win32 API.

    You can save all the code which deals with data once it's in memory.

    But all that serial port interrupt and hardware registers bit-bashing has to go.
    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.

  3. #3
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    As Salem told you, this code is an old code for MS-DOS and won't work on WINDOWS!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build lib files in windows?
    By amalendu in forum C Programming
    Replies: 3
    Last Post: 12-04-2011, 10:42 AM
  2. Can anyone get this to build in windows?
    By mitch88 in forum C++ Programming
    Replies: 11
    Last Post: 01-23-2011, 10:13 AM
  3. Build linux on windows
    By baash05 in forum Linux Programming
    Replies: 6
    Last Post: 02-19-2008, 10:12 PM
  4. Open an excel file from a windows service under Windows Vista
    By AdrianaLuby in forum C# Programming
    Replies: 1
    Last Post: 06-05-2007, 03:55 AM
  5. Replies: 6
    Last Post: 01-07-2002, 02:46 AM

Tags for this Thread