.Net communication with a C program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi !

I have developped a GUI in C# and I would like to integrate an existing
protocol parser written in C. I am exploring the possibilities. But I have
little experience in .NET to take a correct decision. That's why I would
appreciate your comments and remarks.

Is it possible to add C (non OOP) code to C# ? I believe it's not possible.
- I can port the parser to C#, but I need to modify the structure of the
program to be conform to an Object Oriented structure.
- I can use communication methods such as Message Queues, IPC and
communicates between these 2 programs.

Do you have any suggestions ?

Thanks in advance,

Sadi.
 
I think it is less a question of object oriented and more a question of
managed code.

After all C ports "easily" to C++ which is supposedly object oriented.
Object orientation is an option, not a requirement. You can always wrap your
entire code in an "object"
Suspect you main problem will be use of pointer variables and casting and
whether you think that can be ported with reasonalbe effort.

There may be a path from C to "managed" C++ and thus .NET. Everytime I've
looked at "managed" C++, I recoil in revulsion.
 
Back
Top