Error when opening the GenICam.vin via C++ in Visual Studio "CMake"

Hello, I get an error thrown when I execute the following lines of code:

#include <iostream>

#include <cvb/device_factory.hpp>
#include <cvb/utilities/system_info.hpp>
#include <cvb/driver/stream.hpp>

int main(int argc, char* argv[])
{

  try
  {
    auto path = Cvb::InstallPath();
    path += CVB_LIT("Drivers\\GenICam.vin");
    // use command line argument if provided.
    if (argc > 1)   
    {
      std::string inputPath(argv[1]);
      path = Cvb::String(inputPath.begin(), inputPath.end());
    }
    // expand environment variables in path
    path = Cvb::ExpandPath(path);

    // open a device
    auto device = Cvb::DeviceFactory::Open(path, Cvb::AcquisitionStack::Vin);
  }
  catch (const std::exception& error)
  {
    std::cout << error.what() << std::endl;
  }
}

Output while Debuging:

Exception thrown at 0x00007FFB5B034ED9 in CppStreamConsole.exe: Microsoft C++ exception:
CVBDDK::DDKException at memory location 0x000000FAD98FEC50.
Exception thrown at 0x00007FFB5B034ED9 in CppStreamConsole.exe: Microsoft C++ exception:
Cvb::V_1_5::CvbException at memory location 0x000000FAD98FF480.

Hi @ASchmitt,

as we are already in contact let us check this outside the forum.
Currently it looks like your setup is off at some point as you can load the GenICam.vin in the viewer and all other tools also work but as soon as you build one of our tutorials, they wont work.

As soon as we find the reason for this, we should update this thread for other users that might potentially get the same errors.

Cheers
Chris