China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 04:30
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » [Help] TC errors when loading BMP images! View 1,417 Replies 8
Original Poster Posted 2003-10-23 00:00 ·  中国 陕西 西安 电信
初级用户
★★
忍者
Credits 376
Posts 86
Joined 2003-10-16 00:00
22-year member
UID 11361
Gender Male
Status Offline
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!
以C语言软件开发为主:http://sunny1979.icpcn.com
Floor 2 Posted 2003-10-24 00:00 ·  中国 湖南 长沙 电信
初级用户
★★
Credits 255
Posts 54
Joined 2003-10-24 00:00
22-year member
UID 11864
Gender Male
Status Offline
Can we take a look at your source code?
Floor 3 Posted 2003-10-26 00:00 ·  中国 陕西 西安 长安区 电信
初级用户
★★
忍者
Credits 376
Posts 86
Joined 2003-10-16 00:00
22-year member
UID 11361
Gender Male
Status Offline
以C语言软件开发为主:http://sunny1979.icpcn.com
Floor 4 Posted 2003-10-27 00:00 ·  中国 湖南 长沙 电信
初级用户
★★
Credits 255
Posts 54
Joined 2003-10-24 00:00
22-year member
UID 11864
Gender Male
Status Offline
*_* Could you add a few comments where appropriate?

When writing programs, you need to pay attention to readability.
Floor 5 Posted 2003-10-30 00:00 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 117
Posts 4
Joined 2003-10-30 00:00
22-year member
UID 12166
Gender Male
Status Offline
You didn't write any display code at all
How could you possibly see the image?
Besides, there are errors too!
Floor 6 Posted 2003-10-30 00:00 ·  中国 湖北 武汉 联通
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
Have you used QB before??
If you have, I'm willing to offer a bit of help within my ability!
Floor 7 Posted 2003-11-13 00:00 ·  中国 陕西 西安 电信
初级用户
★★
忍者
Credits 376
Posts 86
Joined 2003-10-16 00:00
22-year member
UID 11361
Gender Male
Status Offline
void BMP_Load_Screen(char *bmp)
Isn't this display code?
I haven't used QB, thank you!
以C语言软件开发为主:http://sunny1979.icpcn.com
Floor 8 Posted 2003-11-14 00:00 ·  中国 湖北 武汉 鹏博士宽带
中级用户
★★
Credits 286
Posts 59
Joined 2003-04-08 00:00
23-year member
UID 1437
Gender Male
Status Offline
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.
Floor 9 Posted 2003-11-17 00:00 ·  中国 陕西 西安 电信
初级用户
★★
忍者
Credits 376
Posts 86
Joined 2003-10-16 00:00
22-year member
UID 11361
Gender Male
Status Offline
Sir on post #8, you were right. I changed it a bit, and now it works.
The result is on my homepage. Click below!
以C语言软件开发为主:http://sunny1979.icpcn.com
Forum Jump: