I am attempting to write a C(Microsoft Visual C++ 5.0) routine that uses the VFP API to get an object
reference to an object whose name is known (I assign it to public var 'goMain').
It looked like I could use:
nti = _NameTableIndex("goMain\0"),
Validate the nti with _FindVar( nti, -1, &loc ) ,
and load the actual ref (a Value structure as required) with _Load(&loc, &ObjRef) where ObjRef would
now hold needed ref
Unfortunately:
_GetObjectProperty(&val, &ObjRef, "CheckProp") returns 0, indicating that the property was found,
but:
the val Value structure remains empty, and the ObjRef structure turns out to have ev_type as a negative
number, etc.
Obviously something has gone wrong.
I have seen code(AddProp.cpp) where an object ref is passed in and used for _SetObjectProperty,
but nothing that extracts the object ref as I am attempting.
Any help at all would be greatly appreciated.
Ned
Reality is.