Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!pacbell.com!pacbell!att!mcdchg!chinet!patrickd From: patrickd@chinet.chi.il.us (Patrick Deupree) Newsgroups: comp.windows.ms Subject: Re: Dialog Boxes Message-ID: <1990Aug30.143400.2442@chinet.chi.il.us> Date: 30 Aug 90 14:34:00 GMT References: <13163@hydra.gatech.EDU> Organization: The Whitewater Group, Evanston, IL Lines: 34 In article <13163@hydra.gatech.EDU> gt3070b@prism.gatech.EDU (Jeff Watkins) writes: [Sample of Dialog Box script that looked fine] [Sample of Dialog code that looks sorta fine] >So just what am I doing wrong here? I pound on my enter and tab keys until >the springs threaten to break of, but nothing happens. No messages are sent >to my dialog function. (Boldface on)NO(Boldface off) messages are sent at >all! Here's the part where I ask my stupid question. When you bring up the dialog box do you have the following code in your program: lpProc = MakeProcInstance(, hInst); DialogBox(hInst, "", hWnd, lpProc); FreeProcInstance(lpProc); If not, it would be a definite problem (I'm especiallly referring to the first line). Actually, I can't think of a way you'd bring up the dialog without this, but I'm checking. The next question regards the constants. You posted dialog resource code that had a 107 for the button you were using and in the code you refered to IDC_PASSWD (or something like that). I'm going on the assumption that these are the same value. One other tip here is that you should use EndDialog, not DestroyDialog. This would have nothing to do with you're not getting any messages, however. Next tip, make sure that your .DEF file contains the dialog proc name in it's EXPORTS section. I think that covers just about anything that could go wrong. -- "What's in a name? That which we call a rose by any other name would smell as sweet." William Shakespeare Patrick Deupree -> patrickd@chinet.chi.il.us Business Phone: (708) 328-3800