Import ATEM SDK into Visual Studio

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

cjdenio

  • Posts: 2
  • Joined: Thu Jan 03, 2019 3:11 pm
  • Location: New Hampshire, USA
  • Real Name: Caleb Denio

Import ATEM SDK into Visual Studio

PostThu Jan 03, 2019 3:22 pm

This is probably obvious, but I can't figure out how to get the ATEM SDK into Visual Studio. The examples use VS, so it must be possible. I can't find anything on .idl files, either. I'm using Visual Studio 2017. Thanks!
Offline

Ian Morrish

  • Posts: 300
  • Joined: Sun Jan 18, 2015 9:24 pm
  • Location: New Zealand

Re: Import ATEM SDK into Visual Studio

PostFri Jan 04, 2019 6:56 pm

Hi,
Just add a reference to your project. Under COM - Type Libraries
"Blackmagic Switcher API Library" should be listed if the BMD Control software is installed.

Then you can add
using BMDSwitcherAPI;
using System.Runtime.InteropServices;

After first time building the project, Visual Studio will create all the required files for your project to work. If you update the version of the client, just select "Clean Solution" from the Build menu to regenerate the interop files.

You don't really need the SDK installed as the desktop software includes the API dll.
I only use the SDK to get the API documentation.
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com
Offline

cjdenio

  • Posts: 2
  • Joined: Thu Jan 03, 2019 3:11 pm
  • Location: New Hampshire, USA
  • Real Name: Caleb Denio

Re: Import ATEM SDK into Visual Studio

PostFri Jan 04, 2019 11:44 pm

That's it. Thank you so much!

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 4 guests