![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 1
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Dec 2004
Posts: 35
Rep Power: 0
![]() |
>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. |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|