Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VC++ COM problem under NT4
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
VC++ COM problem under NT4
Miscellaneous
Thread ID:
00353025
Message ID:
00353025
Views:
57
I've gotten a VFP COM object up and running being called from a testbed VC++ program on my box which is Win95.

I take the DLL, put it on an NT4 box, register the DLL and then try to use the COM from that code and the deep in the ATL bowels code hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast(&pIUnknown)); throws back an HRESULT of 0x80040154 which according to the winerror.h file is:

// MessageId: REGDB_E_CLASSNOTREG
//
// Class not registered
//
#define REGDB_E_CLASSNOTREG _HRESULT_TYPEDEF_(0x80040154L)

Anyone have an idea what this is really telling us?

The really odd thing is it has worked once and we got an diagnositc message back from my code in the COM. I tweaked the COM to add some additional data to the message and now the VC++ gives the above problem. All we did was to copy the new DLL, register it and try to run it again. The DLL signature is in the registry and the code prior to the CoCreateInstance is finding the correct uuid for my COM and passing that rclsid into CoCreateInstance. Is there something more to getting a new DLL onto an NT box?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Next
Reply
Map
View

Click here to load this message in the networking platform