Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IMPLEMENTS Statement
Message
From
25/02/2004 20:11:58
 
 
To
25/02/2004 17:47:56
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00880818
Message ID:
00880964
Views:
34
Al,

I don't see where Calvin's code is doing any tricky runtime stuff (other than compiling the dll's). The dll names are hard-coded. I'm not sure what you're equating here. Seems like apples and oranges.

Calvin's code does what you want to change - IMPLEMENTS _SomeEvents in "c:\some.dll".

Maybe I'm misunderstanding what you're trying to do?

Alan

>>I would like to change the IMPLEMENTS statemany so that it gets
>>it's DLL path from a function:
>>
>>I want to change:
>>IMPLEMENTS _SomeEvents IN "c:\some.dll"

>>
>>What exactly are you trying to accomplish here? AFAIK, what you are trying to do is not possible because the IMPLEMENTS keyword is part of the DEFINE CLASS statement. This is from the VFP help file:
>>
>>
>>IMPLEMENTS InterfaceName
>>Specifies that this class definition inherits the interface (class definition) of another COM component. One class can include several IMPLEMENTS statements.
>>DEFINE CLASS myClass AS custom olepublic
>>   IMPLEMENTS Publisher IN "mybookstore.dll"
>>   PROCEDURE Publisher_ShowPrice(cGetID AS Long) AS Short
>>   ENDPROC
>>ENDDEFINE
>>
>>
>>Now, it seems to me, that because this defines an interface that your class inherits, you cannot turn this into a runtime activity any more than you could change the parent class of a subclass on the fly at runtime < s >.
>
>That was my understanding, too, but - coincidentally - I've been going over some example code from Calvin and it looks like he's doing something tricky with IMPLEMENTS, but I can't figure it out: How does Calvin's code work? Thread #880866 Message #880866
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform