highpdf:=highPdfPath+'\'+s1;
str:='c:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen '+highpdf;
ShellExecute(handle, 'open', 'rundll32.exe', pchar(str), nil, SW_SH
OWMAXIMIZED);
请问上述程序错误在哪儿,为什么打不开windows server 2008 r2的图片查看器
例如:我C盘下有一张1.JPG图片,用系统的"图片和传真查看器"来打开该图片,
代码如下:ShellExecute( 0,'Open','rundll32.exe','c:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen c:\1.jpg',nil,sw_show);
ShellExecute(Handle, 'open', PChar('c:\test\app.exe'), nil, nil, SW_SHOW);
试试按这个格式修改能不能行,如果不行,推荐这个网址的http://blog.csdn.net/juns6/article/details/39397531。里面有谈到Delphi的用法