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