assigning an icon to a FNXBasic EXE file

In this category you can exchange your programming questions and solutions.
Post Reply
GSAC3
Posts: 20
Joined: Wed Jun 27, 2007 8:15 pm

assigning an icon to a FNXBasic EXE file

Post: # 108Post GSAC3
Fri Jul 06, 2007 4:00 pm

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

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

assigning an icon to a FNXBasic EXE file

Post: # 109Post Marco
Fri Jul 06, 2007 9:18 pm

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

GSAC3
Posts: 20
Joined: Wed Jun 27, 2007 8:15 pm

assigning an icon to a FNXBasic EXE file

Post: # 110Post GSAC3
Sat Jul 07, 2007 12:20 am

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



GSAC3
Posts: 20
Joined: Wed Jun 27, 2007 8:15 pm

assigning an icon to a FNXBasic EXE file

Post: # 111Post GSAC3
Sat Jul 07, 2007 12:30 am

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

Post Reply