>>>I want to use the functions / procedures in REgistry.prg
>>>available in samples/classes .
>>>
>>>I nkow how to use the procedures in DLL/VCX.
>>>ie we use
>>>ofox = createobject()
>>>and then use ofxox.method
>>>
>>>Since I have CLass Definition in PRG how to use it.
>>>
>>>awaiting early answer,
>>You use "set procedure to cProcFile".
>
>Thanks Cetin. It is working.
>Should I use the rest the same way
>ie createobject and so on ?
However you like. Since it now knows where the class definition is, it's used. From createobject help definition :
"Visual FoxPro searches for the class or OLE object in the following order:
1. Visual FoxPro base classes.
2. User-defined class definitions in memory in the order they were loaded.
3. Classes in the current program.
4. Classes in .VCX class libraries opened with SET CLASSLIB.
5. Classes in procedure files opened with SET PROCEDURE.
6. Classes in the Visual FoxPro program execution chain.
7. The OLE Registry."
Cetin