You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Dean Roddey <dr...@portal.com> on 2001/02/15 19:34:31 UTC

RE: Message not coming when i rename the Xerces_1_1.dll to VSXerc esLib

Another option would be to make the base name part a #define and allow it to
be defined from the build command line, and defaulted if not. That would be
the least disruptive, and would keep that easily available name/version info
for client apps and the parser itself to use.

But I'm not hung up on it either way. If we get rid of that stuff though,
we'd have to push the versioning and naming down into each platform, and
they would want to have methods on platform utils that returns the library
name and version info, so that client apps could check that stuff I guess.

But basically, the reasoning behind the scheme used was to avoid as much
platform specificness as possible, and to support those platforms who don't
have some automagical way for linked modules to automagically find
themselves and such. But, all of that could be moved into the platform
specific code as well. OTOH, the thing you consider a bug, in some ways is a
feature since it enforces some standard that can be relied on.

--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
droddey@portal.com



-----Original Message-----
From: Reyes Ponce [mailto:Reyes@naxs.com]
Sent: Thursday, February 15, 2001 9:32 AM
To: xerces-c-dev@xml.apache.org
Subject: Re: Message not coming when i rename the Xerces_1_1.dll to
VSXercesLib


> Xerces on Windows uses message resources compiled in the DLL. If you
change
> the name of the DLL, it can't find the resources. Change the const
> Xerces_DLLName to your new name. This is defined in VCPPDefs.hpp in
> util/Compilers.
>

Is there any advantage to hard coding the DLL name and using
GetModuleHandleA() versus implementing DllMain() and getting the module
handle passed to the code by Windows? Hard coding the DLL name seems a less
desirable solution (less flexible and more maintenance heavy) IMHO.

I'm renaming them as well because I want both the ICU and non-ICU versions
to be in the same directory.




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org