Can we display picture in Turbo C?
If yes, please give me a sample.
Printable View
Can we display picture in Turbo C?
If yes, please give me a sample.
Search google
ychhuong,
which C/C++ compiler are you using?
Such a succinct, helpful reply.Quote:
Originally Posted by sunnypalsingh
Where do you want to display the picture? A window? ASCII art in a console? What kind of picture is it?
Oh and BTW, get yourself a better compiler. You can get the RTM version of VC++ 2005 Express for free from MSDN as long as as you register it within about a year. You can get the C++Builder compiler as well, but AFAIK it doesn't have an IDE.
Another IDE/compiler that a lot of people use, and that's free is Dev-C++ (http://www.bloodshed.net/devcpp.html)
Maybe I didn't try hard enough, but I couldn't make any non MFC win32 apps in VC++ 2005 :(
You need to DL the appropriate Platform SDK as the Express Edition does not include the headers.
Thank you. For anyone else trying this, here's what you have to do: http://msdn.microsoft.com/vstudio/ex...alc/usingpsdk/
just to add one more point, if you use or want to use Dev C++, it will require Simple DirectMedia Layer for graphics purpose.Quote:
Originally Posted by McCain
No, not really, if all you want to do is to display a picture you can use the win api. Relevant functions would be BitBlt, CreateDC, SelectObject and others like them
oh, thnx McCain, yeah forgot about the APIs. just mentioned SDL if s/he is making a MS-Paint like program.Quote:
Originally Posted by McCain