It would be nice if FireFly warned you if an & exists in the version information.
Error:
Adding and & to the description in the file resource causes an error with the following results:
Running in FF with compile and run F5 the application doesn't seem to run. No message box.
executing the compiled exe from windows explorer window presents the message "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the issue."
Hi Brian,
I updated the code to test for a variety of "bad characters". You will get an error message if any of these characters are in your version fields:
*^/\+=<>!~`@#$%&():;,.[]{}| and double quote
I can't seem to find a definitive list of characters that need to be excluded.... anyone else here know of a list?
Backslash needs to be available to include copyright symbols and such. Last I remember talking about resources was in http://www.planetsquires.com/protect/forum/index.php?topic=2252 but the link there is mostly for naming the values. You pretty much block every symbol in what you have. I'd almost filter in reverse and allow alphanumeric, space, period, comma, !, ?, and backslash unless they cause issues. There may be others in the list that don't make problems too. As well as other symbols on foreign keyboards that could cause problems.
I'll play around with each of the symbols and see which ones cause the problem and which ones do not. Eventually, we'll come up with a more or less complete list of unacceptable characters.
Looks like the ampersand and double quotes are the two offending characters that I need to tets for.
Sounds good to me. I usually use \251 for Copyright symbol...saw it in one of the forum threads some time back. Not sure what charset that is though as most use 169 and either seem to work. It would be cool for some buttons to insert common symbol codes on that screen too.
I am not sure that I understand the issue here with the "&" character.
As a test, I used Tom & Jerry in the Company Name field
and
Copyright © 2010, Tom & Jerry in the Copyrights field.
Both compiled and run okay. Is this the same or different from the issue?
I will need the "&" and "©" in the same fields in my actual work.
Hi Cho,
I did some more testing and there are two fields that do not like the & or double quotes:
File Description
Product Name
The other fields seem to compile and run okay with those characters embedded. Weird. I'll have to modify the FF3 code again.
Thanks, Paul.
I can see the quotes possibly causing issues in any field. The & is interesting though. File Desc says it may be presented in a Listbox, so maybe it is filtered on what is allowed.