[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

YANQ (Yet another newbie Question

Fireangel

10/14/2004 1:05:00 PM



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
1 Answer

Sam Santiago

10/14/2004 3:16:00 PM

0

Go to the QuickStart examples on GotDotNet:

http://samples.gotdotnet.com/quickstart/howto/doc/remoting/mainfea...

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

and

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

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

Good luck.

Thanks,

Sam

--
_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTe...
_______________________________
"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