Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What As-clause argument for HRESULT?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00574850
Message ID:
00574930
Vues:
19
Thanks Andrew!


>Hi Jim,
>
>HRESULT is generally an AS INTEGER in fox, and 0 is generally a success. Other (non-zero) codes indicate errors.
>
>HTH
>
>Andrew
>
>>I am going to revise the COM+ Events samples to test the actual operation of return codes from various simultaneous SUBSCRIBERS. I intend to revise the Event class itself to indicate that a return value is expected, then return with a value from the SUBSCRIBERs.
>>I will revise the existing subscriber and add a near-duplicate of it, amending them both to sometimes return 'failed' under specific circumstances. It will be simple and one may fail or the other may fail or both may fail. When they fail I will return HRESULT of/for failed, otherwise I will return HRESULT of successful.
>>
>>Problem is, I can't figure out what to code as the function return type for HRESULT or what to actually return. For the return I'm inclined to return 0 for successful and a negative like -1 for failed.
>>
>>Can someone advise what I should code as both the right side of the "AS" clause for the function return type and the value (or whatever) to put into the actual RETURNs of the SUBSCRIBERS for SUCCESS and FAILED?
>>
>>Thanks
>>Jim Nelson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform