Path: utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!ucsd!hub.ucsb.edu!amadeus.ucsb.edu!grosen From: grosen@amadeus.ucsb.edu (Mark D. Grosen) Newsgroups: comp.windows.ms Subject: RegisterClass() in a DLL Message-ID: <5923@hub.ucsb.edu> Date: 10 Jul 90 02:24:56 GMT Sender: news@hub.ucsb.edu Reply-To: grosen@amadeus.ucsb.edu (Mark D. Grosen) Organization: University of California, Santa Barbara Lines: 22 I have implemented some window classes that I would like to use in DLL's, since I have several applications that use them. The "Guide to Programmin" makes a passing reference to registering window classes in the DLL's initialization function. A couple questions: 1) Where do I get an instance handle to use with RegisterClass()? 2) I want to use CS_GLOBALCLASS so that all applications can use this window class. What happens when the first application that caused the DLL to be loaded (and hence initialized) terminates and other subsequent applications using the windows class continue running? Are there any references where this is covered, like maybe the MSJ? Mark Mark D. Grosen ARPA: grosen@amadeus.ucsb.edu Signal Processing Lab / Communications Research Lab ECE Dept. University of California Santa Barbara, CA 93106