|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Problem
There isnt enough info here to see the problem . . . two things that it
could be that I can see from this is
1. Are you allocating memory for the pointer you called "pic"?
2. Are the screen coordinates of "0,0" as in the "DrawPicture()" Function
maybe not being multiplied in that function and giving a bum answer.?
----- Original Message -----
From: "K.E.Pradheep" <kelango@vsnl.com>
To: <gameprogrammer@gameprogrammer.com>
Sent: Monday, July 10, 2000 4:15 PM
Subject: Problem
> I used the following code for loading a bmp(paint) file and displaying
> it. but it didn't work. why. please look into it.
>
> Pradheep.
>
> #include <math.h>
> #include <math.h>
> #include <conio.h>
> #include <stdiostr.h>
> #include <bmp.h>
> #include <dos.h>
> #include <fstream.h>
> #include <graph1.h>//for mode 13
>
> void main ()
> {
> Picture *pic;
> LoadBMP("archu1.bmp",pic);
> entermode();
> WaitRetrace();
> DrawPicture(0,0,*pic);
> getch();
> }
>
>
> =================================================================
> The GameProgrammer.Com mailing list is for the open discussion
> of any topic related to the art, science, and business of
> programming games. This list is especially tolerant of beginners.
> We were all beginners once
>
> To SUBSCRIBE or UNSUBSCRIBE please visit:
> http://gameprogrammer.com/mailinglist.html
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|