1. my dll troubles

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?&nbsp; =
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?&nbsp; =
wouldn't that=20
clog the system if many apps used the same dll i make?&nbsp; the way i =
want to=20
do it should work, i just don't know all the particulars.&nbsp; please =
email me=20
the demo via private email.&nbsp; thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>

------=_NextPart_000_0009_01C0EFA5.F81A7660--

new topic     » topic index » view message » categorize

2. Re: my dll troubles

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: my dll troubles

when i say class i mean something that would be passed to RegisterWindowEx()
or RegisterWindow.

Mike Hurley

new topic     » goto parent     » topic index » view message » categorize

4. Re: my dll troubles

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>&nbsp;</DIV>

------=_NextPart_000_001B_01C0F0ED.06BC6820--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu