473,385 Members | 1,930 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,385 software developers and data experts.

Interop: C++ Console & C# GUI

Sincerly is a little bit complicated to explain to you what I have in
my
mind, but I will try:

Above all the problem is the type of data that I want to passe between
these two applications. The complete application that I want to create
consiste of two applications:
- the console developped with VS C++, that use some libraries
developped with Borland C++
- the GUI of application that interact with the console.

The GUI must access some methods included in libraries and exposed by
the console, and the internal libraries throught the core application
must interact with some methods of GUI, for example to refresh some
controls.

I have thinked to to link GUI with WebService "A" that communicate
with Console, and to link Console with WebService "B" that communicate
with GUI. In this way it's possible to make a bidirectional
communication.... But. But this is not very simple to do. And sincerly
I don't know how I can do it, above all because I don't know how I can
use the GUI/Console from the WebService.

Every suggestion/solution is welcome... and thanks in advance to all
those they want ot help me.
Dec 17 '07 #1
3 2221


"Sheikko" wrote:
Sincerly is a little bit complicated to explain to you what I have in
my
mind, but I will try:

Above all the problem is the type of data that I want to passe between
these two applications. The complete application that I want to create
consiste of two applications:
- the console developped with VS C++, that use some libraries
developped with Borland C++
- the GUI of application that interact with the console.

The GUI must access some methods included in libraries and exposed by
the console, and the internal libraries throught the core application
must interact with some methods of GUI, for example to refresh some
controls.

I have thinked to to link GUI with WebService "A" that communicate
with Console, and to link Console with WebService "B" that communicate
with GUI. In this way it's possible to make a bidirectional
communication.... But. But this is not very simple to do. And sincerly
I don't know how I can do it, above all because I don't know how I can
use the GUI/Console from the WebService.

Every suggestion/solution is welcome... and thanks in advance to all
those they want ot help me.
For starters, I would have two executable projects (the console and the GUI
app) and a dll project (for the common code).

In this way, the GUI can make calls to the console logic by linking to a
reference to the common dll and calling object methods.

It's not clear if the GUI is talking to your console app in any way. Going
the other way is desired it appears. There are many options. Probably the
simplest to code is for the console app to put some message in a file that
the GUI code is monitoring. When the contents of that file have changed, the
GUI code makes some decision on updating controls.

Its not clear from your post why the console app is needed. It would seem
that if the GUI is a display of the state of the running console application,
that the two could exist in one executable. Are you sure you couldn't change
the console application to a callable method from the GUI?

Lastly, you posted this separately to many groups. You should post to all
groups in one post so that the replies go to all groups.
Dec 17 '07 #2
On 17 Dic, 13:13, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.comwrote:
"Sheikko" wrote:
Sincerly is a little bit complicated to explain to you what I have in
my
mind, but I will try:
Above all the problem is the type of data that I want to passe between
these two applications. The complete application that I want to create
consiste of two applications:
- the console developped with VS C++, that use some libraries
developped with Borland C++
- the GUI of application that interact with the console.
The GUI must access some methods included in libraries and exposed by
the console, and the internal libraries throught the core application
must interact with some methods of GUI, for example to refresh some
controls.
I have thinked to to link GUI with WebService "A" that communicate
with Console, and to link Console with WebService "B" that communicate
with GUI. In this way it's possible to make a bidirectional
communication.... But. But this is not very simple to do. And sincerly
I don't know how I can do it, above all because I don't know how I can
use the GUI/Console from the WebService.
Every suggestion/solution is welcome... and thanks in advance to all
those they want ot help me.

For starters, I would have two executable projects (the console and the GUI
app) and a dll project (for the common code).

In this way, the GUI can make calls to the console logic by linking to a
reference to the common dll and calling object methods.

It's not clear if the GUI is talking to your console app in any way. Going
the other way is desired it appears. There are many options. Probably the
simplest to code is for the console app to put some message in a file that
the GUI code is monitoring. When the contents of that file have changed, the
GUI code makes some decision on updating controls.

Its not clear from your post why the console app is needed. It would seem
that if the GUI is a display of the state of the running console application,
that the two could exist in one executable. Are you sure you couldn't change
the console application to a callable method from the GUI?

Lastly, you posted this separately to many groups. You should post to all
groups in one post so that the replies go to all groups.
Beacause I want to run the console on a Pc and the GUI on a second Pc.
So I need to make communication between them
Dec 17 '07 #3
Its not clear from your post why the console app is needed. It would seem
that if the GUI is a display of the state of the running console application,
that the two could exist in one executable. Are you sure you couldn't change
the console application to a callable method from the GUI?

Beacause I want to run the console on a Pc and the GUI on a second Pc.
So I need to make communication between them
OK, I think that is missing from your original post. You should look at the
many examples of .Net Remoting available on the web.
Dec 17 '07 #4

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

Similar topics

15
by: Mark Sisson | last post by:
Hey all. I've got a legacy COM dll that I'd like to use in my multithreaded C# app. Problem though is when I create several instances of the interop object and start them on their own threads...
0
by: roy | last post by:
I try to call com written in VB 6.0. When I use VS.net Studio to do the debuging, some time it works fine, some time I got the following message: Server Error in '/GISOnlineReservation'...
0
by: Shashank Date | last post by:
/* C# Gurus, I am trying to use interop marshalling to call SetCommTimeouts win32 API. But I keep getting the "Object reference not set to an instance of an object" error. Can anybody help...
2
by: frazer | last post by:
hi, i need to know what interface ms-word's spell checker uses. i got this example from msdn, that makes use of com interop. i was wondering how do i get the interface IMediaContorl or any other...
2
by: andrew lowe | last post by:
Hi there, We have to use a com interop library generated by tlbimp, where the orginal com object is written in uniface (a compuware language). The method we use and have the problem with has the...
0
by: Laura Papez | last post by:
(note: orginally posted to the dotnet.framework.webservices.enhancements folks - thought this group may have more experience in this area. Ta, Laura.) Hi, I have created a secure Web Service...
6
by: Nataraj1978 | last post by:
I have a requirement to use a dll written in Visual C++ 6.0 in my C# application. In order to establish the link between my application and the dll, I have written a ATL COM Component in Visual...
0
by: Sheikko | last post by:
Sincerly is a little bit complicated to explain to you what I have in my mind, but I will try: Above all the problem is the type of data that I want to passe between these two applications. The...
0
by: bfrank1972 | last post by:
I want to be able to get a list of all custom named fields in an Excel worksheet, but I am having trouble with this. In the code below, access to a field that I named "DEALCODE" works fine - I get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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.