1. my dll troubles
- Posted by Mike Hurley <mikehurley.1 at worldnet.att.net> Jun 07, 2001
- 374 views
This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C0EFA5.F81A7660 charset="iso-8859-1" could someone possibly write a simple demo that will declare a class in = the dll and use it in another application? would i be better off just = doing some kind of mylib_init() and have the user pass the instance to = that and do it with the application's instance? wouldn't that clog the = system if many apps used the same dll i make? the way i want to do it = should work, i just don't know all the particulars. please email me the = demo via private email. thanks. my email address if you can't see it: mike_hurley_2 at yahoo.com (or = mikehurley.1 at worldnet.att.net, whichever) Mike Hurley ------=_NextPart_000_0009_01C0EFA5.F81A7660 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>could someone possibly write a simple = demo that=20 will declare a class in the dll and use it in another application? = would i=20 be better off just doing some kind of mylib_init() and have the user = pass the=20 instance to that and do it with the application's instance? = wouldn't that=20 clog the system if many apps used the same dll i make? the way i = want to=20 do it should work, i just don't know all the particulars. please = email me=20 the demo via private email. thanks.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>my email address if you can't see it: = <A=20 href=3D"mailto:mike_hurley_2 at yahoo.com">mike_hurley_2 at yahoo.com</A> (or = <A=20 href=3D"mailto:mikehurley.1 at worldnet.att.net">mikehurley.1 at worldnet.att.n= et</A>,=20 whichever)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> ------=_NextPart_000_0009_01C0EFA5.F81A7660--
2. Re: my dll troubles
- Posted by Mike Hurley <mikehurley.1 at worldnet.att.net> Jun 08, 2001
- 377 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
3. Re: my dll troubles
- Posted by Mike Hurley <mikehurley.1 at worldnet.att.net> Jun 09, 2001
- 380 views
when i say class i mean something that would be passed to RegisterWindowEx() or RegisterWindow. Mike Hurley
4. Re: my dll troubles
- Posted by Mike Hurley <mikehurley.1 at worldnet.att.net> Jun 09, 2001
- 364 views
This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C0F0ED.06BC6820 charset="iso-8859-1" also... i'm doing this in MinGW32 C, not C++ Mike Hurley ------=_NextPart_000_001B_01C0F0ED.06BC6820 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>also...</FONT></DIV> <DIV><FONT face=3DArial size=3D2>i'm doing this in MinGW32 C, not = C++</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> ------=_NextPart_000_001B_01C0F0ED.06BC6820--