473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Remoting : data exchange problem

Hello
I have a Windows forms application AppNET, that has a remotable object

A VC++ application APVC is invoking a remote method on the .net remotable
object in APPNET

Ex Remote method SetInfo(string strName)
This name has to be displayed in a form that is displayed

Problem is, I am not able to get access displayed form dialog from the
remote method

Any clues how to solve this

Here, I used a static vairable Form and tried to access this variable in
remote method set Info, But it didint work,

Please help
Regards
S B

Nov 16 '05 #1
1 1073
S B,

What you are trying to do is a bad, bad idea for two reasons.

First, a Form derives ultimately from MarshalByRefObject, which means
that the remoting server will have to remote back into your app in order to
set the property or call the method.

Second, if you manage to make the call, the call will most likely come
in on a thread that is not the UI thread, and you will have to marshal the
call to a UI thread.

Now, the reason you aren't able to call back to the caller is because
the server most likely doesn't have type information about the caller. In
most cases you don't want this anyways.

In order to get around this, you should have the remoted method return
some information that the client can use. This way, the server doesn't need
specific information about the client.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


"vijay" <bs**@india.hp.com> wrote in message
news:p5**************@news.cpqcorp.net...
Hello
I have a Windows forms application AppNET, that has a remotable object

A VC++ application APVC is invoking a remote method on the .net remotable
object in APPNET

Ex Remote method SetInfo(string strName)
This name has to be displayed in a form that is displayed

Problem is, I am not able to get access displayed form dialog from the
remote method

Any clues how to solve this

Here, I used a static vairable Form and tried to access this variable in
remote method set Info, But it didint work,

Please help
Regards
S B


Nov 16 '05 #2

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

Similar topics

3
by: kieran | last post by:
Hi, I have a form which is submitting into a sql server db. i have one of the fields set to ntext which says length of 16. when i insert info, it only sumbits about a paragraph and when i pull...
0
by: Julie | last post by:
Good evening, A small email to know if among you there are some persons who were already interested in the standards of data exchange in XML. Indeed, I am at the moment in training where I have...
0
by: Bruno Georges | last post by:
Hi I would like to know if there are existing XML standards for data exchange between laboratories and trading companies. For example when a a trader buy COAL, there are some analysis done to...
0
by: Vinay Chopra | last post by:
Hi, Did anybody worked on DDE(Dynamic Data Exchange)? Can someone come with a code piece for implementation of DDE in Microsoft technologies. Thanks, Vinay
5
by: -00Eric Clapton | last post by:
What is Microsoft solution for the data exchange between different platform with XML? Thanks.
1
by: Vinay Chopra | last post by:
Hi, Did anybody worked on DDE(Dynamic Data Exchange)? Can someone come with a code piece for implementation of DDE in Microsoft technologies. Thanks, Vinay
1
by: CV | last post by:
Hello, Could anyone please throw your suggestions on the following scenario? (It would be really helpful if you could provide a solution using ..NET,XSLT,XSD,Web Service other than 'Biztalk...
3
by: Joe Salmeri | last post by:
I have found a data corruption problem with pyodbc. OS = Windows XP SP2 DB = Microsoft Access XP PROBLEM: When selecting columns from a table that are of type Memo the value returned is...
1
by: sutch | last post by:
I have created a DDE( Dynamic-Data Exchange) Client (Console) application to interact with a legacy DDE Server. This client is working perfectly I am asked to develop same functionality in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.