|
-
September 10th, 2008, 07:51 AM
#1
[RESOLVED] How can I use C libraries with C#?
We are currently working on a project, where my friends are writing some data processing code with C (dll). I was told to build a gui and handle the database stuff with C#.NET.
can i link those libraries to my program and how do i do that?
-
September 10th, 2008, 08:20 AM
#2
Re: How can I use C libraries with C#?
You need to have a look at www.pinvoke.net to see examples of DllImport.
There you can find windows api's function that much signatures method in C#.
Regards,
Tom
-
September 10th, 2008, 09:04 AM
#3
Re: How can I use C libraries with C#?
Code:
[DLLImport("dllname.dll")]
public static extern void functionName(params);
...
functionName(...); //Calling function
Please vote the posts you find usefull.
---
I'm back
Bigger and badder
Better and bolder
Explaining stuff -
With an improved vocabulary!
-
September 13th, 2008, 10:36 AM
#4
Re: How can I use C libraries with C#?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|