Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What As-clause argument for HRESULT?
Message
From
29/10/2001 21:22:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
What As-clause argument for HRESULT?
Miscellaneous
Thread ID:
00574850
Message ID:
00574850
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform