Image opening with Visual C++

This is a discussion on Image opening with Visual C++ within the C++ Programming forums, part of the General Programming Boards category; I've managed a program that downloads this image ( http://sohowww.nascom.nasa.gov/data/...24/latest.html ) whenever it is run, saves it as a .bmp ...

  1. #16
    Registered User
    Join Date
    Feb 2010
    Posts
    128
    I've managed a program that downloads this image (http://sohowww.nascom.nasa.gov/data/...24/latest.html) whenever it is run, saves it as a .bmp and then opens another program to display it, but I get the message that the .bmp is not in 3.00 format. Is there some code to convert it to this?

    Thanks.

  2. #17
    Registered User
    Join Date
    Feb 2010
    Posts
    128
    I have another question:

    I am learning to display bitmaps in dialog boxes, and have the following code for a resource:

    Code:
        CONTROL         IDB_SUNPIC, IDC_SUNFRAME, WC_STATIC, SS_BITMAP, 30, 12, 341, 236
    This puts a picture frame in a dialog box called IDC_SUNFRAME, intended to display an image called IDB_SUNPIC on a dialog box. I compile this, but get the error telling me that WC_STATIC is undefined. I tried defining it in the resource header as -2, but this time, although the program runs, nothing happens when I press the button to open the dialog box with the picture fram in it.

    What could be wrong? How do you define WC_STATIC?

    Thanks.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 01:46 PM
  2. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 09:26 AM
  3. What's wrong with this code??
    By Xanth in forum C Programming
    Replies: 11
    Last Post: 12-23-2004, 02:41 PM
  4. Do I need Visual C++ for image display
    By algi in forum C++ Programming
    Replies: 7
    Last Post: 11-20-2004, 04:08 PM
  5. MS Visual C++ 6 wont include vector.h in a header file
    By bardsley99 in forum C++ Programming
    Replies: 9
    Last Post: 11-06-2003, 12:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21