Forum     

Go Back   Digit Technology Discussion Forum > Hardware > Graphic cards
Register FAQ Calendar Mark Forums Read

Graphic cards News, discussions, queries and problems related to Graphic cards.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-07-2005, 12:59 AM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default EDITED: C Graphics Programming help


i got the following program frm somewhere and want to run it on my PC ...

Quote:
#include <stdio.h>
#include <vga.h>
#include <vgagl.h>

main()
{
vga_init();
vga_setmode(G320x200x256);
vga_drawline(10,10,100,100);
sleep(2);
vga_clear();

//Change screen resolution
vga_setmode(G640x480x16);
//Change current drawing color
vga_setcolor(10);

vga_drawline(10,10,100,100);
vga_getch();
vga_setmode(TEXT);
}
i didnt have vga.h and vgagl.h files in my include directory .....
searched google but got only vga.h ....
NOT THE OTHER FILE ....

where can i get the other???
__________________
mekalodu
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-07-2005, 01:56 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2005
Posts: 46
Default

I had done C++ n C# but never required vgagl coz lots a macros r defined in it, ne ways we had 2 do some work on it so i have some links of useful info abt vgagl.h n vgagl.h itself.... do c++ or visual c / c++, dont waste ur time on c...
the links are:
1. info abt vgagl.h http://www.rt.com/man/vgagl.7.html

2. vgagl.h http://ldp.hughesjr.com/linuxfocus/E...rticle72.shtml
dkd903 is offline  
Old 03-07-2005, 03:19 PM   #3 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default


but i cant find the file i need vgagl.h ...... where is it ... plz help ....
__________________
mekalodu
iinfi is offline  
Old 06-07-2005, 11:37 PM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default

i m not getting the 2 files vga.h and vgagl.h

then vga.h which i got frm the net seems to have some problem ... my compiler is showing some error inside the file while compiling ....

i jus copied the vga.h file in the include directory ... but it doesnt seem to work .....

plz help .....
__________________
mekalodu
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Who
- by Tenida
- by Sujeet
- by bhaskar

Advertisement




All times are GMT +5.5. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2