.Net communication with a C program

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.
 
U

User

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top