Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert VB sample code to VFP
Message
De
25/04/2000 02:15:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00362887
Message ID:
00363019
Vues:
20
Sherry,

>I am sorry about that, I see what I did when I post the code, I did make a typo. I my was correct when I ran it in the command line. This command works in VB but not VFP. is there a command that I can use in VFP to create an image file ? thanks

I tested at home tonight on my Win NT 4 system, and had to start out with a different application object because I didn't have "imaging.application":
oApp=CREATEOBJECT("wangimage.application")
On the next line I got the same error 87 until I tried without passing the 1 as a parameter:
oImg=oApp.CreateImageViewerObject()
That may just be a difference in the version I have, but you might try it without the parameter to see if it gives you any joy. It worked for me, and allowed me to successfully
oImg.open("c:\file.bmp")
When you say it works fine in VB, do you mean on the same computer that it fails in VFP, or on different computers?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform