How can I introduce MFC classes in this project ? Is it possible ? Can you tell me how ?
ReplyDoes anyone knows it? Or do i not really need the proxy.dll ... but how else can i connect from a remote machine to the server. Ciao Ephraim
ReplyOriginally posted by: WenZhong He
I want to use the client and server application in different machines. I don't know how I use this program by Com+, if so, do I need register the proxy.dll in the client machine? and how do I set in the Component Service?
By the way, if I make a server application(DLL)myself by ATL
and check the Check box for Allow Merging of Proxy/Stub on the application setting page of ATL, do I need a single proxy.dll in the client machine?
I use Windows 2000 in the client and server computer.
Help me!
Thank you in advance.
Originally posted by: seb.t
I have some problem with DCOM connection. When, the server PC is OFF for example, my thread is blocked when it try to connect during several minutes.... what could i do?
ReplyOriginally posted by: joseph
In client.exe
Hi,
I Add another method to server.exe.
The interface like below.
[id(2), helpstring("method Hello")] HRESULT SayHello(BSTR buf, [out, retval] int* retval);
How to Transfer char* to BSTR in order to call the method, SayHello(BSTR buf, int* retval);
Originally posted by: bingle
author said:"
11. If you want to run the client on a different machine, check the following:
"Ping server-machine-name" is fine.
Run dcomcnfg.exe on server machine to add the user account that runs the client.exe.
Copy proxy.dll to the client machine and register it by regsvr32.exe.
"
following the step, someone said:"When run client on different machine with server, client says 'CoCreateInstanceEx failed.' why?", me too at 1st.
the reason is we should not just "add the user account that runs the client.exe" using dcomcnfg.exe on the Server, we should check the following too:
If you logged in using a domain account and both machine Client and machine Server belong to that domain, then you can be authenticated on both machines. However, if you logged onto machine Client using a local account, then machine Server must have an identical local account (same user name and password), otherwise the activation request will fail.
see here: http://www.codeguru.com/activex/COMSecurity1.html
ReplyOriginally posted by: peios
i think that this program is good .
so i will use this my project works.
one computer is window2000 (client),other is window2000
(server)
but. i am worry about the bug ,i don't know anythings
Can you tell me a bug....???
Originally posted by: BulletProof
Hi all I am BulletProof. I wanted to know how can I make Server.exe in programming? Can you visually program one as in sample same with Client.exe? it would be helpful.
ReplyOriginally posted by: dungo
It works fine! Even the .vbs.
ReplyOriginally posted by: Pathi
Hi
I changed CLSCTX_REMOTE_SERVER to CLSCTX_SERVER but getting the error as
"Queryinterface failed". I am using Win NT4.0.
Why tis prblem is coming?What settings are needed to run this remotely?
Please help me/
Thank you
Pathi
Reply