Silverfrost Forums

Welcome to our forums

Error in running expamble in Plato

24 Sep 2013 1:19 #13060

When I compile the example in Plato I get the attached error.

use mswin use common_mod use salf_about implicit none external about_box_cb integer :: i
ms_selects = 0 i=winio@('%ca[Selection using %lb , %ls and %ms]&') i=winio@('%fn[ms sans serif]%ts&',0.8D0) i=winio@('%sy[3d_raised]&') i=winio@('%mi[icon_1]&') i=winio@('%4.1ob&') i=winio@('%mn[&Exit]&','exit')
i=winio@('%mn[&Help[About]]&',about_box_cb) i=winio@('Simple%ff%bg[window]%^lb%nd%cb&',string,7,k,lbox_cb) i=winio@('Drop-down%ff%bg[window]%^ls%cb&',string,7,k,lbox_cb) i=winio@('Scrolling%ff%bg[window]%^10.3ls%cb&',string,7,k,lbox_cb) i=winio@('Multiple selection%ff%bg[window]%^ms%cb&',string,7,ms_selects,mselbox_cb) i=winio@('%ff%nl%bg[window]%40.7cw%ff&',0) i=winio@('%sfNote that the first three boxes are linked together because they share the result variable K') end program listbox

resources

ICON_1 ICON salflogo.ico

Compiling this gave me an error 802.

I have not found anything to tell me how to fix this.

I would appreciate some help with this.

Thank you.

Michael

24 Sep 2013 4:24 #13061

The icon name icon_1 might be case-sensitive. Try making both icon_1 and ICON_1 the same. Otherwise the icon file salflogo.ico needs to be in the local folder or somewhere the resource compiler can see it.

24 Sep 2013 7:16 #13062

I tried changing the case to see if it was case sensitive and did not get any different results.

24 Sep 2013 8:28 #13063

From the command line this compiles just fine. I only seem to have the problem compiling in Plato.

25 Sep 2013 6:47 #13067

Try putting a copy of the icon file in the same folder as the program file. Are you using a Plato project or just compiling the file without a project?

Please login to reply.