473,799 Members | 3,185 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 1292
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
5142
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
1381
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
1124
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
1756
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
1376
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
8186
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
5544
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
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
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
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
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
10214
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
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5459
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
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.