Page 1 of 1

assigning an icon to a FNXBasic EXE file

Posted: Fri Jul 06, 2007 4:00 pm
by GSAC3
Marco:

How can I assign an icon to a FNXBasic EXE file?

I tried to use APPICON to do this but when I try to run the EXE file, I get the message "RUNTIME ERROR 217".

The icon I am using is 32x32 pixels and resides in the directory referenced in the APPICON command.

I figure I must be doing something wrong, but I don`t know what it is.

Don

assigning an icon to a FNXBasic EXE file

Posted: Fri Jul 06, 2007 9:18 pm
by Marco
Looks you do everthing right, I`ve tried everything but can not recall the problem.
Is it under win98 or is it a selfmade icon?
If the iconfile is not found you get a compiler error you get also get a compiler error if the size is not properly.
Is it sure the appicon command is causing the problem?
The only thing i can think of is that the icon file is not properly.
You can try another icon to be sure.

best regards marco

assigning an icon to a FNXBasic EXE file

Posted: Sat Jul 07, 2007 12:20 am
by GSAC3
Marco:

I am trying to use the APPICON statement in a FNXBasic program that previously compiled and executed OK before the addition of APPICON.

I am also trying to run the program under XP

I will try a different 32bit icon, as you suggested, and see what happens.

Don



assigning an icon to a FNXBasic EXE file

Posted: Sat Jul 07, 2007 12:30 am
by GSAC3
Marco:

I found the problem!

The icon file I was using had its access attribute set as "READ ONLY`"  When I removed this access restriction, every thing is fine.

Don