Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I can export functions from an exe. I want to these functions from another exe

I have exported functions like we are exporting in DLL

After calling from another exe it is giving access violation error.
Posted

Place the functions that you want to share in an extra DLL and import that DLL from both of your application exe files. That is the usual way of sharing functions.

If you just want to share a couple of small functions, the use of a static library (object library) might be an alternative that is easier to maintain.
 
Share this answer
 
If you are using COM then it is possible. Other way is hooking. See if this[^] helps.
 
Share this answer
 
You need some form of IPC to call a function of another executable (while DLLs are mapped into the calling process address space).
You may implement a COM out-of-process component, for the purpose.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900