CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    5

    calling other EXE's function from one EXE

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    3

    Re: calling other EXE's function from one EXE

    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.


  3. #3
    Guest

    Re: calling other EXE's function from one EXE

    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!)


  4. #4
    Guest

    Re: calling other EXE's function from one EXE

    for example within the code if you write
    system("c:\\windows\\file_name.exe");
    that file_name.exe can be run

    zafer

    [email protected]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured