Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetWindowWord not returning Window Instance....
Message
 
À
28/10/1997 17:43:29
Tony Roberson
Peavey Electronics Corporaiton
Meridian, Mississippi, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00057028
Message ID:
00057139
Vues:
36
>>>>>Does anyone have experience with using the GetWindowWord funtion which is contained in the windows USER32.DLL?
>>>>>
>>>>>Is it normal for this function to return a value of 0?
>>>>
>>>>Tony,
>>>>
>>>>What are you trying to do? Zero indicates an error has occurred. Use GetLastError() to get the value of the error. If you're trying to retrieve information about the window under Win 32, you should use GetWindowLong.
>>>>
>>>>hth,
>>>>
>>>>George
>>>
>>>George,
>>>
>>>Thanks I am getting an error code of 127.....
>>>I am able to get the Window Handle but can't seem to convert it to the Window Instance......
>>>Any Suggestions????
>>>
>>>Thanks,
>>
>>Do you mean the Instance Handle? If so, try GetClassLong(). Pass it the window handle and -16 (GCL_MODULE, I think is the constant definition).
>>
>>hth,
>>
>>George
>
>
>George,
>
>The following is a sample of the code..... I'm still getting error code 127
>
>Declare long GetClassLong in Win32API ;
> long @, ;
> long @
>
>ghInstance = GetClassLong(hwnd, -16)

Tony,

From the error (ERROR_PROC_NOT_FOUND) I think that the problem is probably the result of it not finding the window handle you're passing. This is the same as it was before. So the question becomes, what's the source of the window handle? Once you get that straighten out it should work fine.

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform