Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What As-clause argument for HRESULT?
Message
De
29/10/2001 21:22:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
What As-clause argument for HRESULT?
Divers
Thread ID:
00574850
Message ID:
00574850
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform