Thread: Recource Script Bug in VC++

  1. #1
    Registered User Xzyx987X's Avatar
    Join Date
    Sep 2003
    Posts
    107

    Recource Script Bug in VC++

    I've been using the recource script editor in VC++ for the dialogs in my programs, but there is a weird bug in it that I can't seem to work around. For some reason, occasionally if you change the font on a dialog (other things may trigger it, I'm not sure) the GetDlgItem quits working with it, or any of it's controls. I checked recource.h for value conflicts, but even though there were some, fixing them didn't solve the problem. The only way I've been able to fix the problem in the past, is to redo the dialog, but does anyone know a better way?

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Look at the dialogs script in the .rc file. Some versions of MSVC have errors in what styles they add. Check it has not added a style you do not want ie owner draw.

    Try saving everything and shutting the complier down. Restart and do a full rebuild.

    Make sure you are NOT using MSVC .NET 2002 (upgrade to .NET 2003 to fix many bugs).
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CODE Tags script bug
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 10-15-2006, 02:18 PM
  2. Script in games
    By Shakti in forum Game Programming
    Replies: 7
    Last Post: 09-27-2006, 12:27 AM
  3. From script to C to C++
    By VirtualAce in forum Game Programming
    Replies: 2
    Last Post: 09-11-2006, 04:35 AM
  4. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 11:30 AM
  5. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 01:47 PM