Path: utzoo!attcan!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms Subject: Re: Dialog boxes multiplying like rabbits Message-ID: <57456@microsoft.UUCP> Date: 16 Sep 90 21:30:33 GMT References: <1990Sep6.010555.25903@watserv1.waterloo.edu> <21114@spudge.UUCP> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 27 In article <21114@spudge.UUCP> johnm@spudge.UUCP (John Munsch) writes: >I was an idiot and forgot to export the dialog box function. Since none >of the development tools warn you of an unexported function it is an easy >mistake to make and the results can be incredibly weird. > >John Munsch One way to avoid this is to use the _export keyword. So instead of a Window function that looks like DWORD FAR PASCAL WinProc(...) it looks like DWORD FAR PASCAL EXPORT WinProc(...) where you have #define EXPORT _export defined someplace convenient. This way the export is defined with the procedure instead of someplace seperate. Ken Sykes Disclaimer: The above opinions are solely my own.