| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Dialog Box |
I am currently having a problem wit-
h my program, telling me that I am getting
386 errors #13 and #14 when hitting the 'OK' button on my 'About' di-
alog box.
I was wondering if anyone could give me a hand? It is a program tha-
t I have
finished writing in VIO, and am now porting it to WPS, now that I ha-
ve the
code working in VIO.
Here is the relative C segment:
case IDM_HELP_ABOUT:
WinDlgBox( HWND_DESKTOP, hwnd, (PFNWP)DlgProc, NULLHANDLE,
IDM_HELP_ABOUT, NULL ) ;
return 0 ;
break ;
The 'DlgProc' function:
MRESULT EXPENTRY DlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM m-
p2 )
{
switch( msg ) {
case WM_COMMAND:
WinDismissDlg( hwnd, TRUE ) ;
return 0 ;
default:
return WinDefDlgProc( hwnd, msg, mp1, mp2 ) ;
}
}
And the relative code from the dialog file:
DLGTEMPLATE IDM_HELP_ABOUT PRELOAD MOVEABLE DISCARDABLE
{
DIALOG "About", IDM_HELP_ABOUT, -80, -12, 160, 75,
FS_MOUSEALIGN, FCF_SYSMENU | FCF_TITLEBAR | FCF_DLGBORDE-
R
{
CTEXT "Copyright (c) Interrupt ReQuest Software, 1-
995.",
-1, 2, 25, 156, 8
CTEXT "All rights reserved.", -1, 2, 35, 156, 8
DEFPUSHBUTTON "~OK", DID_OK, 60, 4, 40, 15
ICON IDD_BBS_FRAME, -1, 12, 52, 16, 16, WS_GROUP
LTEXT "Enitharmon BBS", -1, 35, 60, 80, 8
LTEXT "Version 1.0a", -1, 35, 50, 80, 8
}
}
And my linker directives:
FILE enibbs.obj
NAME enibbs.exe
OPTION DESCRIPTION 'Enitharmon BBS'
OPTION VERSION=0.99
OPTION NEWFILES // Req'd in Watcom for HPFS support
OPTION STUB=DosStub.Exe // My executable run for DOS users
FORMAT OS2 PM // Make an OS/2 PM application
And my resource compiler command line:
rc enibbs.rc ..\enibbs.exe
N.B. I have not used any special switches on the compiler.
I get the menu and everything, but for some reason when I select the-
help
menu, and then I select the about menu item, and click on 'ok' to cl-
ose
the about dialog box, it returns with an 'unknown title' session ide-
ntifier
#22 (sys3175).
#1. Anyone know what is causing this to happen? (I don't have anyth-
ing
in my header file defined for a value of 22)
#2. Why doesn't it display 'Enitharmon BBS' for the title instead o-
f
'unknown title'?
Thanks in advance. If you have any examples to refer to, I have the
OS/2 2.0 redbooks and the Electronic Developer Magazines. Any help -
would
be most appreciated.
--- Maximus/2 2.01wb
* Origin: T-Board - (604) 591-8208 (1:153/908)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 153/908 969 7041 752 716 920 270/101 396/1 3615/50 229/2 12/2442 @PATH: 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.