Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 21st, 2005, 5:02 PM   #1
shivashankerv
Newbie
 
Join Date: Jan 2005
Posts: 1
Rep Power: 0 shivashankerv is on a distinguished road
error in vc++

Hai,
I have just started to work with VC++, I have written a program for the real time traffic control system and it is in C++. When i tried to execute it in the VC++ environment it is giving the error with the graphics.h header file. I used "using namespace std" and even it is also not working. I know the way the header files should be included in vc++( #include<graphics>). So could anyone please help me to solve this grain problem and i need the way so that i will not have any problem with the header files again.Thanks.
shivashankerv is offline   Reply With Quote
Old Jan 21st, 2005, 7:28 PM   #2
Tama
Programmer
 
Join Date: Dec 2004
Posts: 35
Rep Power: 0 Tama is on a distinguished road
>I know the way the header files should be included in vc++( #include<graphics>).
Omitting the .h only applies to standard headers. graphics.h is a Borland extension. On top of that, assuming you're using a modern operating system, graphics.h won't work even if you have the correct compiler. You're looking at a sweeping change to the program because you need to rip out the ancient graphics.h stuff and insert the equivalent code using the Windows API, or a good third party library.
Tama is offline   Reply With Quote
Old Jan 22nd, 2005, 1:51 AM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
You need to look into using the DirectX API or working with the Windows GDI. http://msdn.microsoft.com is a great starting place for both APIs. I would strongly recommend DirectX. You can also get a whole lot more information from http://www.gamedev.net on those topics.
__________________
Clifford Matthew Roche &lt;geek@cliffordroche.com&gt;
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC