Re: Two .exe which write in Visual C++ 6.0, can they call each other functions..??
<looi_sookchan@yahoo.com> wrote in message
news:1187245755.393410.284430@q4g2000prc.googlegroups.com...
Hi, I am new here..
I face problem when i try communicate two .exe together..
these two .exe i name it by App A and App B..
i try to call App A's function from App B's function..
i had create a App B's pointer at App A..name by BPointerAtA..
and i try to new this pointer ( BPointerAtA = new CAppB;)..
when i compile..i have a compile error, which is..
--------------------Configuration: A - Win32 Debug--------------------
Linking...
ADoc.obj : error LNK2001: unresolved external symbol "class CBApp
BPointerAtA" (?BPointerAtA@@3VCBApp@@A)
A.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
A.exe - 2 error(s), 0 warning(s)
it this two .exe, do no include any .lib files for me to do linking
setting..
when i try to enter B.obj file in the setting (Project->Settings-
Link),
when compile, more than 1 linking error occur..
is it anything that i miss up..??
pls help..
thank you..
A running .exe runs in its own environment, including memory. First off,
you don't have access to a running executables functions outside of the
executable. If you do need access to some shared functions, that is what
libraries are for. Now, it is possible to get App A to execute a function
and give the result to App B somehow. A common method is via sockets. Also
file IO, shared memory, etc.. have been used.
Now, it depends on what you are actually trying to accomplish to determine
what it is you need to do. So, what are you trying to accomplish by having
one app call a function in another app?