Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: Display tif file

$
0
0

Try the following...

 

//Global External Function Declaration

FUNCTION long ShellExecuteA( ulong hWnd, string Operation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll" Alias for "ShellExecuteA;Ansi"

 

 

global function integer f_execute (string as_filename); /***********************************************************

This can be a zip, doc, xls, or any other windows registered file extension

and it will open it in it's native application WITHOUT sourcing the hosting application.

JUST LIKE START | RUN | path\to\any.pdf <enter> !!!

************************************************************/

Long  ll_rc

String ls_null

 

SetNull( ls_null )

ll_rc = ShellExecuteA (0, "open", as_filename + CharA(0), ls_null, ls_null, 1)

 

IF ll_rc > 32 THEN // 0 - 32 are OS error codes

    RETURN 1

ELSE

    RETURN -1

END IF

end function


Viewing all articles
Browse latest Browse all 10482

Latest Images

Trending Articles



Latest Images