Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

vc++6.0 of graphics.h

Posted on 2002-06-23
11
Medium Priority
?
779 Views
Last Modified: 2012-08-13
hi,
i used vc++6.0,but i can't used graphics.h, when i compile this progame
,it have show many error about graphics.h file.
the many error is:
error C4226: nonstandard extension used : 'far' is an obsolete keyword
and VC++6.0 had inside graphics.h file.
help me.
0
Comment
Question by:eirco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 2

Expert Comment

by:venkaiah
ID: 7101579
hi friend do one thing.

before #include <graphics.h>
just include #include <wtypes.h>


this will helps u.because the FAR pointer decleration is existing in wtypes.h
0
 

Author Comment

by:eirco
ID: 7101594
hi,venkaiah
before problem is ok,
but now have 1 error in graphics.h:
c:\vc98\include\graphics.h(300) : error C4226: nonstandard extension used : 'huge' is an obsolete keyword

pleas help me
thanks
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 7102358
I find no graphics.h header file in my VC++ include folder.  Where did you get this file?  If it what I think it is, you've copied this from an old Borland Turbo C or similar old MSDOS mode compiler.

There is no corresponding "graphics" library in Visual C++ which ONLY supports WIN32 programming.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:eirco
ID: 7103247
i want write dos program first,
i download graphics.h in other homepage

venkaiah please help me
0
 
LVL 32

Expert Comment

by:jhance
ID: 7103353
I you seek help here on EE, you should read all the comments.

Again:

>>>>>There is no corresponding "graphics" library in
>>>>>Visual C++ which ONLY supports WIN32 programming.

If you want to do graphics programming on WIN32 using VC++, you need to use GDI, the native Windows method of writing graphics.  Note that VC++ 6 DOES NOT SUPPORT DOS programming (i.e. 16-bit code) AT ALL.  If you want to do DOS programming you must get an old version of VC++.  I believe that you need V1.52 of VC++.

I suggest that you should get a copy of Charles Petzold's book Programming Windows.  In a very few chapters you will learn what you need to know to get started with Windows graphics programming.
0
 

Author Comment

by:eirco
ID: 7103474
i see,
but vc++6.0+DRIECTX can make good game(graphic and fast)?
0
 
LVL 32

Expert Comment

by:jhance
ID: 7103653
Yes, DirectX can and does make good game graphics.  

But, you need to understand BASIC Windows programming and GDI concepts before jumping into DirectX.

Get Petzold's book, learn Windows programming and concepts, THEN get a good book on DirectX programming (there are several) and move on from there.

But, as ALWAYS, it's NEVER a good plan to start attempting "brain surgery" before you understand "basic anatomy".
0
 
LVL 2

Expert Comment

by:willstones
ID: 7104419
I highly recommend "Tricks Of The Windows Game Programming Gurus" by Andre LaMothe.  It contains a great introduction to windows programming, with a slant on programming for directX.  It is aimed at directx 6 I think but the concepts are pretty much the same.  I read the whole of this book cover-to-cover (all ~1000 pages) and it's a very good read.  And no I am in no way related to Mr LaMothe ;)
0
 
LVL 11

Expert Comment

by:griessh
ID: 7262480
Dear eirco

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jhance"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7332975
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question