Information générale
Catégorie:
Fonctions Windows API
thank you for the help. I think that can work.
However in order for me to do that I need the name of the object variable. The object reference is passed in directly to the FLL, so I can't run the EVALUATE commmand on it. Is there anyway of doing a reverse _NameTableIndex? ie: given the locator, come back with a null terminated string that represents the name?
My other idea is to write a short function that creates a named reference based on the object... something like this:
void _GetObjectReference(char *tcObjectName, Value toObject, Value toReference)
{
Locator loc;
int retValue;
// Get a reference to the object and name it ourselves...
if (toObject.ev_type == 'O')
{
// Get the Objectname parameter...
loc.l_subs = 0;
loc.l_sub1 = 0;
loc.l_sub2 = 0;
if ((retValue = _NewVar(tcObjectName, &loc, NV_PRIVATE)) < 0)
_Error(-retValue);
}
// increment the object's reference, and set it's value to the newly created value...
_ObjectReference(&toObject);
_Store(&loc, &toObject);
// setup the receiving object structure...
_MemFill(&toReference, 0, sizeof(Value));
toReference = toObject;
}
}
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement