Home All Groups Group Topic Archive Search About

how do C#.NET load VC++Project exe

Author
30 Sep 2005 1:12 PM
Tarandeep Singh
I am able to load exe of .Net Framework by LoadFrom() function through
C#.NET
but when load VC++7.2 Project EXE ,it gives error
  format does'nt match
Author
1 Oct 2005 12:13 AM
Nick Hertl
Tarandeep,

System.Assembly.LoadFrom is a managed API that is intended to load .NET
assemblies.
If you attempt to use this API to load a VC++7.2 exe, since it is not a
..NET assembly, you will get some kind of format exception.

For a good reference on .NET loader semantics, take a look at this
blog: http://blogs.msdn.com/suzcook/
Are all your drivers up to date? click for free checkup

Author
28 Oct 2005 6:36 PM
Werner Schaudin
Hello,

  "LoadFrom" does NOT work for  .Net assemblies created with managed C++.

Regards,
Werner


"Nick Hertl" schrieb:

Show quoteHide quote
> Tarandeep,
>
> System.Assembly.LoadFrom is a managed API that is intended to load .NET
> assemblies.
> If you attempt to use this API to load a VC++7.2 exe, since it is not a
> ..NET assembly, you will get some kind of format exception.
>
> For a good reference on .NET loader semantics, take a look at this
> blog: http://blogs.msdn.com/suzcook/
>
>

Bookmark and Share