中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 05:48
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » [Help] TC errors when loading BMP images!
Printable Version  1,512 / 8
Floor1 sunny1979 Posted 2003-10-23 00:00
初级用户 Posts 86 Credits 376
When I was using TC to make an interface and loading a BMP image, it compiled successfully, but the image didn't display.
Question: what kind of problem is this usually? I've looked up a lot of materials, and they're all more or less the same!
Floor2 凌晨一点 Posted 2003-10-24 00:00
初级用户 Posts 54 Credits 255
Can we take a look at your source code?
Floor3 sunny1979 Posted 2003-10-26 00:00
初级用户 Posts 86 Credits 376
Floor4 凌晨一点 Posted 2003-10-27 00:00
初级用户 Posts 54 Credits 255
*_* Could you add a few comments where appropriate?

When writing programs, you need to pay attention to readability.
Floor5 dte Posted 2003-10-30 00:00
初级用户 Posts 4 Credits 117
You didn't write any display code at all
How could you possibly see the image?
Besides, there are errors too!
Floor6 qb45 Posted 2003-10-30 00:00
高级用户 Posts 194 Credits 677
Have you used QB before??
If you have, I'm willing to offer a bit of help within my ability!
Floor7 sunny1979 Posted 2003-11-13 00:00
初级用户 Posts 86 Credits 376
void BMP_Load_Screen(char *bmp)
Isn't this display code?
I haven't used QB, thank you!
Floor8 Loff Posted 2003-11-14 00:00
中级用户 Posts 59 Credits 286
I don't know whether the OP is using source code from some book. It seems like it was called something like "Standard VESAXXX" or maybe "C Game Programming from Beginner to Expert"—I don't remember exactly. I used it too, and there was no image either. Later, using the same principles, I rewrote the related code myself instead of using the book's code directly, and then the image appeared. I guess there's probably a problem with his palette-setting code.
Floor9 sunny1979 Posted 2003-11-17 00:00
初级用户 Posts 86 Credits 376
Sir on post #8, you were right. I changed it a bit, and now it works.
The result is on my homepage. Click below!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023