Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a Non VFP EXE How?
Message
De
26/09/2007 02:00:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01256844
Message ID:
01256850
Vues:
15
>I am back at this again with a non-Visual FoxPro EXE (made with Borland C++) which will give me image sizes, such as "640x480".
>
>I am not sure how to call this program called GetImgSize.exe. Do you have to run some kind of a shell to call a non-VFP exe?
>
>The program is supposed to return the value to the CLIPBOARD, which is another problem.

You can use ShellExecute API. It is like dblclicking a file in explorer. VFP wouldn't wait for anything after firing it and continue to execute. You could then check clipboard.
But I think I'd never use an external exe to get such information when granted with GDI+ API access. ie:
lcImg = Getpict()
oBitmap = Newobject('gpBitmap', Home() + 'ffc/_gdiplus.vcx')
oBitmap.CreateFromFile(m.lcImg)
With oBitmap
  ? .ImageWidth, .ImageHeight
Endwith
If you're interested with other things related with images then visit Cesar's weblog at:

http://weblogs.foxite.com/cesarchalom/archive/category/187.aspx

He really have tons of cool stuff there.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform