Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0x80040154 when createobject
Message
De
27/08/2006 10:13:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01128348
Message ID:
01148900
Vues:
19
Hi Sergey,

We found that the problem came from our EXE packer (Molebox), and on very recent machines only. Unpacked projects work fine.

Thanks for your time.

-------------------------
Christian,

To see if it's a problem with accessing registry, try to run code from Re: Is Word/Excel installed Message #566432.


>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 and on a W2003 server at another place. 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.
>
>Anybody has already seen this?
--sb--
MVP VFP
Gensoft Sàrl
Christian Carron
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform