|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Detecting .NET assemblies from native appsI need to determine from a native VB6 application whether a .exe is a .NET
assembly or just a regular app. Is there an easy way to know that? My app launches a bunch of processes on startup. I need to launch those executables that are .NET assemblies in their own process by hosting the CLR. Regards -- What difference does it make to the dead, the orphans and the homeless, whether the mad destruction is wrought under the name of totalitarianism or the holy name of liberty or democracy? -M. Gandhi Hello Javier,
Yep, you need to analyze the PE header, where is CLR metadata locates, if any See my post there http://groups.google.com/group/microsoft.public.dotnet.general/browse_thread/thread/7fe87f4f3b81cd20/fe54e9dde2c3b661?&hl=en#fe54e9dde2c3b661 --- WBR, Michael Nemtsev [.NET/C# MVP]. My blog: http://spaces.live.com/laflour Team blog: http://devkids.blogspot.com/ "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo JE> I need to determine from a native VB6 application whether a .exe is JE> a .NET assembly or just a regular app. Is there an easy way to know JE> that? JE> JE> My app launches a bunch of processes on startup. I need to launch JE> those executables that are .NET assemblies in their own process by JE> hosting the CLR. JE> JE> Regards JE> JE> -M. Gandhi JE> |
|||||||||||||||||||||||