Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a Non VFP EXE How?
Message
From
26/09/2007 02:00:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01256844
Message ID:
01256850
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform