Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing UserDefined Structures ByVal in VB
Message
De
25/01/1999 16:17:15
 
 
À
25/01/1999 16:10:40
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00179991
Message ID:
00179998
Vues:
21
Rob ---

No insult taken :-)

You may want to post this at one of the DevX newsgroups....more into at www.devx.com --- they're the big VB people.

>I posted this message to the VB group but ,as there is a lot of crossover , I'm posting it hear as well. My apologies in advance to whom I may offend ..
>
>I'm trying to use the ChildWindowFromPointEX function which is defined as :
>
>Public Declare Function ChildWindowFromPointEx Lib "user32" (ByVal hWnd As Long, ByVal pt As POINT, ByVal un As Long) As Long
>
>I have declared the POINT strucure as follows :
>Public Type POINT
> x As Long
> y As Long
>End Type
>
>I can pass this POINT structure by reference (to other functions) without any trouble but I get compile errors when I try to pass it byVal. I tried declaring the variable ByRef but then I get a runtime "Bad DLL calling convention error"
>
>Any ideas ??
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform