Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 1997 19:58:18 -0800
From:      "Daniel Keller" <dkeller@psln.com>
To:        "FreeBSD Questions Mailing List" <freebsd-questions@FreeBSD.ORG>, "Chris Becke" <chris@dbn.lia.net>
Subject:   Re: Namespace Extension Never Calls DllGetClassObject
Message-ID:  <199702040317.TAA16900@psln1.psln.com>

next in thread | raw e-mail | index | archive | help
Hi,
Sorry to bother you, but you are the only person I know who knows much
about namespace extensions and it can takes a long time to get an answer
off newsgroups. I never did find anything similar to dumpbin with Watcom,
but I have now switched to MSVC anyway, dumpbin did show that only DllMain
was being exported. Anyway my problem is:

I am trying to make a namespace extension, so far it is basically the same
as the Cabview sample from Microsoft with much stuff removed. My first
problem was that when CreateViewWindow was called all would go well until I
tried to create the Dialog, CreateDialog) would just return a HWND of 0 and
I would get a message from explorer that there was not enough storage to
continue. Because I had not yet implemented EnumIDs I decided to do that.
Now whenever I run the app it just loops through GetDisplayNameOf and
Compare IDs. I have included a file with there functions in the with this
message. I would greatly Appreciate any help!
Thanks,
Daniel Keller
------------------------------
dkeller@psln.com
------------------------------


----------
> From: Chris Becke <chris@dbn.lia.net>
> To: dkeller
> Subject: Re: Namespace Extension Never Calls DllGetClassObject
> Date: Friday, January 10, 1997 1:34 AM
> 
> Daniel Keller <dkeller@psln.com> wrote in article
> <01bbfe9f$282e51c0$723d9bce@dkeller>...
> > {Watcom C/C++ v10.6}
> > Hi,
> > I am writing (or trying anyway) to write a Namespace Extension. I have
> > inserted DebugBreak and OutputDebugMessage in the all the functions.
When
> I
> > start the extension by saying:
> > explorer /e,/root,d:\test.{e5c163a0-5fff-11d0-aba8-444553540000}
> > DllEntryPoint (I have also tried renaming it DllMain, It makes no
> > difference) with DLL_PROCESS_ATTACH
> > then it immediately gets a DLL_PROCESS_DETACH. DllGetClassObject never
> gets
> > called (at least it never stops on the break point) .
> > I have tried starting it with different command lines, sometimes the
> > debugger immediately says TASK COMPLETED, then explorer starts to
create
> a
> > window, but I get a GPF fault.
> > 
> > If anybody has any help or advice I would appreciate it,
> > Please email me at dkeller@psln.com
> > Thanks!
> > Daniel Keller
> 
> Do a dumpbin /exports of your Dll to check that the names are being
> exported properly (DllGetClassObject, DllCanUnloadNow) without extra
> decoration.
> 
> hmmm, you are using watcom, but i'm sure that comes with a similar tool
to
> dumpbin...
> 
> Chris.
> -- 
> chris@dbn.lia.net
> <http://www.dbn.lia.net/users/chris>;
> 
> > -- 
> > ------------------------------
> > dkeller@psln.com
> > ------------------------------
> > 
> > 
> > 
> > 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702040317.TAA16900>