Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject
Message
 
To
13/06/2006 11:56:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
01128744
Message ID:
01128748
Views:
22
Christian,

See if it is your case, http://www.xlinesoft.com/db2html/faq.htm#2,
"I receive error message "HRESULT: 0x80040154; Error: Class not registered"


>Hi Calvin,
>
>We have two customers who receive a 0x80040154 error in our application (two out of several thousands). The error happens when we run these VFP command :
>
>
>loWord = CREATEOBJECT("word.application")
>or
>loExcel = CREATEOBJECT("excel.application")
>or
>loOutlook = CREATEOBJECT("Outlook.application")
>
>
>if I try to run this VBS script, everything works fine:
>
>
>Set WSHShell = WScript.CreateObject("WScript.Shell")
>Set appWord = Wscript.CreateObject("Word.Application")
>appWord.Visible = TRUE
>WSHShell.popup "Now Word is open..."
>appWord.Quit
>Set appWord = Nothing
>
>
>The problem happens on a couple of XP machines at one customer's and on a W2003 server (terminal server) at another site (different customer). I've checked many registry settings, tried to repair MS-Office (reinstall), but no success. I can't even use CREATEOBJECT on our own VFP DLLs!
>
>As these COM servers are correctly registered (I double checked), are you aware of a case where VFP (and VFP only) CREATEOBJECT function would fail?
Previous
Reply
Map
View

Click here to load this message in the networking platform