Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exe calling another exe or exes
Message
De
12/07/2002 13:59:08
 
 
À
12/07/2002 13:03:55
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00677753
Message ID:
00678184
Vues:
20
Well, what was coming in my mind:
1. If you are in the same room, may be sound from speaker is appropriate: try Beep statement (see MSDN for further information);
2. You can add code to call on the phone: add MS Communication control 6.0 (comOne) and CommandButton to the form. Refer MSDN for further information about MSComm control. Here is the code:
private sub cmdDial_Click()
Dim strNumber As String

  strNumber = "123456"  'Replace this with your number
  comOne.CommPort = 1
  comOne.Settings = "9600,N,8,1"
  comOne.PortOpen = True
  comOne.Output = "ATDT" & strNumber & vbCr
  [something other code]
  comOne.PortOpen = False
End Sub
3. If you have PC, office application can link to application on your PC (if there are LAN or Dial-Up connection between PCs) through WinSock control. Use TCP protocol and read MSDN article "Using the WinSock control".

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform