ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
problem with AW_CALLBACK_CITIZEN_ATTRIBUTES (Sdk)
problem with AW_CALLBACK_CITIZEN_ATTRIBUTES // Sdkx@x.com (xelag)Dec 1, 1998, 2:33pm
I installed AW_CALLBACK_CITIZEN_ATTRIBUTES as:
rc := aw_kallback_set(AW_CALLBACK_CITIZEN_ATTRIBUTES, at cbkCitizenAttributes); The callback routine starts so: procedure cbkCitizenAttributes(rc: Integer); When I test rc in this routine, I allways get a constant number (it only varies if I restart the program), never zero. So I can't know whether there is an error or not. For example: If I ask for, say, the valid citnum of COF, I get 1, as expected, and rc = 4376872. If I then ask for the citnum of non-existant HJHJHJHJHJHJHJHJH, I get the previous values again: COF and 1, and rc = 4376872. Is this again a Delphi bug, a XelaG lack-of-knowledge, or am I missing something important? <whisper> I WON'T PUBLISH ALL MY TESTS HERE THIS TIME..... NB: kallback is spelled so on purpose. I use Canopus' akAWAPI. XelaG canopusDec 11, 1998, 5:12am
I ran the Delphi version of Sample 2, as given in the thread for 10/13/98,
except that the callback for aw_query now reports out the value of rc. Just as XelaG states, the value is a large integer, 4364400, and not a reason code. What does this number represent? [View Quote] > I installed AW_CALLBACK_CITIZEN_ATTRIBUTES as: > rc := aw_kallback_set(AW_CALLBACK_CITIZEN_ATTRIBUTES, > at cbkCitizenAttributes); > > The callback routine starts so: > procedure cbkCitizenAttributes(rc: Integer); > > When I test rc in this routine, I allways get a constant number (it > only varies if I restart the program), never zero. So I can't know > whether there is an error or not. For example: If I ask for, say, the > valid citnum of COF, I get 1, as expected, and rc = 4376872. If I then > ask for the citnum of non-existant HJHJHJHJHJHJHJHJH, I get the > previous values again: COF and 1, and rc = 4376872. > > Is this again a Delphi bug, a XelaG lack-of-knowledge, or am I missing > something important? > > <whisper> I WON'T PUBLISH ALL MY TESTS HERE THIS TIME..... > > NB: kallback is spelled so on purpose. I use Canopus' akAWAPI. > > XelaG |