Solved

vc++6.0 of graphics.h

Posted on 2002-06-23
11
766 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
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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting IP address 8 71
Find Visual Studio Tools 2 92
C++ question 3 62
Embarcadero WebBroker REST server endpoint parameters 2 54
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now