Re: YANQ (Yet another newbie Question)

From: Sam Santiago (ssantiago_at_n0spam-SoftiTechture.com)
Date: 10/14/04


Date: Thu, 14 Oct 2004 08:15:44 -0700

Go to the QuickStart examples on GotDotNet:

http://samples.gotdotnet.com/quickstart/howto/doc/remoting/mainfeatures.aspx

Scroll to the bottom of most examples and click on the C++ link in the
Latebreaking Samples area.

Also check out:

HOW TO: Create client access to a remote server by using Visual C++ .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;818781

and

HOW TO: Create a remote server by using Visual C++ .NET
http://support.microsoft.com/kb/818780

and here's an example that uses events, though not in C++, but it might
help:

Remoting Chat Example
http://support.microsoft.com/default.aspx?scid=kb;en-us;312114

Good luck.

Thanks,

Sam

-- 
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________
"Fireangel" <Fireangel@discussions.microsoft.com> wrote in message
news:FF0FAA90-F96B-4620-B118-A0D5DC9D7BA2@microsoft.com...
>
>
> First off.  Is there ANY C++.net examples out there??  In my google
> experiance, I've hit alot of C# and some VB.net, but I'm doing C++.net.
I've
> tried to convert, but something always ends up broke and I don't know how
to
> fix it (Yet).
>
> This is from a conversion of a simple chat example from C#.  I've got a
DLL
> project with just the chat base in it (Namespace ServerBase, __gc class
> ChatBase : Public System::MarshalByRefObject).  I've got a Client project
> with just a form in it (Namespace RemoteClient, __gc class Form1).  I've
also
> got a Server project with nothing but an int APIENTRY_tWinMain (ect).
>
> I can start up an object, and then connect to it remotely.  But the
problem
> i'm having is that the client can't find assembly RemoteClient (Which is
the
> namespace and project name that its currently running inside).  This
occures
> when the client tries add an event to a public delegate on the server.
> I've look a few pages back in here, and somebody mentioned that the DLL
> Project needs to have the Client class in it (An interface would work).
Is
> this the case??  I ask because even the C# example don't do this (atleast
> none that I've found).  If I take out the Delegate stuff, it works (but
not
> the way I want, hence the delegates).
>
> I'm not using config files for this (probably my first mistake, but I'd
> rather do everything programatticaly).
>
> I've declare both sides to have a TypeFildterLevel::Full (Solved older
bug).
>
> If you want some specific code, i'm sure I can put some up here.  It may
> help, it may not.
>
> Thanks you for any help
>
> GE


Relevant Pages

  • Re: Delegates, Client-side Events and Remoting
    ... server without requring server to know about the concrete class of client ... Asynchronous delegate are best in that scenario; ... For client to server communication, however -- it is just a forward method ... To abstract in a "layer of delegation between the proxy class instance on ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: delegate question
    ... information of the method that the delegate is attached to. ... the server, and never get to you (a copy of your client will be sent to the ... event is remoted back to the client, ... the> client-runtime throws serialization exceptions of classes that are not> relevant for my client. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: "Insufficient state to deserialize the object" error
    ... code snippet I sent is called "Inexus.dll" (namespace INexusStuff). ... on the Client side. ... Back on the Server side there is another module with the ... The code containing the Server side delegate, ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Im confused on how to deploy remoting efficiently...
    ... When you subscribe to a server event, you are essentially making the client ... When you subscribe to an event, you are passing a delegate from the client ... IYListener and put the definition of this interface in your common assembly. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: socket questions
    ... each request is sent and a response is ... its own connection to the remote server, ... the transactions are all making it to the server, but my client, again, is ...
    (microsoft.public.dotnet.languages.csharp)