473,503 Members | 3,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bi-Directional Remoting with Unmanaged app

Hello,
I'm facing the following difficulty with a Remoting app which
communicates with an Unmanaged (VC6) app in a two-way manner.
I have done the direction from Framework to VC6 through WIN32-API
delegates, using FindWindow + PostMessage. This works fine.

But now I have to go the other way back: from the VC6 app to the
Framework, also by using PostMessage. What I have in mind is: create a
second remoting path with the Server at the Framework machine and let
its client run on the VC6 machine. This second Client will then
communicate with the first Client via the RemotableObject and pass the
PostMessage data.

In order to receive these PostMessage events I have to install the
WIN32 WindowProc event handler in the Framework app, written in C#.
My problem is the following: how must I implement this WIN32
WindowProc(UINT msg, WPARAM wparam, LPARAM lparam) on my Framework
machine?

Anybody have a code snippet as example?

Thank you very much!
Victor.

Jul 28 '06 #1
2 3276
Victor,
At first read, your description sounds incredibly complex, that you have to
do this a the OS Window level. Surely there has got to be an easier way
(perhaps, still using Remoting) to handle this inter-app communication
without going through all the coding pain you describe? Maybe more
information about the goal in mind and what exactly you need to be able to do
will elicit better suggestions.
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"victor" wrote:
Hello,
I'm facing the following difficulty with a Remoting app which
communicates with an Unmanaged (VC6) app in a two-way manner.
I have done the direction from Framework to VC6 through WIN32-API
delegates, using FindWindow + PostMessage. This works fine.

But now I have to go the other way back: from the VC6 app to the
Framework, also by using PostMessage. What I have in mind is: create a
second remoting path with the Server at the Framework machine and let
its client run on the VC6 machine. This second Client will then
communicate with the first Client via the RemotableObject and pass the
PostMessage data.

In order to receive these PostMessage events I have to install the
WIN32 WindowProc event handler in the Framework app, written in C#.
My problem is the following: how must I implement this WIN32
WindowProc(UINT msg, WPARAM wparam, LPARAM lparam) on my Framework
machine?

Anybody have a code snippet as example?

Thank you very much!
Victor.

Jul 28 '06 #2
Peter, thanks for the response!
I'll try to outline my difficulty:
I have to establish a communication (two-way) between a C# remoting
app on one desktop and an unmanaged app, VC6-MFC, running on another
desktop.
The scheme choice of Remoting is fixed, due to the fact that it's part
of a larger project. The fact that 'the other' object is VC6/MFC is
also unalterable due to the same reason on that machine.
So, I'm a bit 'stuck' with this new-old or managed-unmanaged
situation. At least, for the part that the Unmanaged VC6/MFC module
has to signal something to the Managed-C# application.
As I mentioned, the other direction, from Mgd to Unmgd, I've solved
(via FindWindow + PostMessage). But now the other way around .... .
The problem is that I do not know how to implement the WIN32
WindowProc(UINT msg, WPARAM wparam, LPARAM lparam) in my C# module.
Logically it should be like instantiating an ordinary EventHandler,
but ..., I keep stumbling onto a brick wall up to now.
So, I hope you can help me out.

greetz, Victor

On Fri, 28 Jul 2006 16:53:02 -0700, Peter Bromberg [C# MVP]
<pb*******@yahoo.nospammin.comwrote:
>Victor,
At first read, your description sounds incredibly complex, that you have to
do this a the OS Window level. Surely there has got to be an easier way
(perhaps, still using Remoting) to handle this inter-app communication
without going through all the coding pain you describe? Maybe more
information about the goal in mind and what exactly you need to be able to do
will elicit better suggestions.
--Peter
Jul 29 '06 #3

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

Similar topics

0
3339
by: DD | last post by:
Hi Guys! Just would like to share with you my experiense in this matter. I was trying to evaluate how suitable Oracle OLAP for our applications. As probably you did, I have downloaded from OTN...
0
1547
by: V?ronique | last post by:
hi everyone, if you are a BI tool user, speak spanish, then you might be interested in decideo, which is a community of BI tool users. the newsletter is on: ...
0
1845
by: YellowFin Announcements | last post by:
Announcing Yellowfin Version 2.4 release. (www.yellowfin.com.au) Existing SQLserver users can take advantage of this upgrade as soon as convenient. V2.4 Exciting changes in the latest...
3
5050
by: ShihChengYu | last post by:
Dear all: How to convert color image to bi-level image? I have confronted one problem when I build my OCR project. I used an software API function to enhance my project, but the API only...
1
1819
by: jimdandy | last post by:
Hi all, Am looking for some guidance/advice in terms of best practices for deploying a MS BI project. We have a relatively large BI system that we need to deploy between DEV/QA/UAT/PROD and...
0
1358
by: YellowFin | last post by:
Yellowfin International today announced that Yellowfin has joined IBM's Partner Program, and that the Yellowfin BI Suite are now validated on IBM's popular DB2 9 database. This partnership opens...
0
1343
by: WI Projects | last post by:
Hi, A CMM Level 5 company is looking for Microsoft Business Intelligence (MS BI) professionals for its Hyderabad location. There is a an element of onsite travel & work to this position. ...
15
6125
by: rinmanb70 | last post by:
I use a db for keeping up with my checkbook and I'm having trouble setting up a new functionality. I get paid every two weeks on Friday, and I need a report to figure my balance that includes only...
0
1776
by: YellowFin Announcements | last post by:
Yellowfin, Powered by J2EE, Jasper, BIRT, Spring, jfreeChart Advanta releases ATLAS BI using Yellowfin Business Intelligence 3rd of August, 2007 - Advanta Software, specialist software...
0
1102
by: zyro | last post by:
Hi, This is Michael Bowen. I've put together cubegeek.com as a new and hopefully exciting site for the BI professional to network, share get information. This is the industry's first portal...
0
7207
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,...
0
7291
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
7357
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...
1
7012
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...
0
5598
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,...
0
3180
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...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.