Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!emory!wa4mei!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.windows.ms.programmer Subject: DLLs, C++, and Constructors Message-ID: <1647@msa3b.UUCP> Date: 16 May 91 14:30:29 GMT Organization: Dun and Bradstreet Software, Inc., Atlanta, GA Lines: 17 I'm trying to create some C++ class libraries for use in my Windows programming (who isn't!) I'd like to put my class libraries in a DLL. This sounds nice, except that the constructor allocats the storage for the class. If the constructor is in the DLL, then the memory allocated comes from the DLL's near heap -- if I have lots of applications using my DLL, I could run out of near heap. What have I got wrong? Is it unreasonable to put C++ class libraries in a DLL? (I sure do hate having duplicate code loaded with multiple applications.) -- Kevin Kleinfelter @ DBS, Inc (404) 239-2347 ...gatech!nanoVX!msa3b!kevin English Lesson: THEY'RE at THEIR home, over THERE. YOU'RE sure of YOUR facts? "Its" & "their" are like 'his'. "They're" == "they are." "It's" == "it is." If you can do regular expressions, you can handle a natural language. Syntax!