Declare Integer ShellExecute In SHELL32.Dll Integer nWinHandle, String cOperation, String cFileName, String cParameters,;
STRING cDirectory, Integer nShowWindow
*-- make sure xxx is registered with windows to open with a specific progam
xc_Path = [c:\someFile.xxx]
ShellExecute(0, 'Open',xc_Path , '', '', 1)
>Look at the Windows Scripting Object
>
>
>>Hi All,
>>
>>I have a requirement to be able to view "Thumbnails" of TurboCAD file from within FoxPro, and then to open the file in either the TurboCADviwer or TurboCAD.
>>
>>I am using BMPs or JPGs for the thumbnails. They are of the same name as the TurboCAD file. They would like to select the program to use (either TurboCAD or the viewer) and with a click on the photo, open the drawing (not the BMP or JPG) file in the selected program.
>>
>>Any suggestions would be appreciated.
>>
>>Barb
Greg Foote
Software At Work, Inc.