cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
repal_rahul
Level 3

ISWiAutomation17.dll Interface issue

Hi we are using C++ code to access automation interface(ISWiAutomation17.dll)

CoInitialize(NULL);
CLSID applicationCLSID;
CLSIDFromProgID( L"ISWiAuto17.IswiAutoUpgradeEntry",
&applicationCLSID);

_ISWiProjectPtr oISM = NULL;
HRESULT hr =CoCreateInstance(applicationCLSID, NULL, CLSCTX_INPROC_SERVER, __uuidof(_ISWiProjectPtr), (void **) &oISM);

Here i am getting oISM = 0x00000; and hr = class is not registered.

Does anybody know why this is happning?
Labels (1)
0 Kudos

(1) Reply
hidenori
Level 17

If you want to add a new upgrade entry, you need to call the AddUpgradeTableEntry method on the ISWiProject object.
0 Kudos