Thread: Image opening with Visual C++

  1. #16
    Registered User
    Join Date
    Feb 2010
    I've managed a program that downloads this image ( 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?


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

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

        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?


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, 01:41 PM
  4. Do I need Visual C++ for image display
    By algi in forum C++ Programming
    Replies: 7
    Last Post: 11-20-2004, 03: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, 11:05 AM