V. Lorenzo
February 25th, 2002, 01:09 PM
Hi
I created a new project in VStudio 7.0 C++ (final release), using the MFC as a shared library, that is "supposed" to serve for a remote object server registration. I have selected the compiler option /clr for creating a managed c++ application.
All compiled (and worked fine) at the very beginning, but after inserting the following piece of code the compiler started to give me an error code C3828 "error C3828: 'System::Runtime::Remoting::Channels::Tcp::TcpChannel': placement arguments not allowed while creating instances of managed classes".
COde inserted:
TcpChannel *objTcpChannel = new TcpChannel( 8085 );
Why ?? What am I missing ?? All the namespaces and dll's are correctly referenced.
Thanks in advance. Victor Lorenzo.
I created a new project in VStudio 7.0 C++ (final release), using the MFC as a shared library, that is "supposed" to serve for a remote object server registration. I have selected the compiler option /clr for creating a managed c++ application.
All compiled (and worked fine) at the very beginning, but after inserting the following piece of code the compiler started to give me an error code C3828 "error C3828: 'System::Runtime::Remoting::Channels::Tcp::TcpChannel': placement arguments not allowed while creating instances of managed classes".
COde inserted:
TcpChannel *objTcpChannel = new TcpChannel( 8085 );
Why ?? What am I missing ?? All the namespaces and dll's are correctly referenced.
Thanks in advance. Victor Lorenzo.