473,405 Members | 2,404 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,405 software developers and data experts.

Port a GTK+ and C++/C app from Linux to Winders using C#


I have an app that runs on GTK+2 with two command line apps sort of
embedded (the gui sets the parameters for the command line apps then
displays the results). I want to port it to Winders so I have a couple
questions....

1) If I use C#, will I have any problems compiling C++ and C along with
the C# if I put everything in a single 'Solution'.

2) Does this design seem feasable in Winders?

3) I have compiled one of the mini apps in .NET.

4) If anyone has any suggestions or links to resources that would be
helpful, I would be eternally grateful.
Regards,

Chris
Nov 17 '05 #1
3 1250
You can have a dll (i.e. project) in c++, a dll in VB, a dll in C# and call
any or all other them from your c# or VB Windows (or console) app/exe. For
c++, you would still need to pinvoke the methods or use managed c++ for a
native .net experience (however that would take a bit more work on the c++
side of things). They are working on a generic compiler that would allow
you to have all of those in a single project compiled into the same exe if
you wanted (even method by method I think), but that is some time off I
think.
--
William

"Chris Wessells" <ch***@if.uidaho.edu> wrote in message
news:20********************@msnews.microsoft.com.. .

I have an app that runs on GTK+2 with two command line apps sort of
embedded (the gui sets the parameters for the command line apps then
displays the results). I want to port it to Winders so I have a couple
questions....

1) If I use C#, will I have any problems compiling C++ and C along with
the C# if I put everything in a single 'Solution'.

2) Does this design seem feasable in Winders?

3) I have compiled one of the mini apps in .NET.

4) If anyone has any suggestions or links to resources that would be
helpful, I would be eternally grateful.
Regards,

Chris

Nov 17 '05 #2
William I would like to offer my thanks to you for offering your ideas.
I would also like to make sure I understand your solution.

Rather than compile the executables, compile them as dll files in
whatever language they are written in. Create the GUI in C# and call
the methods. In some future compiler there will be a method of
compiling everything into a single exe.

Seems almost too simple.

Regards,

Chris

In <OF**************@TK2MSFTNGP09.phx.gbl> William Stacey [MVP] wrote:
You can have a dll (i.e. project) in c++, a dll in VB, a dll in C# and
call any or all other them from your c# or VB Windows (or console)
app/exe. For c++, you would still need to pinvoke the methods or use
managed c++ for a native .net experience (however that would take a
bit more work on the c++ side of things). They are working on a
generic compiler that would allow you to have all of those in a
single project compiled into the same exe if you wanted (even method
by method I think), but that is some time off I think. -- William

"Chris Wessells" <ch***@if.uidaho.edu> wrote in message
news:20********************@msnews.microsoft.com.. .

I have an app that runs on GTK+2 with two command line apps sort of
embedded (the gui sets the parameters for the command line apps then
displays the results). I want to port it to Winders so I have a
couple questions....

1) If I use C#, will I have any problems compiling C++ and C along
with the C# if I put everything in a single 'Solution'.

2) Does this design seem feasable in Winders?

3) I have compiled one of the mini apps in .NET.

4) If anyone has any suggestions or links to resources that would be
helpful, I would be eternally grateful.
Regards,

Chris


Nov 17 '05 #3
Correct :)
--
WJS

"Chris Wessells" <ch***@if.uidaho.edu> wrote in message
news:20********************@msnews.microsoft.com.. .
William I would like to offer my thanks to you for offering your ideas.
I would also like to make sure I understand your solution.

Rather than compile the executables, compile them as dll files in
whatever language they are written in. Create the GUI in C# and call
the methods. In some future compiler there will be a method of
compiling everything into a single exe.

Seems almost too simple.

Regards,

Chris

In <OF**************@TK2MSFTNGP09.phx.gbl> William Stacey [MVP] wrote:
You can have a dll (i.e. project) in c++, a dll in VB, a dll in C# and
call any or all other them from your c# or VB Windows (or console)
app/exe. For c++, you would still need to pinvoke the methods or use
managed c++ for a native .net experience (however that would take a
bit more work on the c++ side of things). They are working on a
generic compiler that would allow you to have all of those in a
single project compiled into the same exe if you wanted (even method
by method I think), but that is some time off I think. -- William

"Chris Wessells" <ch***@if.uidaho.edu> wrote in message
news:20********************@msnews.microsoft.com.. .

I have an app that runs on GTK+2 with two command line apps sort of
embedded (the gui sets the parameters for the command line apps then
displays the results). I want to port it to Winders so I have a
couple questions....

1) If I use C#, will I have any problems compiling C++ and C along
with the C# if I put everything in a single 'Solution'.

2) Does this design seem feasable in Winders?

3) I have compiled one of the mini apps in .NET.

4) If anyone has any suggestions or links to resources that would be
helpful, I would be eternally grateful.
Regards,

Chris


Nov 17 '05 #4

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

Similar topics

3
by: Jake | last post by:
Hello, Is the GTK+ plaf available on the windows 1.4.2 SDK ? Is it available for use on a win32 platform? Jake
6
by: Batista, Facundo | last post by:
I'm still deciding about using Tkinter or wxPython for a project I have (sigefi, on SF). The decision is not made, I have to finish first a little program that will be done in both GUIs, and...
3
by: Mairhtin O'Feannag | last post by:
Hello, I have a new Linux RH 9.0 server, on which I'm trying to setup DB2. I did the RPM install of IBMJava2-JRE-1.4.1-2.0, which I got from the IBM site. All *APPEARED* to have worked fine. ...
15
by: richardcarranza | last post by:
I use the GTK libraries in linux. The book I use is "Begining GTK+/Gnome Programming" by Peter Wright. The book is intended for linux users. So, I am wondering how I can do the same thing in...
6
by: johnmmcparland | last post by:
Hi all, I am doing some C / C++ programming in cygwin and I notice when I add something to my path then try to compile, the gcc / g++ compiler cannot find some files, even though they are in the...
19
by: stinkinrich88 | last post by:
Hello! I'm really new to c++. I've been doing java for a while though. I'm using linux so I wanted to make a gtk+ gui application. I want to make a simple calculator to help me learn, so, say...
7
by: Ravi | last post by:
Hi all Can any body suggests me how can i build GTK and what all are required. Any IDE for develop it quickly. Thnaks in Advance, Ravindra.Y
1
by: ChuckB | last post by:
Ok, I'm trying to create a GTK+ application that scrolls Hs across the screen until you press q or Q. I've got it working in console wise using ncurses. What I'm trying to do now is make a full...
4
by: Darwin Lalo | last post by:
I have read a lot of document. But I can't find a little clue. I want get the text & event in a window of a running process. I have not the source code of the process,of course. It is like...
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
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
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
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
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
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...

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.