Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
change exe icon? #162084
10/19/07 14:21
10/19/07 14:21
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
what's the easiest way for changing the icon of the compiled exe?
what do i have to do and what tools are necessary?

Re: change exe icon? [Re: ventilator] #162085
10/19/07 14:31
10/19/07 14:31
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
You can change the icon of the acknex.exe with a resource hacker before compiling the exe.

Re: change exe icon? [Re: Lukas] #162086
10/19/07 15:59
10/19/07 15:59
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
I got iconFX (free) to create my icon file.
Then I built acknex.exe in MS Visual Studio (from the sdk_engine folder) while adding my icon file, .ico, as a resource. In MS Visual Studio just add a resource as you would any other file, and select the .ico file.
make sure you add acknex.lib to the libraries path.

Re: change exe icon? [Re: Lukas] #162087
12/21/07 12:13
12/21/07 12:13
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Quote:

You can change the icon of the acknex.exe with a resource hacker before compiling the exe.




This doesn't work for me.

Any ideas?

The thing with Visual Studio is not an option to me.

Last edited by Pappenheimer; 12/21/07 12:14.
Re: change exe icon? [Re: Pappenheimer] #162088
12/21/07 12:26
12/21/07 12:26

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I use ResEdit from TGTSoft to change the icon of acknex.exe.
Works fine for me...

http://www.tgtsoft.com/prod_rb.php

Re: change exe icon? [Re: ] #162089
12/21/07 15:03
12/21/07 15:03
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Thank you for the reply.
Seems to be something different - not related to the icon - which gives me error messages.

Re: change exe icon? [Re: Pappenheimer] #162090
12/21/07 17:13
12/21/07 17:13
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Here is a 5 step tutorial for changing the executables icon.


smile
Re: change exe icon? [Re: D3D] #162091
12/30/07 11:33
12/30/07 11:33
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Here is another way that i find easier as long as windows.h is being used.

// These are for Acknex PureMode
//
#include <acknex.h>
#include <default.c>

//Make sure you are using windows.h
#include <windows.h>

/-------------------------------------------------------------

// This goes in your definition file .h or at top of your main file (where other defines are)
//
// EXTRA Defines
#define IMAGE_ICON 1
#define ICON_SMALL 0
#define ICON_BIG 1
#define LR_SHARED 0x8000
#define LR_LOADFROMFILE 0x0010
#define LR_VGACOLOR 0x0080
#define WM_SETICON 0x0080
#define ICON_FILE 10000
//

/-------------------------------------------------------------

// This goes in your main function - "gsanim.ico" is your icon filename which should be in proj/app folder
//
// Set Window title
SetWindowText(hWnd,"gsANIM Ver 1.00");
// Change Window style
SetWindowLong(hWnd,GWL_STYLE, WS_CAPTION|WS_SYSMENU|WS_OVERLAPPEDWINDOW |WS_CLIPCHILDREN|WS_CLIPSIBLINGS );
// Load my icon
long hIcon = LoadImage(0,"gsanim.ico",IMAGE_ICON,0,0,LR_SHARED|LR_LOADFROMFILE|LR_VGACOLOR);
SendMessage(hWnd,WM_SETICON ,ICON_BIG,hIcon);
// Redraw the window.
SetWindowPos(hWnd,NULL,0,0,0,0,SWP_DRAWFRAME|SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE);

/-------------------------------------------------------------

good luck.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: change exe icon? [Re: pararealist] #162092
12/30/07 14:13
12/30/07 14:13
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
That will only change the icon for the window and not for the executable right?


smile
Re: change exe icon? [Re: D3D] #162093
01/01/08 04:25
01/01/08 04:25
Joined: Nov 2006
Posts: 45
Germany
Tracker Offline
Newbie
Tracker  Offline
Newbie

Joined: Nov 2006
Posts: 45
Germany
I have just written a small standalone program ChangeExeIcon.exe (13 KB) in PureBasic, which is able to change the icon of an existing exe file.

Please take the following into account:
- start ChangeExeIcon and open the exe file at which the icon shall be changed
- the icon must have the same name as the exe file (e.g. test.exe --> test.ico)
- the icon must be in the same directory and must have the extension .ico
- the icon has a maximum size of 32 x 32 pixel and maximum of 256 colors

========================================================================

EDIT:
Sorry, I recognized that ChangeExeIcon doesn't work with published GameStudio exe files.
It changes the icon, but when I start the changed exe file, I get an error "startup failure".
GameStudio Icons have 536 colors, but ChangeExeIcon supports a maximum of 256 colors only.
Maybe this is the reason for the startup failure.
I removed the download link for ChangeExeIcon, because the program doesn't work with published GameStudio levels.

========================================================================

EDIT:

Quote:

You can change the icon of the acknex.exe with a resource hacker before compiling the exe.



That's it!
Published GameStudio levels contain a protection, that nobody is able to change published levels.

I made a copy of the acknex.exe in the GStudio7 folder, copied an own icon into the GStudio7 folder and renamed it to acknex.ico.
Then I started ChangeExeIcon.exe, opened the acknex.exe and changed its icon this way.

After this, I published the level, I recognized that the exe file in the published version has the new icon and I was able to start the level without any problems.

When I pressed Alt-Enter, I wondered, why the icon in the upper left corner of the window is still the A7 icon and not the new icon.

It's possible to change the icon of the exe file with ChangeExeIcon.exe, but I think, it's not the right way to work with GameStudio.

Last edited by Tracker; 01/01/08 23:24.

3DGS A7.85 Com
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1