Can I integrate C and C# code?

This is a discussion on Can I integrate C and C# code? within the C Programming forums, part of the General Programming Boards category; Hi, Is it possible to integrate some existing C code into a C# program? If possible, what method would I ...

  1. #1
    Registered User stevespai's Avatar
    Join Date
    Jun 2006
    Posts
    23

    Can I integrate C and C# code?

    Hi,

    Is it possible to integrate some existing C code into a C# program? If possible, what method would I use to integrate it? Should I put it into a class? How would I include the libraries so the compiler recognizes that the code is C? Any additional information would be greatly apprecaited.

    Thanks.
    Steve

  2. #2
    Registered User stevespai's Avatar
    Join Date
    Jun 2006
    Posts
    23
    Sorry about posting in two boards. I should have read the guidlines. I was hoping that if the C# programmers didn't have experience in this, maybe the C programmers would.
    Last edited by stevespai; 07-25-2006 at 06:45 PM.

  3. #3
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Continued here.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21