Originally posted by: George Hester
all went fine except the vbs.
ReplyOriginally posted by: C Johannsen
The example code doesn't work very reliably on Windows NT. I have got it to work using CLSCTX_REMOTE_SERVER and CLSCTX_SERVER on different occasions, but sometimes it won't work at all. Most recently the client won't work with CLSCTX_REMOTE_SERVER in CoCreateInstanceEx. Also, using an IP address was working. Now it does not. Very flakey stuff.
Also, other machines (all Win2000 Pro) have been unsuccessful at CoCreateInstanceEx. They were running the client.exe and proxy.dll built on the NT machine. They ran "regsvr32 proxy.dll" before trying. dcomcnfg was run on the server to give them access priveleges.
I do not mean any of this as an insult to the author. I thank him for going to the trouble of putting this example on the web. I blame the technology DCOM for being too fussy, not robust, and not providing good diagnostics when it fails. Maybe that is why Microsoft is moving to .NET technology.
Reply
Originally posted by: James
Hi,
I can run client.exe in my own computer. it works.
but when I try on different computers, there is problem.
(0) server is running in my own computer.
(1) "Ping server-machine-name" is fine. OK
(2) Run dcomcnfg.exe on server machine to add the user account that runs the client.exe.
Win2k doesn't have DCOMCnfg.exe, I copied from winNT, add the user account that runs the client.exe. ???
(3)Copy proxy.dll to the client machine and register it by regsvr32.exe. Done.
But when I try to run client.exe in another computer with Win2k, it always pops up: CoCreateInstanceEx failed!!!
Thanks for your big help.
Perhaps ther problem is Step (2) run DCOMCnfg.exe, I tried a lot of times, but I still doesn't work.
James
Originally posted by: kan
Run client.exe at local and remote machine.
I find 2 instances at my taskmanager of local machine.
Is it possible to avoid this situation? I just want single instance no matter where the client is running.
Originally posted by: Frank
CoCreateInstanceEx is sucessful,
and get pUnknown with a valu,
but when do QueryInterface, I got
pDouble with a 0 value.
Reply
Originally posted by: roc
Hi, I changed CLSCTX_REMOTE_SERVER to CLSCTX_LOCAL_SERVER to run this on my own machine. In fact, we can use CLSCTX_SERVER to make it usable either on our own machine or remote machine. It does work.
The server is running on Win2k Server, the client is Win98 or Win2k Server. I had registerd the Proxy.DLL. The problem is even I had add the user account and password with DCOMCFNG.EXE on server machine, it always tells me that CoCreateInstanceEx failed.
How can I make it usable?
Help me!
Originally posted by: Leandro Gustavo Biss Becker
Hi
I have question that many peoples may have:
If I have a class like
class CMyClass
{
int test;
CString str;
}
How to pass from a DCOM client to a DCOM server ?
Is just create the function with a parameter that is a CMyClass* like void CServer::test(CMyClass* pClass) ?
Originally posted by: Philip
Good day! i am now creating my own activex control for dialogic product using "mfc activex controlwizard" project. im concern with the simplicity but i dont know what best project im going to use. can it be possible to use other projects such as win32, atl com in creating my ocx?
so far, i have some difficulties in "Add Method" specifically in returning values... most specially in "VARIANT" data type, i want to use it for my project but it seems difficult to understand, can you give me a simple codes of yours that can help me doing so, please help me in developing my control!
i want to return a list of strings from my controls to my application in vb......... but i dont know how to use this "VARIANT" data types. hoping for your answer. thanks!
philip/philippines
Originally posted by: Yen
I tested all executables from download zip file on a single WinNT 4.0 machine, and I found client.exe closed the window after I put in the machine name. So I debugged the code and found the function CoCreateInstanceEx failed and return REGDB_E_CLASSNOTREG. I checked the registry and found all CLSID are properly registered. Is that any dll missing on my system or it doesn't work on a single machine?
If anyone has any idea, please help me.
Thanks,
Yen
Originally posted by: Alphagx
I can run the client.exe in the other computer ,but I can't run the .vbs, it is said can't create the object,
can any one tell why it is happen??