Solved

vc++6.0 of graphics.h

Posted on 2002-06-23
11
772 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 50 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
Industry Leaders: 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!

 
LVL 3

Expert Comment

by:cypherljk
ID: 7102528
0
 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Cross compile release version of c++ program for linux 2 146
Getting IP address 8 124
Indy 10 not Receiving UDP broadcast 3 56
c++  placing data into a form and an editbox 5 48
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

738 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