This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Solve this code segment ...


Solve this code segment ...

Postby qasim1981 » Oct 19, 2004 @ 3:13am

qasim1981
pm Member
 
Posts: 7
Joined: Oct 17, 2004 @ 10:05am
Location: Rawalpindi, Pakistan


Postby InexorableTash » Oct 19, 2004 @ 7:16am

"Give a man a fish and he can eat for a day. Teach a man to fish and he can eat for the rest of his life."

(1) Try checking the return values of the method calls into the various CGapiSurface objects. Are they returning success or failure? If success, is your code doing what you think it's doing? If failure, why?

(2) Try using breakpoints to determine if values you think are set really are. (Hint: they aren't)

(3) Try using breakpoints, and determing if the code you assume is running really is running. (Hint: it's not)

(These are basic software debugging steps, so it's important to learn them. Otherwise, you might as well just contract someone to write your code for you.)
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby vince_mad » Oct 19, 2004 @ 9:56am

Hi,
Just a couple of questions:
What size is your image?
What size is the screen you try to display it on?

I see you BltFast your image with this code:

If the image is bigger than the screen it won't appear.
If it is the case, instead of the NULL pointer (just after the surface pointer in the call to BltFast) use a pointer to a RECT you set smaller than your screen.

It may not help but that just caught my eye.

Vincent.
User avatar
vince_mad
pm Member
 
Posts: 136
Joined: Mar 30, 2004 @ 7:40pm
Location: Paris, France


Postby Structure » Oct 19, 2004 @ 11:55am

User avatar
Structure
pm Member
 
Posts: 147
Joined: Sep 17, 2004 @ 8:28pm
Location: UK


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum