Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

376 views

Published on

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

Published in: Education
  • Be the first to comment

  • Be the first to like this

Apire file con programma predefinito in vb6 [santi caltabiano].txt blocco note

  1. 1. Apire file con programma predefinito in vb6 [Santi Caltabiano].txtAPRIRE UN FILE CON IL PROGRAMMA PREDEFINITO [VB6]E sufficiente utilizzare ShellExecute. Il codice riportato di eseguito apre unfile pdf di nome prova.pdfposto nella cartella c:aaaa.-------------------------------------------------------------------------------------------------------------Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVallpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) AsLongPrivate Sub Command1_Click() Dim retval As Long retval = ShellExecute(0, "open", chr(34) & "C:aaaprova.fdf" & chr(34),vbNullString, vbNullString, vbNormalFocus)End Sub------------------------------------------------------------------------------------------------------------- Pagina 1

×