Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing a class inside a dll
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00759049
Message ID:
00761293
Views:
28
I don't know why, but I have a desire to take:
>>DEFINE CLASS PleaseWork AS PDStandardLib.PDAddressDbHHRecordAdapter
and do this:
PleaseWork=CREATEOBJECT('PDStandardLib.PDAddressDbHHRecordAdapter')
But I don't know why:-)



>>Hi,
>>
>>I have this DLL Standard.dll (that has a tlb file - ConStandard.tlb), I have to instantiate some classes that are defined inside it. I've got and examle in VB.....
>>
>>1st: Go to Project -> References and check "Palm ComStandard 1.0 Type Library" and "Palm ComDirect 1.0 Type Library".
>>
>>the code is something like this
>>
>>Dim pDbQuery As New PDDatabaseQuery
>>Dim pmemo As PDRecordAdapter
>>
>>How can I do the same thing with VFP? I am using VFP 7 and the only thing I could do was make intellisense show the components of ConDirect.dll (PDDirectLib) and ConStandard.dll (PDStanrdardLib).
>>
>>I tryed
>>
>>DEFINE CLASS PleaseWork AS PDStandardLib.PDAddressDbHHRecordAdapter
>>
>>but it did not work .......
>>
>>I am tryng to develop a Palm conduit with VFP, all examples are VB-made, and it is said that any COM compliant language can be used to develop conduits ..... so I'll do it with VFP. ;o)
>>
>>Please, help! I can not find the right way .....
>>
>>Thanks, ;o)
>
>Alonso,
>You may be able to do something using an OleControl and set the appropriate property for the DLL to use. This will work if the class is available in the OLE control list and you can drop it on a form.
>
>If the COM objects has events, you could implement its interface and use EventHandler to bind to these events.
>
>To determine the appropriate method, does the VB example use IMPLEMENTS? Does it use WithEvents?
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform