CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    May 2006
    Posts
    6

    Attempting to convert a C program into C# - is it possible?

    I'm a newbie C# programmer, attempting to create an API to talk to a sales tax API which is housed at another location. I have all of the header files, all of the dll's and the connection to the database. However, the program is a C program and only 6 of the dll's are COM dll's. The others are all C and I am unable to reference them to my program. Not to mention the header files are useless. However they are necessary for me to connect and utilize the full gamut of functionality and methods. Is it possible to create this API and figure out a way to utilize the C dll's somehow? As well as the headers? Or am I getting way to ahead of myself?

    I've heard that its possible to write wrapper programs to wrap each of the header files and dll's and that, that way, it may be possible to write a C# API which can use the dll's and header files and actually get the job done. How difficult is it to write these wrapper programs? How can PInvoke come into play, here?
    Last edited by CodeBugger; April 15th, 2014 at 10:47 AM. Reason: new info

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured