Simple Ddraw question. Display bitmap on a screen.

This is a discussion on Simple Ddraw question. Display bitmap on a screen. within the Game Programming forums, part of the General Programming Boards category; Hey. Just started some programming using some graphics API's. Know some openGL, but moving into Direct X API.. My problem ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    93

    Question Simple Ddraw question. Display bitmap on a screen.

    Hey. Just started some programming using some graphics API's. Know some openGL, but moving into Direct X API..

    My problem is a simple one that I'm hoping someone can answer for me.. I wrote a program to load a bitmap into memory and then display it to the screen, however, all I am getting is a black screen.

    I tried to debug it step by step and all functions pass successfully. I guess I am loading the bitmap wrong or drawing it to the surface incorrectly, but there are so many things that could go wrong that I do not know how to find the problem.

    I'll include my source code below.. It contains 5 files.

    Main.cpp
    DDSetup.cpp
    BmpImage.h
    BmpImage.cpp
    Background.bmp

    Basically what I'm trying to do is create a window that is Fullscreen 640x480 and display the bitmap to it which is 640x480x8, but it is not displaying it..

    Thnx for any help.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Display Problem?
    By portable in forum C Programming
    Replies: 4
    Last Post: 01-03-2008, 06:53 AM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  5. Screen display
    By neandrake in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 02-25-2002, 08:56 PM

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