Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need C#/C++ DLL Advice

Tags:

c

.net

dll

I have successfully gotten Dreamweaver to accept my DLL and call it's methods. The DLL is written in C++ with C interpeted functions (so function names aren't mangled.)

I would like to become comfortable with C++ pointers and datatype, but I have a much stronger proficiency with C# so for our timeline I think it's worthwhile to investigate alternatives to a straight C solution.

Would I theoretically be able to build a DLL in C# that would be seen from the "outside" the same as a C DLL?

and as an alternative

Would I be able to "wrap" a C# DLL with the working C DLL?

The main part of my concern is the datatypes of the functions, as when dreamweaver calls them it is expecting void and char pointers as the format for passing data back and forth.

Thank you.

like image 220
Joshua Enfield Avatar asked Dec 10 '22 14:12

Joshua Enfield


1 Answers

Contrary to popular belief, this is possible.
See here.

like image 156
SLaks Avatar answered Dec 12 '22 05:12

SLaks