ON exporting a structure inside a dll
-
Hi frends, I have a structure in a c dll, now i want to export this particular structure into a c# dotnet application. How can i achieve that?Pls help
-
Hi frends, I have a structure in a c dll, now i want to export this particular structure into a c# dotnet application. How can i achieve that?Pls help
You need to redefine the struct in C# and make sure the size is the same. www.pinvoke.net has examples.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )