Detecting When an Application Is Wrapped
Because there are minor differences in the behavior of unwrapped and wrapped applications, you need to be able to detect whether your application is wrapped or not. TclPro Wrapper automatically creates the variable tcl_platform(isWrapped) when it wraps your application, so your application simply needs to test for the existence of this variable to determine whether or not it is wrapped. The following code fragment demonstrates how to use tcl_platform(isWrapped):
if {[info exists tcl_platform(isWrapped)]} {
# Application is wrapped
} else {
# Application is not wrapped
}
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |