Lupus Goebel
2006-07-29 08:39:43 UTC
Morsche,
mit dem Code:
Code
\\\
Public Declare Function ShellExecute _
Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long
Public Declare Function GetDesktopWindow _
Lib "user32" () As Long
Function FileOpen()
Dim strFileName As String
Dim rv As Long
strFileName = "E:\bilder\sabs.jpg" ' für jpg ist IrfanView Standart
'strFileName = "E:\bilder\sabs.pdf"
'strFileName = "E:\bilder\sabs.cdr"
rv = ShellExecute(GetDesktopWindow(), "Open", _
strFileName, "", "E:\bilder", 1)
End Function
///
kann ich eine Datei in seiner Standartanwendung öffnen. Bei JPG wäre das
IrfanView. Nun möchte ich aber das JPG mit Corel PHOTO-PAINT geöffnet
wird.
Wie bekomme ich das hin?
mit dem Code:
Code
\\\
Public Declare Function ShellExecute _
Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long
Public Declare Function GetDesktopWindow _
Lib "user32" () As Long
Function FileOpen()
Dim strFileName As String
Dim rv As Long
strFileName = "E:\bilder\sabs.jpg" ' für jpg ist IrfanView Standart
'strFileName = "E:\bilder\sabs.pdf"
'strFileName = "E:\bilder\sabs.cdr"
rv = ShellExecute(GetDesktopWindow(), "Open", _
strFileName, "", "E:\bilder", 1)
End Function
///
kann ich eine Datei in seiner Standartanwendung öffnen. Bei JPG wäre das
IrfanView. Nun möchte ich aber das JPG mit Corel PHOTO-PAINT geöffnet
wird.
Wie bekomme ich das hin?
--
MfG - Lupus Goebel
Der Sumpf- und Morasthobbybastler und Anfaenger mit
Wissensdurst (http://www.lupusdw.de)
Meine private FAQ http://www.lupusdw.de/faq
MfG - Lupus Goebel
Der Sumpf- und Morasthobbybastler und Anfaenger mit
Wissensdurst (http://www.lupusdw.de)
Meine private FAQ http://www.lupusdw.de/faq