Click to See Complete Forum and Search --> : Surrogate


Mike Wild
April 9th, 1999, 08:07 AM
Is there a REAL sample for surrogates which is runable so I can play a little with this feature. The few samples I've found are all incomplete.

Thanks Mike

Rob Wainwright
April 10th, 1999, 03:06 PM
I've used a sample from Inside DCOM which I think gives you exactly the same as the default dllhost.exe surrogate, but within your own address space. Have you tried this sample ?

We placed a channel hook (which won't be supported in COM+) and played a bit with message filtering inside the sample.

Mike Wild
April 12th, 1999, 08:30 AM
Is there a possibility the get this sample, because we haven't got this book. Does this book also provide some other samples of advanced COM features?

Mike

Rob Wainwright
April 15th, 1999, 03:47 PM
Sorry about the delay in getting back, I needed to get the book in from work.

I've zipped up the sample and it is only 12K. However, I don't know how we're supposed to get samples across etc.

As for the book itself, it is well worth the money. When I first delved into all this, the only real help was MSJ. Since then, this book has come out and it covers all the usual stuff + a very good explanation of threading models, monikers, DCOM and what happens inside the actual TCP/IP packets that are sent.

If you can advise me how to get this sample across, I'll do it the next time I check the board.

Mike Wild
April 27th, 1999, 01:16 AM
Sorry about my delay, but I was in Holiday. The best way to send me the sample is to use the mailadress, which you see if you doubleclick my name.

Thanks a lot

Mike

MoMoPi
April 28th, 1999, 08:50 AM
If you get that sample code, Can you kindly send an aonther copy to me. My e-mail just like yours.
(double click my name). Thank you in advance.

Mike Wild
April 29th, 1999, 05:24 AM
Thanks a lot!!!

Mike

Julius Ivanyi
April 29th, 1999, 11:04 AM
Hi
when you get the code, could you please send me a copy as well?
TIA
Julius Ivanyi e-mail ivanyiag@rocketmail.com

Mike Wild
June 7th, 1999, 02:00 AM
I'm examing the whole surrogate stuff and have now a few good samples to play with( one from the Inside DCOM Book ). Now I have the problem that everything is working quite well localy on one machine, but when I try to go remote, I run into all kinds of problems.

My client is running under Win 95 and the server under NT 4.0. After a few tries with the launch, access... permissions I was successful to start the server, but the QueryInterface always fails with ACCESS_DENIED.

Any Ideas or hints

Mike

PS I bought the Inside DCOM Book -> really good!!!!