Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do OLE Automation with WordPerfect 8
Message
De
25/03/1998 12:55:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00087054
Message ID:
00087059
Vues:
25
>I am trying to do OLE Automation from Visual FoxPro 5.0 with WordPerfect 8.0. Whenever I execute the following code, I get an Application Error when it executes loWP.FileNew(). It does manage to launch WordPerfect before the program terminates. I have tried different WP command other than FileNew, and I get the same results. The same code works with Visual Basic 5.0. Any ideas?
>
>Thanks!
>Tim
>
>********** FoxPro Code **********
>
>LOCAL loWP
>
>* Document settings
>
>loWP = CREATEOBJECT("WordPerfect.PerfectScript")
>loWP.FileNew()
>loWP.Quit()
>
>RETURN
>
>Here is the error message:
>
>VFP.EXE - Application Error
>
>The instruction at "0x65347074" referenced memory at "0x00000000". The memory could not be "written".
Tim,
I don't have wordperfect so doesn't have chance to try. Try setting loWP as public.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform