Adding icon to application?
Adding icon to application?
I know in the compiler options there is a 'use icon' thing but this does not use the icon unless the icon to be used is in the same folder as the application. So how do I encode the icon into the application so the application has an icon without having to put the icon in the same folder?
The world and human nature was screwed up before I was born. It's not my fault and I'm just stuck with trying to deal with the mess left behind, so don't blame me.
Re: Adding icon to application?
Click the browse button next to that and browse to the icon. 

Re: Adding icon to application?
that doesn't work like I want. It doesn't become part of the application, if the icon file is removed or moved the application no longer has an icon representing it.
The world and human nature was screwed up before I was born. It's not my fault and I'm just stuck with trying to deal with the mess left behind, so don't blame me.
Re: Adding icon to application?
You misunderstood something
If you compile to executable, the icon will be inserted as resource in you exe. You can move the exe without
loosing the icon!
If you compile to test with debugger, the icon have available in the path you have used.
Sorry for my bad english, Thomas

If you compile to executable, the icon will be inserted as resource in you exe. You can move the exe without
loosing the icon!
If you compile to test with debugger, the icon have available in the path you have used.
Sorry for my bad english, Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Adding icon to application?
that's what I mean I guess, mine doesn't do that. When I compile the app the icon never shows up as the icon for the application. It will show as the icon for the app if the icon file is in the same folder as the compiled app but once the icon file is removed the app shows no icon. This is not running in the debugger testing but with an actual compiled app where the icon file has been selected for use in the compiler options.
Its really weird, permissions are good (all admin), the app compiles fine and works fine, etc...
So whats the trick or, based upon what was posted by you and Dude, do I have a bug or other issue?
Its really weird, permissions are good (all admin), the app compiles fine and works fine, etc...
So whats the trick or, based upon what was posted by you and Dude, do I have a bug or other issue?
The world and human nature was screwed up before I was born. It's not my fault and I'm just stuck with trying to deal with the mess left behind, so don't blame me.
Re: Adding icon to application?
I just did a test to make sure nothing got broken in the recent 5.51 update.
I set the "Use icon" setting for my app to "C:\Users\Limited\Desktop\App.ico" to point to an icon file on my desktop. I then compiled my app (located on my D: drive) and the exe built on my D: drive correctly shows the icon from my C: desktop. Then I deleted the icon from my C: desktop, but the exe on the D: drive still shows the icon, as expected.
Not sure why it's not working for you.
Try it with your antivirus disabled, just to be sure there's no interference.
I set the "Use icon" setting for my app to "C:\Users\Limited\Desktop\App.ico" to point to an icon file on my desktop. I then compiled my app (located on my D: drive) and the exe built on my D: drive correctly shows the icon from my C: desktop. Then I deleted the icon from my C: desktop, but the exe on the D: drive still shows the icon, as expected.
Not sure why it's not working for you.

Re: Adding icon to application?
Ok, located the issue, kind of. I uninstalled Purebasic then re-installed it and issue is gone.
The world and human nature was screwed up before I was born. It's not my fault and I'm just stuck with trying to deal with the mess left behind, so don't blame me.