From: yaniv.dg on
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?

From: John Carson on
<yaniv.dg(a)gmail.com> wrote in message
news:1159116717.590266.250140(a)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




From: yaniv.dg on
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 ×?ת×?:
> <yaniv.dg(a)gmail.com> wrote in message
> news:1159116717.590266.250140(a)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

From: John Carson on
<yaniv.dg(a)gmail.com> wrote in message
news:1159348935.611320.250430(a)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


From: yaniv.dg on
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 ×?ת×?:
> <yaniv.dg(a)gmail.com> wrote in message
> news:1159348935.611320.250430(a)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