hi all,
i'm trying to build a program with graphics but its not possible in
visual c only in borland
what is the option for use graphics in visual c?

Re: graphics.h by John

John
Sun Sep 24 18:00:24 CDT 2006

<yaniv.dg@gmail.com> wrote in message
news:1159116717.590266.250140@d34g2000cwd.googlegroups.com
> hi all,
> i'm trying to build a program with graphics but its not possible in
> visual c only in borland
> what is the option for use graphics in visual c?

There are lots of options: gdi, gdi+, direct X, opengl...

See about gdi and gdi+ here:

http://msdn.microsoft.com/library/en-us/dnanchor/html/gdi.asp?frame=true

http://msdn.microsoft.com/library/en-us/gdicpp/GDIPlus/GDIPlus.asp?frame=true

If you want to be able to use graphics.h under Windows, then I don't believe
you can.


--
John Carson





Re: graphics.h by yaniv

yaniv
Wed Sep 27 04:22:15 CDT 2006

hi john
thanks for your answer.
the issue is that i need to use in C code the graphics and gdi and
ctr.. are built on a visual c++ based,its something that i cannot use.
do you have maybe another option?

John Carson =D7=9B=D7=AA=D7=91:
> <yaniv.dg@gmail.com> wrote in message
> news:1159116717.590266.250140@d34g2000cwd.googlegroups.com
> > hi all,
> > i'm trying to build a program with graphics but its not possible in
> > visual c only in borland
> > what is the option for use graphics in visual c?
>
> There are lots of options: gdi, gdi+, direct X, opengl...
>
> See about gdi and gdi+ here:
>
> http://msdn.microsoft.com/library/en-us/dnanchor/html/gdi.asp?frame=3Dtrue
>
> http://msdn.microsoft.com/library/en-us/gdicpp/GDIPlus/GDIPlus.asp?frame=
=3Dtrue
>
> If you want to be able to use graphics.h under Windows, then I don't beli=
eve
> you can.
>=20
>=20
> --=20
> John Carson


Re: graphics.h by John

John
Wed Sep 27 05:48:25 CDT 2006

<yaniv.dg@gmail.com> wrote in message
news:1159348935.611320.250430@b28g2000cwb.googlegroups.com
> hi john
> thanks for your answer.
> the issue is that i need to use in C code the graphics and gdi and
> ctr.. are built on a visual c++ based,its something that i cannot use.
> do you have maybe another option?

GDI can be used with C. It does do not require C++ (GDI+ requires C++, but
GDI doesn't).

--
John Carson



Re: graphics.h by yaniv

yaniv
Fri Sep 29 17:12:47 CDT 2006

hi john,
thanks for your help but from some reason i'm little bit lost with the
GDI option.
i see that the fuctions are accually API functions but i dont really
see how can i merge between them and my C project.
can you please give me the starting steps in order for me to merge
between the 2 and to be able to use them(by the way beside giving the
option for MFC i dont see another option)

John Carson =D7=9B=D7=AA=D7=91:
> <yaniv.dg@gmail.com> wrote in message
> news:1159348935.611320.250430@b28g2000cwb.googlegroups.com
> > hi john
> > thanks for your answer.
> > the issue is that i need to use in C code the graphics and gdi and
> > ctr.. are built on a visual c++ based,its something that i cannot use.
> > do you have maybe another option?
>
> GDI can be used with C. It does do not require C++ (GDI+ requires C++, but
> GDI doesn't).
>=20
> --=20
> John Carson


Re: graphics.h by John

John
Fri Sep 29 20:11:24 CDT 2006

<yaniv.dg@gmail.com> wrote in message
news:1159567967.829283.195380@c28g2000cwb.googlegroups.com
> hi john,
> thanks for your help but from some reason i'm little bit lost with the
> GDI option.
> i see that the fuctions are accually API functions but i dont really
> see how can i merge between them and my C project.
> can you please give me the starting steps in order for me to merge
> between the 2 and to be able to use them(by the way beside giving the
> option for MFC i dont see another option)


You haven't given any details about your C project, so I am not well placed
to advise on how to merge them.

At a guess, you have a command line project. These days, almost nobody does
computer graphics that way outside of computer science classes.

If you do want to do it that way, one possibility is to use GLUT with
OpenGL.

http://www.xmission.com/~nate/glut.html

If you were to abandon the command line approach and go with a GUI
(Graphical User Interface) project, then learning how to do it takes some
time and I can't tell you how to do it within the confines of a newsgroup
post. You will also find it difficult to find Web pages discussing GUI
projects using C only: they usually use C++. Nevertheless, if you Google you
might have some success. If you have a month or two to invest, then you
could get Charles Petzold, Programming Windows, 5th ed. (the complete book
will take longer than a month or two, but you could learn how to do a GUI
program with graphics in that time).

--
John Carson