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

  • Thread starter Thread starter Chris Wessells
  • Start date Start date
C

Chris Wessells

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
 
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 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
 
Correct :)
--
WJS

Chris Wessells said:
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
 
Back
Top