adaca
December 6th, 2003, 11:56 PM
I am currently writing a simple MFC application in .Net 2003.
I am writing a simple room similar to the text adventure games we all grew up with. I have included all the desciptions in a string table already started by the MFC Dialog Wizard. The problem I am running into, is I have a static text box on my dialog window that I want to initialize with one of the strings and update them as the user selects different radio buttons to tell the user what to do inside the room. I've tried a couple different things, but it seems the string table passes back the ID number as an int when a string is expected. I think I might have to use LoadString, but am running into problems learning how to use that. The examples aren't working for my program. Any help on this, or would it help to include some code? (being my first MFC app, my code is really large for some reason; probably a lot of useless stuff)
Thanks in advance!
I am writing a simple room similar to the text adventure games we all grew up with. I have included all the desciptions in a string table already started by the MFC Dialog Wizard. The problem I am running into, is I have a static text box on my dialog window that I want to initialize with one of the strings and update them as the user selects different radio buttons to tell the user what to do inside the room. I've tried a couple different things, but it seems the string table passes back the ID number as an int when a string is expected. I think I might have to use LoadString, but am running into problems learning how to use that. The examples aren't working for my program. Any help on this, or would it help to include some code? (being my first MFC app, my code is really large for some reason; probably a lot of useless stuff)
Thanks in advance!