Re: Reading a file from DLL.

From: S. Han (_at_)
Date: 06/03/04


Date: Thu, 3 Jun 2004 10:27:16 -0700

Is it possible for exe to pass the full path to the file to DLL?

Or perhaps the file can always stay in the same directory as the exe, and
have the DLL figure out the "working directory" of exe.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ramesh" <ramesh.babu@hp.com> wrote in message 
news:177fa01c448ef$0a62d790$a101280a@phx.gbl...
> Hello everybody,
>
> I have exe (a.exe) file that runs on COM+ environement the
> executable loads a dll(b.dll) which has a reference to a
> XML file which the dll uses to parse.
>
> The problem is that I am unable to provide in a proper
> location where the dll could read in the XML file. As the
> exe file could be executed from any process.
>
> Could anyone let me know a way to place the xml file from
> where the dll could parse it no matter from where the exe
> file is executed.
>
> Thanks and Regards
> Ramesh 


Relevant Pages

  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • Re: DLL pass vector by value crash
    ... The prototype for testfunc is a by-value copy, so it has to make a copy of the value. ... Are you using static linking for either the .exe (if so, it probably won't work correctly, ... clearly using the shared CRT DLL for the DLL you are constructing. ... no crash occurs in either config. ...
    (microsoft.public.vc.mfc)
  • Re: DLL pass vector by value crash
    ... stack of the exe and may allocate default member element on the exe heap. ... If this is a dangerous situation, the simple app I set up calling testFunc() ... in a dll did not crash. ... msvcr90.dll!free and access the source code of free.c. ...
    (microsoft.public.vc.mfc)
  • Re: Releasing my VB.NET app over the intranet
    ... of the primary EXE and when compiled I am copying the contents ... the directory and open a browser on the web server and type ... > another dll, we need to put the dll in the same directory, so that the clr ... > The executable will be downloaded to the assembly download cache on the ...
    (microsoft.public.dotnet.framework)
  • Re: My.Settings Questions
    ... I finally figured it out after playing with ConfigurationManager and RoamingUserANdLocal stuff to get the application user.config. ... Duplicated it but the ended just the one in the DLL since it is self contained and used properties to all the EXE to setup if it needs too. ... Should the EXE has the My.Settings and prepare the login form before doing a ShowDialog or can I do this in the Loginform class Load event by passing My.Settings to the constructor? ...
    (microsoft.public.dotnet.languages.vb)