[Mono-list] replacement for mscoree.dll

Jeroen Frijters jeroen@sumatra.nl
Tue, 31 Dec 2002 09:30:12 +0100


The search order is:
1) The directory from which the application loaded.
2) The current directory. 
3) The system directory. Use the GetSystemDirectory function to get the path
of this directory. 
4) The 16-bit system directory. There is no function that obtains the path
of this directory, but it is searched. The name of this directory is System.
5) The Windows directory. Use the GetWindowsDirectory function to get the
path of this directory.
6) The directories that are listed in the PATH environment variable.

BTW, the DotGNU people are also looking into adding mscoree.dll support, so
it might be helpful to cooperate with them on this.

Regards,
Jeroen

> -----Original Message-----
> From: mono-list-admin@ximian.com 
> [mailto:mono-list-admin@ximian.com] On Behalf Of Jeroen Janssen
> Sent: Monday, December 30, 2002 18:34
> To: Guenther Roith
> Cc: mono-list
> Subject: Re: [Mono-list] replacement for mscoree.dll
> 
> 
> Guenther Roith wrote:
> 
> >>Now the next step(s) could be
> >>* directly call the mono jit/interpreter api in order to execute the
> >>.NET code (can this be done?)
> >>* correctly find out the application path (path to .exe) + 
> parameters
> >>passed on the commandline
> >>
> >>p.s. I can send the example code if anyone wants (5kb zipfile, VS7
> >>    
> >>
> >project)
> >
> >This is really cool.
> >
> >Now they question is only: If the mono mscorlib.dll is 
> distributed in the
> >same directory, will MS Windows *always* use this, instead 
> of the original
> >mscorlib.dll in the windows directory??
> >  
> >
> As far as I know, Windows will always search the current 
> directory for a 
> certain dll and if nothing can be found, it starts looking in 
> the PATH 
> (someone correct me if I'm wrong).
> ---
> Jeroen
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>