On Jan 30, 2007, at 3:36 PM, Eric Williams wrote:
I use MsgBox in my encrypted classes to put up messages like, "The
developer of this software has included an unlicensed piece of
software. Please contact them, blah blah blah". I use MsgBox so it
can't be circumvented - for example, by replacing my
LicenseAlertDialog window cass with an intert substitute. I bet I'm
not the only one who does this.
The underlying problem with this is that MsgBox is not in Console
Applications. If all of your classes can only work in GUI
applications, then that's not a problem. However, if your classes can
target console applications, it would be best to put in Print
statements in Console builds instead, or perhaps even a Print and Quit
(-1) statement, depending on your restrictions.
For example:
#if TargetHasGUI
MsgBox "Unlicensed. Quitting."
#else
Print "Unlicensed. Quitting."
Quit -1
#endif
This would handle both situations quite nicely, and allow users to be
able to compile their applications (or simply test them!) when
running in the IDE.
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>