VARIANT_BOOL vb; esriLicenseStatus licenseStatus = 0; IArcGISVersionPtr ipVersion(__uuidof(VersionManager)); ipVersion->LoadVersion(esriArcGISServer, L"", &vb); IAoInitializePtr ipInit(CLSID_AoInitialize); ipInit->IsProductCodeAvailable(product, &licenseStatus); ipInit->Initialize(product, &licenseStatus);
Not that this is a current thread, but between Umberto Raggiani's #import statement and this response from Michael Rice, I got what I was doing working in a jiff. Thanks guys!