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

  • Thread starter Thread starter Tarandeep Singh
  • Start date Start date
T

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
 
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/
 
Hello,

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

Regards,
Werner
 
Back
Top