Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Create an Executable

Author
Message
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 19th Dec 2009 13:48
Hi,

I've just built a couple of very small programs and I want to make them into executables. I have done this several times before but this time, I have begun having trouble. In the past, when I have pressed F4 or F5, an executable file of the same name as my dbpro and dba files has been created in the same directory, with the icon I chose. However this time, I have found that only a Temp.exe file is created which does not have my chosen Icon. The problem is not with the icon format as it is a generic present icon which I have used many times before on other 3D Christmas cards I have made in previous years, all of which still work.

I am using the following too lines of code to add the icon and they are copied from the working programs.



I am running Windows 7. The icon is a .ico file and is in the same directory as my dbpro and dba files. Despite having windows mode, the icon does not appear in the top left of the window either. The other programs which have correctly added the icon were made whilst I was still running Windows XP.

Any thoughts on what may be causing the icon not to work would be greatly appreciated.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 19th Dec 2009 20:22
What editor and version are you using? I've been having trouble with the latest Synergy... Instead of using the project name for the exe, it uses Aplication.exe - I have to change it every time.

I haven't tried building one with an included icon, but I could try when I get home tonight.

Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 20th Dec 2009 09:08
I am using 1.074. I have also tried using the CodeSurge IDE. However I must say that a strange things appears to have happened. Having opened and closed my windows explorer and refreshed it numerous times yesterday in the hope that the icon had simply not yet appeared, nothing happened. However I switched off my computer over night and although the exe is still called Temp.exe, it now appears to have the icon!

That said however, the icon still fails to appear in the top left of the window in game.

Any thoughts?
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 20th Dec 2009 15:40 Edited at: 20th Dec 2009 15:41
Under your "Properties" tab in the editor, do you have the path and filename for the icon correctly entered? And do you have the filename correctly entered for the application name?

I just compiled an old program with

set window layout 1,1,1
set window title "Merry Christmas!"

and it made the .exe with the icon I told it to use, and the window title of Merry Christmas! I did this in U74, in EditorNew, in Synergy and in Codesurge, and it worked fine in all cases.

Here is what it looks like in U74...



Attachments

Login to view attachments
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 23rd Dec 2009 12:58
Hi,

I've checked and the path seems to be correct, as does the file name. As I mentioned, the icon has now inexplicably appeared on the executable here it was not before. The only remaining problem is the fact that the icon does not appear on the window's frame.

I don't know but could it be something to do with running windows 7? Don't worry too much about it as now I have the icon on the executable I can make do but if you have any sudden thoughts on what might be happening, please tell me.

Thanks once again for your help.
OrzeL
15
Years of Service
User Offline
Joined: 20th Oct 2009
Location:
Posted: 2nd Jan 2010 02:20
Yeah my codesurge and ide that comes with dark basic pro (synergy i believe) have been giving me trouble too not only with Executables but with saving i save my file and when i open it up again it didn't save and i'm left with the old code. Sometimes it works sometimes not. Today i opened up a project that i worked on yesterday and i know i saved and it was gone i had to retype everything while it was fresh in my head. Its so ridiculous i save my files in text files just in case it doesnt save properly. Don't know how to fix your executable problem but just wanted to point out my codesurge and synergy dont work too well either. I have windows xp for the record.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 2nd Jan 2010 02:59
Quote: " Today i opened up a project that i worked on yesterday and i know i saved and it was gone i had to retype everything while it was fresh in my head. Its so ridiculous i save my files in text files just in case it doesnt save properly. Don't know how to fix your executable problem but just wanted to point out my codesurge and synergy dont work too well either. I have windows xp for the record."

You didt do the good old mistake! only saving the project file and not also the source file?
It sounds like it?
Timbers
14
Years of Service
User Offline
Joined: 28th Jan 2010
Location:
Posted: 28th Jan 2010 22:30
my view does dos not have a display mode in DB pro. I am unable to create an executable

Timothy King

Login to post a reply

Server time is: 2024-11-16 11:13:02
Your offset time is: 2024-11-16 11:13:02