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: 7
  • 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: 425
  • 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: 7
  • 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!
Offline

nzmillsto

  • Posts: 2
  • Joined: Wed Jun 27, 2018 11:21 pm
  • Real Name: Toby Mills

Re: Import ATEM SDK into Visual Studio

PostMon Feb 10, 2020 2:52 am

A followup question to this.
We are adding ATEM support to a software product, but not all users of our product are ATEM users.
THerefore not all of them have the ATEM software installed.
We don't want to have to force non ATEM users to install the ATEM software.

Is there a way of including BMDSwitcherAPI without referencing the software, or only referencing it if we know they want to use an ATEM.

At the moment, when you install our application on a PC without the ATEM software, it says COM object not found.
Offline

Ian Morrish

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

Re: Import ATEM SDK into Visual Studio

PostWed Feb 12, 2020 3:42 am

You can copy the api 64bit dll in your project and include a regserv64 command to register it in your installer. There is also a dependency on ms windows c++ runtime

Sent from my SM-G960F using Tapatalk
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests