unresolved external symbol CLSID_CBMDSwitcherDiscovery

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

AdmiralTriggerHappy

  • Posts: 10
  • Joined: Tue Nov 16, 2021 9:06 pm
  • Real Name: Andrew Wallace

unresolved external symbol CLSID_CBMDSwitcherDiscovery

PostSun Jan 07, 2024 4:44 am

I'm trying to develop an app to control my ATEM but am having difficulty getting started with the SDK

I get the following linking error:
Code: Select all
error LNK2001: unresolved external symbol CLSID_CBMDSwitcherDiscovery

I think I have included all the required libraries etc as below
Code: Select all
#include "include\BMDSwitcherAPI.h"

#include <cstdio>
#include <map>
#include <string>
#include <utility>
#include <vector>

#include <conio.h>
#include <comutil.h>
#include <atlbase.h>

And my attempt to setup switcher discovery is direct from the sample code:
Code: Select all
CComPtr<IBMDSwitcherDiscovery>   switcherDiscovery;
HRESULT   result;

result = switcherDiscovery.CoCreateInstance(CLSID_CBMDSwitcherDiscovery, NULL, CLSCTX_ALL);
if (result != S_OK)
{
fprintf(stderr, "A Switcher Discovery instance could not be created.  The Switcher drivers may not be installed.\n");
}


Anyone got any suggestions or ideas to help here?
Offline

AdmiralTriggerHappy

  • Posts: 10
  • Joined: Tue Nov 16, 2021 9:06 pm
  • Real Name: Andrew Wallace

Re: unresolved external symbol CLSID_CBMDSwitcherDiscovery

PostMon Jan 08, 2024 2:46 am

All Sorted
I hadn't like the library correctly.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 16 guests