` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Template extension to determine compile target (EXE/DLL/LIB)
1998-09-09 -- Roberto Artigas Jr.
 
Based on a suggestion from Jeff Slarve: Heaveno - Here is what I finally used to compile certain parts of code depending whether it is a DLL or EXE. You will need to add this code snipit to one of your favorite templates. Thank you to those who helped. Enjoy! #!==================================================================== #!==================================================================== #!==================================================================== #EXTENSION(CompileOptions, 'Setup Application Compile Options'),APPLICATION #!==================================================================== #IF (%ProgramExtension='DLL') _IsDLL_ EQUATE(1) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(0) #ELSIF (%ProgramExtension='EXE') _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(1) _IsLIB_ EQUATE(0) #ELSIF (%ProgramExtension='LIB') _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(1) #ELSE _IsDLL_ EQUATE(0) _IsEXE_ EQUATE(0) _IsLIB_ EQUATE(0) #ENDIF #!==================================================================== #! This can then be used to set a variable which, in turn, is used to conditionally include or exclude other code.


Today is November 23, 2024, 2:24 am
This article has been viewed 35302 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: