| | |
Graphics in C
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hmm,first sorry for some grammar mistakes...
I have a big problem with graphics in C... For 2 days i'm looking on internet and nothing...I saw some theards and posts but none of the lib didn't work...(It was forums on my language )
I'm working in VS 6.0 I saw here that lib "graphics.h" is old as a Rome,and i lost my time on it for 2 days,because i didn't figure why program wont work.
Can anybody tell me how can i do graphics in C...I find some function for windows but always get 1 warning,for conversion...
Or suggest some book or tut for it...
I look at one theard,where someone posted one link with lib "graphics2" but that didn't work too..
P.S I'm newcomer in programming
Tnx...
I have a big problem with graphics in C... For 2 days i'm looking on internet and nothing...I saw some theards and posts but none of the lib didn't work...(It was forums on my language )
I'm working in VS 6.0 I saw here that lib "graphics.h" is old as a Rome,and i lost my time on it for 2 days,because i didn't figure why program wont work.
Can anybody tell me how can i do graphics in C...I find some function for windows but always get 1 warning,for conversion...
Or suggest some book or tut for it...
I look at one theard,where someone posted one link with lib "graphics2" but that didn't work too..
P.S I'm newcomer in programming
Tnx...
It's kind of hard to read your post, but I don't blame you...

Are you trying to write console or Windows graphics? For console graphics, you can't use libraries such as DirectX or OpenGL. Usually the easiest method to use on Windows is to use the Win API to do your console graphics. I suggest you start here:
http://www.daniweb.com/code/snippet173.html
For going further, use Google; there's tons of information out there.
If you're trying to do Windows graphics, I recommend not using the Windows HDI and instead use an external library such as SDL, OpenGL, DirectX, etc. Also, I suggest you check out this thread on game development:
http://www.daniweb.com/techtalkforums/thread63827.html
Hope this helps
graphics.h is a header file that is only for Turbo C, so don't bother trying to use it. 
Are you trying to write console or Windows graphics? For console graphics, you can't use libraries such as DirectX or OpenGL. Usually the easiest method to use on Windows is to use the Win API to do your console graphics. I suggest you start here:
http://www.daniweb.com/code/snippet173.html
For going further, use Google; there's tons of information out there.
If you're trying to do Windows graphics, I recommend not using the Windows HDI and instead use an external library such as SDL, OpenGL, DirectX, etc. Also, I suggest you check out this thread on game development:
http://www.daniweb.com/techtalkforums/thread63827.html
Hope this helps
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
I'm very sorry
I didn't have many chance to have chat on English...
My knowlege is enough for undrestanding it and read it.
I was on google ofcourse and i didn't find anything what will work (i was looking for one-two days,maybe i should more)
I work in console application...
I find one book on google but there i saw "graphics.h" and i lost one hour writing code which won't work...
Tnx ...I will look that link u posted...
See,I live in Serbia i supose u heard on the news, something is true most is not,but that is not important. Because of that problems IT here is still in process...I go to private univeristy,we have software (OS is for free(ofcourse not in companys),well most of software we get here for free)that is good thing...
BUT,we don't have good books...Our translations are sad,and it is not rare that code is wrong in books.So we have only internet but most of the good books are not for free. So image how much would cost me to order something from USA etc? I'm sorry for this i wrote,but i don't want anybody think that i'm molly girl who is lazy...And want someone else solve my probs...I realy need help because i'm really short with everything.
I didn't have many chance to have chat on English...My knowlege is enough for undrestanding it and read it.
I was on google ofcourse and i didn't find anything what will work (i was looking for one-two days,maybe i should more)
I work in console application...
I find one book on google but there i saw "graphics.h" and i lost one hour writing code which won't work...
Tnx ...I will look that link u posted...
See,I live in Serbia i supose u heard on the news, something is true most is not,but that is not important. Because of that problems IT here is still in process...I go to private univeristy,we have software (OS is for free(ofcourse not in companys),well most of software we get here for free)that is good thing...
BUT,we don't have good books...Our translations are sad,and it is not rare that code is wrong in books.So we have only internet but most of the good books are not for free. So image how much would cost me to order something from USA etc? I'm sorry for this i wrote,but i don't want anybody think that i'm molly girl who is lazy...And want someone else solve my probs...I realy need help because i'm really short with everything.
We can help you out with that a little. To make your posts more understandable, English uses spaces after commas (,) and periods (.). For example, note the space after that comma. And also note the space after that period. This will help. The rest we can figure out.
As for graphics, as Joe said you have to find a graphics package that you can add to your compiler. This and this Google search may give you something to work with.
As for graphics, as Joe said you have to find a graphics package that you can add to your compiler. This and this Google search may give you something to work with.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
>>Our translations are sad,and it is not rare that code is wrong in books.
It is not your translator -- our books have those mistakes too.
>>most of the good books are not for free
One reason people write books is to make money, and they can not do that if they give their work away for free.
>>My knowlege is enough for undrestanding it and read it.
you do that very well, better than many native english-speaking people.
It is not your translator -- our books have those mistakes too.
>>most of the good books are not for free
One reason people write books is to make money, and they can not do that if they give their work away for free.
>>My knowlege is enough for undrestanding it and read it.
you do that very well, better than many native english-speaking people.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Check this. Here you have OpenGL and graphics programming tutorial.
If you want to win, you must not loose (Alan Ford)
•
•
•
•
Originally Posted by joeprogrammer
Are you trying to write console or Windows graphics? For console graphics, you can't use libraries such as DirectX or OpenGL. Usually the easiest method to use on Windows is to use the Win API to do your console graphics. I suggest you start here:
http://www.daniweb.com/code/snippet173.html
I look on google ofcourse, but it takes very much time when u are newcomer and not really sure what am i looking for
I had exame in C today and i wanted to astonish my profesor with some colors on console.
•
•
•
•
Originally Posted by WaltP
We can help you out with that a little. To make your posts more understandable, English uses spaces after commas (,) and periods (.). For example, note the space after that comma. And also note the space after that period. This will help. The rest we can figure out.
•
•
•
•
Originally Posted by Ancient Dragon
It is not your translator -- our books have those mistakes too.
One reason people write books is to make money, and they can not do that if they give their work away for free.
And books...well i can say that some books in which i'm interested in have price like pay of my dad, so i can forget about buying it. I can only dig some knowledge on harder way.:eek:
To get back on subject. I see that i should look for programing tuts with win environment. I saw so much promiscuous codes and get really confused.
For graphics, well i have one book about game programming by Michael Morrison, but it is on C++, so i must wait for month or two because i didn't start learn C++. He sead (i will have trouble translate that) about DirectX that he wont use it for programing because it is compound tehnology. So i see that i should learn something about DirectX if i want use it...
Tnx u all for help very much
Hello there my friend. I really respect your enthusiasm but you must go a bit slow. Talking about DirectX, graphics and all that when you are just learning C / C++ is too much.
Please learn to crawl before you start running. Get your concepts about the things which are not directly related to a particular language (eg. data structures, algorithms ) a bit cleared up.
As far as books are concerned, I know they are expensive. But if you really have in your heart then nothing can stop you.
For C related free stuff you can see here.
For a really good C++ ebook you can see here and also a good site for C++ tutorials.
Hope it helped, bye.
Please learn to crawl before you start running. Get your concepts about the things which are not directly related to a particular language (eg. data structures, algorithms ) a bit cleared up.
As far as books are concerned, I know they are expensive. But if you really have in your heart then nothing can stop you.
For C related free stuff you can see here.
For a really good C++ ebook you can see here and also a good site for C++ tutorials.
Hope it helped, bye.
I don't accept change; I don't deserve to live.
•
•
•
•
I had exame in C today and i wanted to astonish my profesor with some colors on console.
http://www.google.ca/url?sa=t&ct=res...QWjHNiaUX8suUw
And yeah, follow ~s.o.s~'s advice; he knows what he's talking about.
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
•
•
•
•
Hmm,first sorry for some grammar mistakes...
I have a big problem with graphics in C... For 2 days i'm looking on internet and nothing...I saw some theards and posts but none of the lib didn't work...(It was forums on my language )
I'm working in VS 6.0 I saw here that lib "graphics.h" is old as a Rome,and i lost my time on it for 2 days,because i didn't figure why program wont work.
Can anybody tell me how can i do graphics in C...I find some function for windows but always get 1 warning,for conversion...
Or suggest some book or tut for it...
I look at one theard,where someone posted one link with lib "graphics2" but that didn't work too..
P.S I'm newcomer in programming
Tnx...
WWW.flazx.com
I THICK THIS WILL HELP U
![]() |
Similar Threads
- getting graphics into c++ (C++)
- Graphics cards question? (Monitors, Displays and Video Cards)
- Graphics T and L support (Monitors, Displays and Video Cards)
- XP and Graphics card problems (Windows NT / 2000 / XP)
- graphics card (Monitors, Displays and Video Cards)
- recommendations 4 a 3D graphics prog? (Graphics and Multimedia)
Other Threads in the C Forum
- Previous Thread: Count number of one's in 32 bits
- Next Thread: Error while compiling
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlogicaldrivestrin givemetehcodez grade graphics gtkwinlinux histogram homework i/o ide inches include infiniteloop initialization input intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft multi mysql oddnumber open opendocumentformat openwebfoundation overwrite pdf pointer pointers posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation testing threads unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






