I have the following code that works perfectly when compiled in 16-bit. When it is compiled in 32-bit, there is no response when a particular menu option is selected. The code looks something like this:
//this part doesn't seem get executed, probably because the
//program is confused by WPARAM, LPARAM
LRESULT TTop20Wnd :: WMExportFile (WPARAM,LPARAM) {
char itemnumstr[4]="";
if (strlen (quotenum) < 2)
//code continues...
}
The response table looks like this
DEFINE_RESPONSE_TABLE1( TTop20Wnd, TChildWin )
EV_MESSAGE( WM_EXPORTFILE, WMExportFile),
EV_COMMAND( CM_REDESIGN, CMRedesign),
EV_COMMAND( CM_CHOOSE_DESIGN, CMChooseDesign),
END_RESPONSE_TABLE;
Now, how do I make this code portable using message crackers?
Thanks in advance.
//this part doesn't seem get executed, probably because the
//program is confused by WPARAM, LPARAM
LRESULT TTop20Wnd :: WMExportFile (WPARAM,LPARAM) {
char itemnumstr[4]="";
if (strlen (quotenum) < 2)
//code continues...
}
The response table looks like this
DEFINE_RESPONSE_TABLE1( TTop20Wnd, TChildWin )
EV_MESSAGE( WM_EXPORTFILE, WMExportFile),
EV_COMMAND( CM_REDESIGN, CMRedesign),
EV_COMMAND( CM_CHOOSE_DESIGN, CMChooseDesign),
END_RESPONSE_TABLE;
Now, how do I make this code portable using message crackers?
Thanks in advance.