Hi,
In my program i am trying to call a function that has been defined in another EXE. Is this possible? If yes, could you please explain the procedure.
Can anybody please help me out.
Thank you
Dini
Printable View
Hi,
In my program i am trying to call a function that has been defined in another EXE. Is this possible? If yes, could you please explain the procedure.
Can anybody please help me out.
Thank you
Dini
If other exe has automation support e.g. winword.exe, excel.exe you can use #import directive to use functions in that exe.
Please see more information on Automation docs.
In addition to the automation approach described above, you can also simply export functions, classes, etc from an .exe using dllexport!! When you recompile the the project you will get an exp file and a lib file. You can then link with that lib file and use the exported function (strange but useful!)
for example within the code if you write
system("c:\\windows\\file_name.exe");
that file_name.exe can be run
zafer
[email protected]