dbTalk Databases Forums  

VFP 9: Scopes DLL Declarations

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 9: Scopes DLL Declarations in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 9: Scopes DLL Declarations - 09-23-2006 , 04:12 AM






Is there any way to have a DLL declaration scoped to a particular
object? The declarations appear to be global. Am I correct in
thinking this?

I would like to know that I can freely CLEAR DLLS on DLLs defined
in a class without having to concern myself with whether those same
DLLs were declared elsewhere and whether I could be pulling the rug
out from another class or code segment.

Am I in luck?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

Reply With Quote
  #2  
Old   
Bernhard Sander
 
Posts: n/a

Default Re: VFP 9: Scopes DLL Declarations - 09-23-2006 , 08:26 AM






Hi Gene,

Quote:
Is there any way to have a DLL declaration scoped to a particular
object? The declarations appear to be global. Am I correct in
thinking this?
a DLL declaration is always global for vfp, there is no scope limitation to an
object or something else.

You could build some DLL declarator object, which registers a DLL for a certain
object. Then, any object, that needs a DLL, uses this DLL declarator for loading
and unloading the DLL. The DLL declarator keeps track, how many objects need a
DLL and really unloads the DLL only, if all these objects, that registered this
DLL, have asked for unloading. It's maybe a nice example for learning oop...

Regards
Bernhard Sander


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.