Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

.Net Remoting and System::Activate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fireangel - 12 Oct 2004 17:45 GMT
I'm tying to build a simple Remoting thingie (techincal term).  However, I
can't seam to get it to compile.

ChatBase is defined as a public class..

The line that kills compiling:
theChatStuff = (ChatBase *) ( Activator::GetObject ( __typeof ( ChatBase ) ,
"tcp://localhost:9999/Try1") );

Form1.cpp(41): error C2039: 'GetObjectA' : is not a member of
'System::Activator'
Form1.cpp(41): error C2660: 'GetObjectA' : function does not take 2 arguments

I'm not calling GetObjectA, I'm calling GetObject.  I have a C# example that
does exactly what the same call (with changes to C++.net).  Why does it come
up with me calling GetObjectA???  Nothing I've done seams to get rid of
this...

GE

PS>  Someone here mentioned it may have to do with some hidden functions
somewhere, and the A may deal with ASCII.  Not too sure what exactly he meant.
Tomas Restrepo \(MVP\) - 13 Oct 2004 02:43 GMT
Fireangel,

> I'm tying to build a simple Remoting thingie (techincal term).  However, I
> can't seam to get it to compile.
[quoted text clipped - 18 lines]
> PS>  Someone here mentioned it may have to do with some hidden functions
> somewhere, and the A may deal with ASCII.  Not too sure what exactly he meant.

You're running into this:
http://www.winterdom.com/mcppfaq/archives/000128.html

Signature

Tomas Restrepo
tomasr@mvps.org

Fireangel - 13 Oct 2004 12:45 GMT
I undefined GetObject, but now I have a WHOLE crap load of errors in placed
I have no control over.  So I really can't undefine GetObject :(

I'm going too look for a way to not have to put #include <windows.h> in the
header, since that would seam to solve more problems...

GE

"Tomas Restrepo (MVP)" wrote:

> Fireangel,
>
[quoted text clipped - 28 lines]
> You're running into this:
> http://www.winterdom.com/mcppfaq/archives/000128.html
Fireangel - 13 Oct 2004 12:53 GMT
Or not.  I commented some stuff out and compiled.  Got errors.  Put the
program back to the way it was (With the undef), and now it works!!  

I hate it when that happens..

thanks for your help!!

"Tomas Restrepo (MVP)" wrote:

> Fireangel,
>
[quoted text clipped - 28 lines]
> You're running into this:
> http://www.winterdom.com/mcppfaq/archives/000128.html

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.