CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    how to display jpeg files in windows program?

    Hi,

    I'm trying to open jpeg files in my program (visual c++ with MFC), how do I go about doing that? Any suggestions and tips greatly appreciated.

    thanks!


  2. #2
    Join Date
    May 1999
    Posts
    53

    Re: how to display jpeg files in windows program?

    You would have to use a library or write your own code to read JPEG files. There's a link to a image library on CodeGuru.

    As for opening them, use the CFileDialog class:

    CFileDialog dlg(TRUE); // True means open
    dlg.DoModal();
    AfxMessageBox("You selected " + (CString)dlg.m_pszFileName);




    -shellreef


  3. #3
    Join Date
    Apr 1999
    Location
    Toronto, ON
    Posts
    713

    Re: how to display jpeg files in windows program?

    See library on www.jpeg.org It works!



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

Featured