Click to See Complete Forum and Search --> : calling other EXE's function from one EXE
DINI
April 7th, 1999, 06:11 AM
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
Myo Nyunt Aung
April 7th, 1999, 09:16 AM
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.
April 7th, 1999, 10:00 AM
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!)
April 14th, 1999, 09:53 AM
for example within the code if you write
system("c:\\windows\\file_name.exe");
that file_name.exe can be run
zafer
zbilen@hotmail.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.