Forums › SA Series Discussions › Using API on .NET
- This topic has 2 replies, 2 voices, and was last updated 9 years, 5 months ago by
filippomarchese.
- AuthorPosts
filippomarcheseParticipantHi,
how can I use APIs for the SA devices (sa_api.dll) on a .NET application?
Is there any ready sample?Regards,
Filippo Marchese
AndrewModeratorHello Filippo,
We do have an example. If you go into the bb_series folder we have a fully fleshed out API in the csharp folder for our BB60 API. The BB60 API is very similar to the SA44/124 API so it will be mostly cut and paste.
The mechanism by which this is performed is commonly referred to by many names, most notably as PInvoke, Interop, or marshalling. These are the mechanism by which a C# program can call a C function in a DLL on Windows. Searching the internet for these terms will return many examples of doing this.
Regards,
A.J.
filippomarcheseParticipantThank you Andrew, I am able to do marshalling.
Regards,
Filippo Marchese- AuthorPosts
You must be logged in to reply to this topic.