回 帖 发 新 帖 刷新版面

主题:求助  关于头文件

照着一些图像处理方面的书上面的例子练习,但老是出现
Cannot open include file: 'vesa_w.h': No such file or directory
Cannot open include file: 'file_w.h': No such file or directory
   我看了下 VC目录里确实没有vesa_w.h  和file_w.h  要怎么办?  很多例子上的头文件我都没有,是我VC版本的问题还是其他什么
有人说可以自己编写,但没搞懂怎么回事,我找到了个vesa.h的

#ifndef _PYOS_VESA_H_ 
#define _PYOS_VESA_H_ 
 
/*********************************** 
* vesa 驱动程序                    * 
* 现在处理的是 800 * 600 ( 5:5:5 ) * 
***********************************/ 
 
extern const int VESA_SCREEN_X_MAX ; 
extern const int VESA_SCREEN_Y_MAX ; 
 
// 色调合成函数 
unsigned short vesa_compond_rgb( unsigned char r , unsigned char g , unsigned char b ) ; 
 
// 色调转换函数,把 5:5:5 格式转换成标准的 5:6:5 格式 
unsigned short vesa_change_color_form_555_to_565( unsigned short color_form_555 ) ; 
 
// 画点函数 
void vesa_draw_point( unsigned int x , unsigned int y , unsigned short color ) ; 
 
// 矩形填充函数 
void vesa_fill_rect( unsigned int x1 , unsigned int y1 , unsigned int x2 , unsigned int y2 , unsigned int color ) ; 
 
// 清屏函数 
void vesa_clean_screen( unsigned short color ) ; 
 
// 画横线函数 
void vesa_draw_x_line( unsigned int y , unsigned int x1 , unsigned int x2 , unsigned short color ) ; 
// 画竖线函数 
void vesa_draw_y_line( unsigned int x , unsigned int y1 , unsigned int y2 , unsigned short color ) ; 
// 画矩形函数 
void vesa_draw_rect( unsigned int x1 , unsigned int y1 , unsigned int x2 , unsigned y2 , unsigned short color , int dose_fill_it ) ;  
 
// 显示英文 
void vesa_print_english( unsigned int x , unsigned int y , unsigned int pos_in_font , unsigned short color ) ; 
 
// 显示汉字 
void vesa_print_chinese( unsigned int x , unsigned int y , unsigned int pos_in_font , unsigned short color ) ; 
 
// 显示 bmp 格式的图片 
void vesa_show_bmp_picture( unsigned int x , unsigned int y , void *bmp_addr , unsigned short mask_color , int dose_use_mask_color ) ; 
 
// 显示字符 
void vesa_print_char_under_text_model( char x ) ; 
 
// 图片拷贝函数 
void vesa_copy_picture_from_screen( unsigned int x , unsigned int y , unsigned short *object_picture_addr , unsigned int picture_width , unsigned int picture_height ) ; 
 
// 图片拷贝函数 
void vesa_copy_picture_to_screen( unsigned int x , unsigned int y , unsigned short *source_picture_addr , unsigned int picture_width , unsigned int pictrue_height ) ; 
// 取得指定点色彩 
unsigned short vesa_get_point_color( unsigned int x , unsigned int y ) ; 
 
#endif 

   

    但不知道怎么用。
 还有个问题,我一直没搞清楚graphics.h 是TC的图形库  ,那VC的图形库是vesa.h吗 如果不是 那是什么?
只要是比较长的例子,我就没有成功运行过,总有很多看不懂的错误。
小弟初来乍到,高手指点下啊,不胜感激~~
来源: http://www.programbbs.com/bbs/announce.asp?boardid=35

回复列表 (共2个回复)

沙发

看《深入浅出MFC》这本书吧

板凳


谢谢啊  终于看到回帖的了   最近把我急的~~~

我来回复

您尚未登录,请登录后再回复。点此登录或注册