Results 1 to 10 of 10

Thread: Display Picture in Turbo C

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Question Display Picture in Turbo C

    Can we display picture in Turbo C?
    If yes, please give me a sample.

  2. #2
    Addicted Member SpS's Avatar
    Join Date
    Jul 2005
    Posts
    201

    Re: Display Picture in Turbo C

    Search google

  3. #3
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Display Picture in Turbo C

    ychhuong,

    which C/C++ compiler are you using?
    Last edited by Harsh Gupta; Nov 26th, 2005 at 01:49 PM.
    Show Appreciation. Rate Posts.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Display Picture in Turbo C

    Quote Originally Posted by sunnypalsingh
    Search google
    Such a succinct, helpful reply.

    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.

  5. #5
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Display Picture in Turbo C

    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
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Display Picture in Turbo C

    You need to DL the appropriate Platform SDK as the Express Edition does not include the headers.

  7. #7
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Display Picture in Turbo C

    Thank you. For anyone else trying this, here's what you have to do: http://msdn.microsoft.com/vstudio/ex...alc/usingpsdk/
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  8. #8
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Display Picture in Turbo C

    Quote Originally Posted by McCain
    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
    just to add one more point, if you use or want to use Dev C++, it will require Simple DirectMedia Layer for graphics purpose.
    Show Appreciation. Rate Posts.

  9. #9
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Display Picture in Turbo C

    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
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  10. #10
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Display Picture in Turbo C

    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.
    Show Appreciation. Rate Posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width