Thread: Digital Mars Compiler

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    44

    Digital Mars Compiler

    How do you make simple true-dos aplications?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    #include <iostream>
    int main ( void )
    {
        cout << "Hello world!" << endl;
        return 0;
    }
    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Shouldn't you be using std::cout?

  4. #4
    Registered User
    Join Date
    Jun 2002
    Posts
    44
    I Mean how do you compile them using Digital Mars Compiler so that theyl run in true-DOS.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Dual-Catfish
    Shouldn't you be using std::cout?
    Possibly. Without specifying, does it just default to 'std::cout'? I haven't looked into C++ streams enough to say for sure. Still, most examples you'll see in books dont' bother using std:: --Now this isn't to say they're correct either. I've seen incorrect books before.

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Powerfull Army
    I Mean how do you compile them using Digital Mars Compiler so that theyl run in true-DOS.
    Ah, well there you go. You should have actually posted this question first.

    I've never used the DMC compiler. However I will say this: Depending on your OS, your program may not run in "true dos". Windows NT, XP, 2K, ME do NOT have a true dos. You cannot reboot into MS DOS mode on these machines.

    And in the case of Win98/98SE/95, I can make youre "true dos" application run in Windows and there's nothing you can do about it.

    It has to do with shortcuts / .pif files and settings you specify for the program.

    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If your using the newer #include <iostream> version then you need to specify the namespace with std::cout or by declaring the objects with the "using" statement.....

    If you use #include <iostream.h> you dont need to specify as it is all dumped into the global namespace.......but you are better off with the first method.

  8. #8
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    it is true dos, just in a window. there is a code to make it full screenw ithc i do not know. but in hte window there is a full screen window
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  9. #9
    Registered User
    Join Date
    Jun 2002
    Posts
    44
    No its not true DOS,its dos running in windows,im talking about DOS mode,no windows.

  10. #10
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Powerfull Army
    No its not true DOS,its dos running in windows,im talking about DOS mode,no windows.
    Asked and answered. This has nothing, let me repeat, NOTHING to do with your compiler.

    If you want to run in DOS, reboot into DOS. If you want to run in Windows, run in Windows.

    What you're asking is:

    "How can I make the program forcibly reboot into DOS to run?"

    And I'm answering:

    "You do this to me an I'll give you one guess as to what program I'll never ever run again..."

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  4. Help With finding a compiler
    By macman in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-15-2005, 08:15 AM
  5. Digital Mars Compiler: compiling for DOS?
    By Waldo2k2 in forum C++ Programming
    Replies: 1
    Last Post: 09-15-2002, 02:06 PM