Skip to content

Instantly share code, notes, and snippets.

View e2thenegpii's full-sized avatar

Thomas Eldon Allred e2thenegpii

View GitHub Profile
@e2thenegpii
e2thenegpii / com_fetcher.cpp
Created September 17, 2022 17:35
Code invoke a generic com-esk object function and overload the return value in the case of a BSTR
#include <functional>
#include <memory>
#include <iostream>
#include <tuple>
static constexpr const char* strval = "The quick brown fox jumps over the lazy dog";
using BSTR = const char*;
struct foo1
{