Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime Error 70 when creating object

Status
Not open for further replies.

OliverF

Programmer
Jul 28, 2010
2
US
I have a C++ application that has an automation interface accessible via VBA. I've added the app's type library as a Reference, and the application object is initialized using the following code (this is in Excel):

dim erapp as ERStudio.Application

set erapp = New ERStudio.Application


This works fine on Windows XP, but on Windows 7 when it tries to create the new object I get a "Run-time error '70': Permission Denied" error.

Does anyone know why this might occur? I tried disabling the UAC, and I tried running under the Administrator account (actually logged in as Administrator, not using the file context menu), but no luck. I also tried CreateObject method of creating the object, but that made no difference. I checked the registry and the app and CLSID are registered properly.

Any help would be greatly appreciated. Thanks!
 
I figured it out! The app was actually not registered properly. In the LocalServer32 key in the CLSID key didn't include the executable name. It only had the app directory. We seem to be having issues registering the app on Windows 7, but that's for us to figure out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top