473,807 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.Net Remoting and System::Activat e


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::GetO bject ( __typeof ( ChatBase ) ,
"tcp://localhost:9999/Try1") );
Form1.cpp(41): error C2039: 'GetObjectA' : is not a member of
'System::Activa tor'
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.
Nov 17 '05 #1
3 1293
Fireangel,
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::GetO bject ( __typeof ( ChatBase ) , "tcp://localhost:9999/Try1") );
Form1.cpp(41): error C2039: 'GetObjectA' : is not a member of
'System::Activa tor'
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.

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

--
Tomas Restrepo
to****@mvps.org
Nov 17 '05 #2

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,
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::GetO bject ( __typeof ( ChatBase )

,
"tcp://localhost:9999/Try1") );
Form1.cpp(41): error C2039: 'GetObjectA' : is not a member of
'System::Activa tor'
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.

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

--
Tomas Restrepo
to****@mvps.org

Nov 17 '05 #3

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,
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::GetO bject ( __typeof ( ChatBase )

,
"tcp://localhost:9999/Try1") );
Form1.cpp(41): error C2039: 'GetObjectA' : is not a member of
'System::Activa tor'
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.

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

--
Tomas Restrepo
to****@mvps.org

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
674
by: xixi | last post by:
hi, i found that in alter table command , you can do activate not logged initially to help not log any changes made to the table to log file, cause i have to delete almost 1 million records and my logfilsiz is 6120 pages, with 15 log primary and 20 log seconday, but still run with log file full error. but i also read that any error in the unit of work in which the not logged initially attribute is activate will result in the rollback, and...
3
5144
by: Jason Kyle Baginski | last post by:
Here's a little test app to demonstrate a problem I'm having. It creates four buttons, each one with the different FlatStyle types available. Three of them behave exactly the same way(and the way I'd anticipate), but the FlatStyle.System one does not. If you click on any of the buttons, use the enter key, or the spacebar, they will bring up a messagebox that says "Activate". Except the FlatStyle.System one, which will bring up _two_...
0
1383
by: Ole Hanson | last post by:
Hi What's the best way of activating a sleeping process on my local machine? I have an application (.exe) minimized to a notifyicon in the tasktray. Now - if the user clicks the exe-file again in the filesystem, this will launch another instance of my exe. This is not desired - I want to activate/open the already running application "behind" the notifyicon. What options do I have for activating this sleeping exe? Note: I do NOT want...
0
1126
by: David Krmpotic | last post by:
Hello! I have a simple client/server plugin based architecture. I place all the plugins in \plugins sub-directory on both, server and the client. Each DLL has implemented two interfaces.. on for client side and other for server side. On the server I dinamically load all the assemblies from that sub-directory and register the objects that implement IBuddyPluginServerSide as SAOs. On the client I do the same for those that implement...
2
1757
by: | last post by:
Hi, I am working on a n-tier app using remoting. I am using the VS 2005 beta 2. My server needs to access a remote resources on behalf on the connected user. I have configured my server like : <channel ref="tcp" secure="true" port="8081" impersonate="true"> and my client: <channel ref="tcp" port="0" secure="true"
4
1377
by: Sasidhar | last post by:
Hi All Am trying to develope a vb.net application for window My problem is that I need to develope a windows servic which will activate a Dll upon request from client and updat a database The reason i need it call the windows service is that only the user with permisssions to run the service sholud make the call to dl How does Remoting fit into this
1
8188
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
3
5545
by: geskerrett | last post by:
We have been asked to develop and application for a client that is a 'notification" system. We would like to use python, but are struggling to find the right starting point. Any suggestions, tips or sample code would be appreciated. Application outline; Machine A is running a "listener" application that is connected to a another device via the serial post and waits for events. We have not problem working with the serial port, or...
1
1014
by: softkarthi | last post by:
Hi, I am new to remoting, i have some problem in that. The problem is i couldnt activate client exe over lan and its spitting some error(unhandled excpetion) while invoking that application. The activity of the client is to get some data (as dataset) from the database. But it work smoothly when there is not database connectivity. But its working perfectly in the developed machine, which means both client and server are in the same machine....
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.