Andreas Bräu Posted December 18, 2006 Posted December 18, 2006 Hallo, i'm working on an application with several modules that some user may not use. is it possible to check whether a certain file is included or not so that i can control the modules compiled into the application? regards Andreas
Uten Posted December 18, 2006 Posted December 18, 2006 (edited) Are we speaking AutoIt application here?If we are then I think the short answer is no. The long answer is maybe, but you have to throw in a custom build script. Could you give a more detailed explanation. Maybe the simplest possible usage sample you can think of?EDIT: no and now just ain't the same. Edited December 18, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
JerryD Posted December 18, 2006 Posted December 18, 2006 Hallo,i'm working on an application with several modules that some user may not use. is it possible to check whether a certain file is included or not so that i can control the modules compiled into the application?regardsAndreasThis should really be a non issue.The main program should #include only files it needs.Any files #included should start with the #include-once directive to prevent duplicate definitions, and #include any files it needs.If you're creating modules with functions, break them up so that like functions (that are likely to be used together) are in the same modules.I was going to suggest using If IsDeclared() to determine whether or not to define a function or veriable, but I suspect the compiler will balk at it, plus I don't really get the point. When compiled, AutoIt code is tiny and I can't imagine that having a few unused functions or variables defined would add much to the size of the final EXE, or time to the execution of the code.Have you benchmarked either issue - size or execution speed - to warrant this?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now