CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: Surrogate

  1. #1
    Join Date
    Apr 1999
    Posts
    43

    Surrogate

    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


  2. #2
    Join Date
    May 1999
    Posts
    69

    Re: Surrogate

    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.



  3. #3
    Join Date
    Apr 1999
    Posts
    43

    Re: Surrogate

    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


  4. #4
    Join Date
    May 1999
    Posts
    69

    Re: Surrogate

    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.


  5. #5
    Join Date
    Apr 1999
    Posts
    43

    Re: Surrogate

    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


  6. #6
    Join Date
    Apr 1999
    Posts
    31

    Re: Surrogate

    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.


  7. #7
    Join Date
    Apr 1999
    Posts
    43

    Re: Surrogate

    Thanks a lot!!!

    Mike


  8. #8
    Join Date
    Apr 1999
    Posts
    15

    Re: Surrogate

    Hi
    when you get the code, could you please send me a copy as well?
    TIA
    Julius Ivanyi e-mail [email protected]


  9. #9
    Join Date
    Apr 1999
    Posts
    43

    Re: Surrogate

    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!!!!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured