"Bruno van Dooren" <br**********************@hotmail.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>Hi,
I have a VC++6.0 .exe file. I want to call a method of that .exe from
.Net Application.
Please give the help..
You have to give more information.
Is it an ActiveX container? If so you have to register it and add a
reference to your .NET project.
If it is a command line app you can launch it and supply arguments. For
example 'system' 'shellexec' or 'createprocessex'
If it is neither of the above, it is not possible to execute code from
that executable.
Not precisely true... you can load your dll into the process memory space,
then start code running in a thread. That thread could then freely call any
function in the .exe -- as long as it can find them, which is a diffuclt
problem in its own right (having a debug database for the exe would make
this part feasible). But this is evidently far beyond the capabilities of
the OP, judging by the incorrect terminology in his question.
>
--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
br**********************@hotmail.com