Com Exe server
-
Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,
STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
{
// TODO: Add your implementation code hereLONG i=105; \*val=i; printf("\\n HI I am from Exe Server \\n"); Beep(800,800);
return S_OK;
}In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.
-
Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,
STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
{
// TODO: Add your implementation code hereLONG i=105; \*val=i; printf("\\n HI I am from Exe Server \\n"); Beep(800,800);
return S_OK;
}In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.
Exe server is an out proc server. So, your client cannot see what is printed by the server exe.
-
Exe server is an out proc server. So, your client cannot see what is printed by the server exe.
Thanks ,But I want to show this msg to server what should I do
-
Thanks ,But I want to show this msg to server what should I do
May be you can check if a log file would work for you.
-
Hello All, I am very new to com and reading it from Internet. I was making Exe server and client (both are exe). I able to do that also in Visual studio 2008. If I call class function of exe server from client i am able to do it also. NOW My Problem is ,
STDMETHODIMP CDcomClass::GetIntVal(LONG* val)
{
// TODO: Add your implementation code hereLONG i=105; \*val=i; printf("\\n HI I am from Exe Server \\n"); Beep(800,800);
return S_OK;
}In this code I get val in client ,Beep() also run,but printf("\n HI.... is not executed . Can You please explain me reason. Thank you.
If you want to print then change the signature of the function and out parameter as BSTR.
Величие не Бога может быть недооценена.