Wierd Dialog Box Error
-
I have an application that uses a dll to export various dialog boxes. This dll implements a "wizard" if you will that walks the user through setting up a new document for the application. It exports various functions, resources and dialog boxes. The issue that has all of a sudden jumped up, is that when the users starts the wizard, the first dialog box is shown just fine, but when they click next all I get is a blank screen. If I click on the home button on my ppc and go back out to the today screen then click on the icon to start the app again I am give the proper dialog box displayed. This continues thoughout the entire wizard. In a different exported function that uses the same wizard, all the dialog boxes are presented as they should be as the users walks through the wizard. This other function allows the user to go back and add different features to the already created document. It uses all the same code as the first wizard, but yet everything works as I would expect. It as if the drawing mechanism is not being called for each of the dialog boxes after the first one in the initial wizard. On top of all this, everything works just fine in emulator, but not on my device. (Dell Axim X3i) I haven't had a chance to test in on a different machine. Anyone see anything like this before? Thanks, -Eric
-
I have an application that uses a dll to export various dialog boxes. This dll implements a "wizard" if you will that walks the user through setting up a new document for the application. It exports various functions, resources and dialog boxes. The issue that has all of a sudden jumped up, is that when the users starts the wizard, the first dialog box is shown just fine, but when they click next all I get is a blank screen. If I click on the home button on my ppc and go back out to the today screen then click on the icon to start the app again I am give the proper dialog box displayed. This continues thoughout the entire wizard. In a different exported function that uses the same wizard, all the dialog boxes are presented as they should be as the users walks through the wizard. This other function allows the user to go back and add different features to the already created document. It uses all the same code as the first wizard, but yet everything works as I would expect. It as if the drawing mechanism is not being called for each of the dialog boxes after the first one in the initial wizard. On top of all this, everything works just fine in emulator, but not on my device. (Dell Axim X3i) I haven't had a chance to test in on a different machine. Anyone see anything like this before? Thanks, -Eric
VanHlebar wrote: Anyone see anything like this before? Nope. Question: are you using MFC? Regards, João Paulo
-
VanHlebar wrote: Anyone see anything like this before? Nope. Question: are you using MFC? Regards, João Paulo
João, Thanks, I figured it out. Yes I am using MFC. It had something to do with the CCETitleBar object of your that I was using. I had it defined in a view class that was not instatiated yet at the time I was calling the first "wizard". To fix it I just moved the CCeTitleBar object into the first view class and then everything worked as it was supposed. The reason it was working in the second instance of calling the same code was because the "wizard" was being called after all of the different view classes were instatiated. I am not really sure why the CCeTitleBar object was causing this. It was never created yet and there was no call to it or any of its methods inside my dll, but its fixed anyways. Thanks, -Eric