LINK (specify CLASS link into project)

Top  Previous  Next

 

LINK( linkfile, [ flag ] )

LINK

Names a file to add to the link list for the current project.

Linkfile

A string constant naming an file (without an extension .OBJ is assumed) to link into the project. Normally, this would be the same as the parameter to the MODULE attribute (which by default is a source file), but may explicitly name a .LIB or .OBJ file.

Flag

A numeric constant, equate, or Project system define which specifies the attribute as active or not. If the flag is zero or omitted, the attribute is not active, just as if it were not present. If the flag is any value other than zero, the attribute is active.

A LINK attribute of a CLASS structure names a linkfile to add to the compiler's link list for the project. LINK is only valid on a CLASS structure.

Example:

OneClass CLASS,MODULE('OneClass'),LINK('OneClass',1)     !Link in OneClass.OBJ

LoadIt     PROCEDURE

ComputeIt  PROCEDURE

        END

 

StandardErrorLogClass CLASS,TYPE,IMPLEMENTS(ErrorLogInterface),|

     MODULE('ABERROR.CLW'),LINK('ABERROR.CLW',_ABCLinkMode_), |

     DLL(_ABCDllMode_)

critSect    &ICriticalSection,PRIVATE

Usage       LONG,PRIVATE

 

Construct   PROCEDURE

Destruct    PROCEDURE

 

Open        PROCEDURE(BYTE Force = False),BYTE,PROC,PROTECTED

Close       PROCEDURE(BYTE Force = False),BYTE,PROC,PROTECTED

                     END

 

See Also:

CLASS

MEMBER

MODULE