Using a C DLL in a C# Application...
-
Is there a way to use a C DLL to use in a C# Application? :) - A programmer's national anthem; "AAAAAHHHHH!!!!"
Yep, that's what Platform Invoke[^] is for. What's more, you can write a C++/CLI dll that uses native code and .NET code as well. Such a dll could then be callable from C# with ease.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: How 'bout a little guitar now? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Yep, that's what Platform Invoke[^] is for. What's more, you can write a C++/CLI dll that uses native code and .NET code as well. Such a dll could then be callable from C# with ease.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: How 'bout a little guitar now? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
Does
PInvoke
work if a create a DLL in any other language too e.g. Delphi? -
Does
PInvoke
work if a create a DLL in any other language too e.g. Delphi?Good question, I've never tried before. My guess is, as long as one can export the native methods so that they're visible to C, then yes.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: How 'bout a little guitar now? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango