View Single Post
Old 09-22-2005, 12:07 PM   #1 (permalink)
otakuj462
Registered User
 
Join Date: Sep 2005
Posts: 1
otakuj462 is on a distinguished road
How to use legacy C code in a C# application

Hi, I'm building a Windows application in C#. The goal is to be able to read data off of a particular kind of scangun. The scangun manufacturer provides a .dll file, and some sample code written in MSVC. As the sample code fulfills all of my requirements a far as fetching data from the gun, I want to use it, and write the front-end and database management parts in C#. Is there a way to use the C code, perhaps as even as a precompiled executable? Or would it make more sense to change it at the code level, perhaps making it look more like C++, and then using it as a class? I think this would ultimately be the cleaner option...
If anyone has any advice, I'd appreciate it. Thanks.

-Jake
otakuj462 is offline   Reply With Quote