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

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
 
N

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/
 
G

Guest

Hello,

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

Regards,
Werner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top