Re: my dll troubles
- Posted by Mike Hurley <mikehurley.1 at worldnet.att.net> Jun 08, 2001
- 376 views
thanks bernie...that helps a bit...but... isn't there a way to do it as a global class? if not, and i do it the way i see there, won't memory get clogged from all the classes being defined (say 50 programs use my lib so #classes = 50*#classes per)...my lib is defining some custom controls of my own that use routines in my dll as their WndProc. >From what i saw in the example you showed me, you make the class by passing the application's instance handle. I would like to possibly define my global classes in DllMain() if possible (what event would i do that under, anyways? i've been doing it with a static boolean variable like this: ... DllMain(...){ static BOOL load=TRUE; if(load==TRUE) { load=FALSE; /* class defining stuff and registration here */ return TRUE; } }) Thanks Mike Hurley