Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDesktopWindow()
Message
De
03/10/2001 11:18:28
Mike Keithley
North Instruments Inc.
Cleveland, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
GetDesktopWindow()
Divers
Thread ID:
00563637
Message ID:
00563637
Vues:
56
I am getting Overflow error message while running GetDesktopWindow.

Private Declare Function GetDesktopWindow Lib "user32" () As Long

Function StartDoc(DocName As String) As Integer
Dim Scr_hDC As Integer
Scr_hDC = GetDesktopWindow()
StartDoc = ShellExecute(20, "Open", DocName, "", "C:\", SW_SHOWNORMAL)
End Function

It works if I comment it out, but sometimes act strange.
Please help!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform