Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Windows XP Picture and Fax Viewer

Status
Not open for further replies.

pmbroh

Technical User
Nov 13, 2004
13
US
I would like to open from either VFP or Fox2.6 Windows XP Picture and Fax Viewer. It is a .dll file shimgvw.dll not a .exe. Any ideas, Thanks much, Pete B
 

One way to do this would be to change the file association of your picture files and use ShellExcecute on your pictures with the "open" parameter.
Code:
[blue]DECLARE INTEGER[/blue] ShellExecute [blue]IN[/blue] shell32.[blue]dll[/blue] ; 
  [blue]INTEGER[/blue] hndWin, ; 
  [blue]STRING[/blue] cAction, ; 
  [blue]STRING[/blue] cFileName, ; 
  [blue]STRING[/blue] cParams, ;  
  [blue]STRING[/blue] cDir, ; 
  [blue]INTEGER[/blue] nShowWin
cFileName = "c:\mypicture.jpg" 
cAction = "open" 
ShellExecute(0,cAction,cFileName,"","",1)


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top