Article View: comp.windows.ms
Article #13877RegisterClass in DLL
From: Marco Dalla-Gasperina
Date: Thu, 28 Dec 1989 00:57
Date: Thu, 28 Dec 1989 00:57
19 lines
1053 bytes
1053 bytes
Greetings, I'm having a problem registering a window class inside a DLL... It seems to work for a "few" times (usually 3) but then it fails? The RegisterClass call is inside the LibInit routine that gets called at load time (as shown in Petzold ch. 18). The return value of LibInit is tied to the success of the RegisterClass. If the RegisterClass fails, LibInit returns 0 back to Windows at which time the spawn fails due to "Not Enough Memory". Numerous tests have confirmed that this is the case, but I could be missing something. Any ideas? BTW, by symmetry, I would expect a LibUninit call also... does such a beast exist? Just Curious. Thanks, marco
Technical Details
Message-ID:
<6970014@hpmcaa.mcm.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hpmcaa!marcoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hpmcaa!marco From: marco@hpmcaa.mcm.hp.com (Marco Dalla-Gasperina) Newsgroups: comp.windows.ms Subject: RegisterClass in DLL Message-ID: <6970014@hpmcaa.mcm.hp.com> Date: 28 Dec 89 00:57:40 GMT Organization: HP McMinville Division Lines: 19