Thread: Damn Bitmaps!!!

  1. #1
    Registered User CumQuaT's Avatar
    Join Date
    Sep 2001
    Posts
    73

    Angry Damn Bitmaps!!!

    Will someone tell me how to place a bitmap, JPG or PSD file on the the screen in a DOS-Based application using Microsoft Visual C++ Enterprise edition compiler. I don't want to be referred to a certain site, I don't want to be referred to the F.A.Q I just want to have the source code!!! When I go to the F.A.Q or the other sites, I can't find anything!!! Somebody please help me!!!
    Why? The often unanswerable question. If it is unanswerable, why answer it?

    Join the Cult of Sheograth, it's the place to be!

    http://cultosheogorath.proboards16.com

    Lord, we know what we are, yet we know not what we may be... Who wrote that anyway? If you know, E-Mail me. [email protected]

    Joy to all the fishes...

    **infected by frenchfry164**

  2. #2
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    If I remember correctly, MSVC++ doesn't build DOS applications. This is direct link to the FAQ where is a source code for blitting image. There really is information in FAQ if you just would read it.
    Making error is human, but for messing things thoroughly it takes a computer

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    15

    Talking

    MSVC ++ does allow you to write for dos. Just use standard ansc C\C++. Test your code in a windows console application. You can then port that over to a dos machine.

    REMEMBER: You will not be able to use MFC or Windows API Calls in your code. Good Luck!

  4. #4
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    MSVC ++ does allow you to write for dos.
    ..but the console won't do graphics (along with other dos specific stuff), so he/she wouldn't be able to test it on MSVC (assuming that it is a dos app they want to do and not a console one).
    zen

  5. #5
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    Dude you have to learn your devices....
    Console looks like DOS but is in a smaller window, right? Well DOS has two modes: Text Mode, And Graphics Mode. Console Only does Text Mode. That is only what MSVC++ supports. If you download Borland Turbo C++, I'd be glad to give you the code to display a GIF, BMP, whatever. MSVC++ only creates windows applications. Consoles are windows applications, they just look like dos but are only in Text Mode. Get it?

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    15

    Talking

    Dude, MSVC++ supports ANSI C\C++. The ansi C\C++ standard provides you with all the tools necessary to communicate with your computer. Most of the windows operating system is written in C. Check out their documentation. Microsoft tells you that the windows operating system is written in C. So you mean to tell me that they use Borland to write their operating system. I don't think so.

    Access to system level resources is possible thru C\C++. You just have to know how to do it. MSVC++ does not give you the header files you need, but you can create your own, to get access to devices. Windows complains when you try to access devices without going thru the API, but you can still do it.

    MSVC++ is not just for programming windows applications. What do you think device drivers are. If you what to write device level code. Just go to Microsoft and download their device driver SDK. These files contain the header files you need to access devices, which include printers, modems, graphics cards, etc.
    Last edited by DrCodeGuru; 09-28-2001 at 07:59 PM.

  7. #7
    "The Oldest Member Here" Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,039
    Who needs those dumb devices? There is a 'LoadBMP' function in windows.h for windows apps

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing bitmaps efficiently
    By scwizzo in forum Windows Programming
    Replies: 28
    Last Post: 06-30-2009, 08:25 PM
  2. DX9 Not Displaying Bitmaps
    By Sentral in forum Game Programming
    Replies: 9
    Last Post: 01-31-2006, 05:35 AM
  3. MFC: Multiple clicks shows multiple bitmaps - how?
    By BrianK in forum Windows Programming
    Replies: 0
    Last Post: 06-20-2004, 07:25 PM
  4. Loading bitmaps with createfile() +CreateDIBSection
    By Stevo in forum Windows Programming
    Replies: 7
    Last Post: 05-13-2004, 09:22 PM
  5. using standard bitmaps in the toolbar editor
    By Kibble in forum Windows Programming
    Replies: 0
    Last Post: 12-23-2002, 08:43 PM