Re: Exporting functions from my application
"Simon" <spambucket@example.com> wrote in message
news:67lfdtF2p7l6uU1@mid.individual.net...
Hi,
I know how to export functions from a DLL
And I know how to use WM_COPYDATA to do a very simple IPC.
But is it possible to export functions directly from the exe?
What I am aiming to do is.
1- Start my main application
2- The main application would then start another exe
3- The 'other' exe would contact the main application to get needed
information via some exposed API/Functions.
Would the above be possible?
Simon
Yes, you can export functions from a .exe just like you would for a .dll.
But as others have said, it's probably not going to do much good since you
can't call the exported functions of the .exe from another .exe (since the
..exe's are running in separate process spaces). Your idea of using
WM_COPYDATA to somehow do some simple IPC between the two .exe's will work;
however it's not clear how calling the other .exe's exported functions fit
in with that.
-- David