c++ and bitmaps

Sharky Forums


Results 1 to 4 of 4

Thread: c++ and bitmaps

  1. #1
    Goldfish qwe's Avatar
    Join Date
    Sep 2002
    Location
    London
    Posts
    69

    c++ and bitmaps

    I'm working from a book called "SAMS teach yourself game programming in 24 hours", and I'm having a problem with the code. In chapter 5 it teaches you to write a slideshow program, however when I write it, it doesn't show the images correctly. When I run the example code that is provided, it works just fine. I can't see the problem with the code that I've written. Can anyone help?
    Possesions never meant anything to me,
    I'm not crazy.
    Well that's not true I have a bed,
    and a guitar and a dog named dog.

  2. #2
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    That could be a challenge considering we don't have your code

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  3. #3
    Hammerhead Shark xDUCK's Avatar
    Join Date
    Dec 2002
    Location
    Vancouver, BC, Canada
    Posts
    2,992
    Originally posted by rock
    That could be a challenge considering we don't have your code
    No, of course not! Not if you're a pro like me.

    Qwe, you forgot to initialize the char on line 537.


    Anything's Hot Swappable if you're fast enough.

    Owner of zeroBel.com.

    [ My rig ]
    24/7: 260FSBx9.5 CPU Interface Enabled 1:1 2-2-2-11 (2.0v VDD, 3.4v Vdimm)

    NF7-S rev2.0 C1 d10 / 2500+ AQXEA SPMW "9" "27" / 256mb KHX3200 (BH-5) + 2x256mb Corsair 3200LL (also BH-5) / 80gb/7200/2mb IBM Deskstar / 80gb/7200/8mb Seagate SATA / ATI Radeon 9800 Pro 128 / 22" NEC FP2141-BK / Sennheiser HD570

    Sharky Extreme 3DMark Team


    Official member of the Big_Mac-is-generous club!

  4. #4
    Goldfish qwe's Avatar
    Join Date
    Sep 2002
    Location
    London
    Posts
    69

    whoops sorry,

    to make the thread easier to read. I've put the code up here http://www.geocities.com/qepto/

    thanks for any help that you can give.
    Possesions never meant anything to me,
    I'm not crazy.
    Well that's not true I have a bed,
    and a guitar and a dog named dog.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •