Using API on .NET

Forums SA Series Discussions Using API on .NET

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27110
    filippomarchese
    Participant

    Hi,
    how can I use APIs for the SA devices (sa_api.dll) on a .NET application?
    Is there any ready sample?

    Regards,
    Filippo Marchese

    #27119
    AndrewAndrew
    Moderator

    Hello 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.

    #27627
    filippomarchese
    Participant

    Thank you Andrew, I am able to do marshalling.

    Regards,
    Filippo Marchese

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.