Thread: Image opening with Visual C++

  1. #16
    george7378
    Guest
    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
    george7378
    Guest
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  2. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08: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