Is there a problem with my bitmap loader?

This is a discussion on Is there a problem with my bitmap loader? within the C++ Programming forums, part of the General Programming Boards category; #include <iostream> #include <conio.c> #include <Graphic.h> int main(int argv, char *argc[]) { getmaxx(40); getmaxy(25); getmaxcolor(256); SetSVGA(); load_bmp("C:\My Documents\something.bmp", something); draw_bmp(something, ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    156

    Is there a problem with my bitmap loader?

    #include <iostream>
    #include <conio.c>
    #include <Graphic.h>

    int main(int argv, char *argc[])
    {
    getmaxx(40);
    getmaxy(25);
    getmaxcolor(256);
    SetSVGA();
    load_bmp("C:\\My Documents\\something.bmp", something);
    draw_bmp(something, 20, 13);

    getch();
    return 0;
    }
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: goldenbunny84@hotmail.com

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    *sigh* I don't know, you might be able to find out by attempting to compile it.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    I did, I got errors in Graphic.h
    I don't really understand the coding in that header file. But is there a problem with my file?
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: goldenbunny84@hotmail.com

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  4. #4
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    What were the errors?

  5. #5
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    It looks as if you are using DevC++; I can tell by the int main() statement.

    DevC++ doesn't have a graphics.h include file...I believe only the borland compiler does.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitmap saving problem
    By geek@02 in forum Windows Programming
    Replies: 3
    Last Post: 10-01-2007, 09:44 PM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  3. Bitmap scroll issues
    By Gerread in forum Windows Programming
    Replies: 4
    Last Post: 05-14-2007, 06:18 AM
  4. Reading Bitmap File Header Problem.
    By StanleyC in forum C Programming
    Replies: 7
    Last Post: 08-26-2004, 06:54 PM
  5. Problem With My Bitmap
    By Sebastiani in forum Windows Programming
    Replies: 9
    Last Post: 10-29-2001, 09:54 PM

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