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:
00574888
Vues:
43
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


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform