-
June 13th, 2016, 06:16 AM
#1
How to create .com file
I want to create a .com file. I want to know the procedure, how to make a COM (.com) file from C source code file.
Please suggest.
-
June 13th, 2016, 11:09 AM
#2
Re: How to create .com file
Victor Nijegorodov
-
June 15th, 2016, 12:32 PM
#3
Re: How to create .com file
First of all you have to find an ancient 16-bit compiler. I think that the old Borland Turbo C++ suites now are available for free so go ahead and search.
Then you have to find an OS that is able to run a com-file (and also the compiler). Whithout knowing for sure I would guess that it means you have to go back to something like Windows Millenium edition or earlier. If the executable is well behaved (don't have wild accesses to hardware) it might also run in some of the more recent NT based 32 bit versions of Windows but I don't know if and if so when the support for .com ended.
-
June 20th, 2016, 06:14 AM
#4
Re: How to create .com file
Sir, OS- Windows 7. Sir I want to create .com file of any C Source code file.
-
June 20th, 2016, 07:18 AM
#5
Re: How to create .com file
Originally Posted by Arup Kr Goswami
Sir, OS- Windows 7. Sir I want to create .com file of any C Source code file.
The short answer is no.
Why?
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
June 20th, 2016, 12:08 PM
#6
Re: How to create .com file
Sir just to learn that how to create.
-
July 3rd, 2016, 12:51 PM
#7
Re: How to create .com file
You were just told how to create. You need a compiler that can target MS DOS. The most known are Borland C++ 3.x, MS Visual C++ 1.x, Watcom C++ something, I don't remember, 8 or 9, or maybe 10. You can try Open Watcom, maybe they still support DOS just for fun.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|