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.

DarkBASIC Professional Discussion / No make exe button

Author
Message
Cescano
11
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 3rd Oct 2014 09:29
I dont know for what reason, but seems like the editor i got buying the bonanza pack of dark basic pro (updated 2 october 2008) doesn t have make exe buttons, just save/compile and save/compile/run, which is the point of making an update without the chance of making the final exe?

I had also versions updated 2003 and 2004 and they both had make exe button (both on compile and compile/run).

Basicly the only way to make an exe now is using the old editor as the one i found in the dvd is not able to make any exe, if i do that i can have some problem like bugs not fixed because the editor is old? Why they didnt make the make exe button on the new editor?

There is also another annoying bug on the editor updated october 2008, if you open a file/project, close it, open another and run it, it actually run the OLD project/file, not the new one, ALSO, if there are some mistakes on the code it still run it with the latest exe instead of saying "hey there is an error here!"
Ruwbaen
14
Years of Service
User Offline
Joined: 30th Dec 2011
Location: Cyberspace
Posted: 3rd Oct 2014 11:51
I do not have the bonanza pack but what I do not understand is that you say there is no way to create an executable while compiling is actually the process that results in an executable.

At the other hand, maybe the IDE uses the compiler the wrong way. To give you a possible solution: use another IDE. If I understand your problems correctly, these are all mistakes made by the IDE, not you. For example, the IDE should delete your old executable while trying to compile a new one. I think the developer programmed the IDE in a way that it will run the executable after compilation if it can find it. Mostllikely the result if a compilation if succesfull. But if there is an error and the old executable is still there, it will run that one because the IDE will search for one anyway.

I hope I helped you out a bit with this. If you have interests in picking another IDE, take a look at the Program announcements board.

"Ce n'est pas un bijou normale monsieur Will" - Chaque Dupont in my game Jack Will
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Oct 2014 12:21
DBPro doesn't work like DBC, "Compile" will create an executable file for you every time (ie. your executable is rebuilt each time you press F5 to compile/run). F4 will only do a compile (ie. create the executable) and not run it if you want that.

Quote: "There is also another annoying bug on the editor updated october 2008, if you open a file/project, close it, open another and run it, it actually run the OLD project/file, not the new one, ALSO, if there are some mistakes on the code it still run it with the latest exe instead of saying "hey there is an error here!""

That problem should go away if you change your code, for example just add and then remove a space, the editor will then force a recompile instead of just executing the latest built executable.


"Why do programmers get Halloween and Christmas mixed up?"
Cescano
11
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 3rd Oct 2014 20:50
Rudolpho the problem is that with my editor version there is no exe made, no exe appear in my project folder and the buttons don t even say "Make exe" like old editors, it just has save and compile (f4) and save compile and run (f5) but NO EXE is made and there are no buttons on the Whole editor to make an exe! got it?
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Oct 2014 21:11
As I said the compilation process will always create an executable if successful.
Which editor are you using?
Sometimes the executable will end up in the DarkBASIC Professional\Temp folder by default. You can check the location of your executable by outputting the string returned by the appdir$ function.

If no executable is created the compilation has most likely failed; in this case you should get an error message both as a popup dialog as well as in the editor's output log.

In short you can think of "compile" as "validate source and if it passes, turn it into an executable file". If this is not just a misunderstanding of that word I apologize and can hopefully give you a better explanation as to what might be at fault if you describe the problem you are having more thoroughly.


"Why do programmers get Halloween and Christmas mixed up?"
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 3rd Oct 2014 23:33
If I have understood this correctly I have had same issue after following instructions to install with admin rights, for whatever reason it did not work properly for me on win7 64 but did for win7 32; the compile button is missing and the menu options are there but not usable? If so the solution is to right click the editornew.exe and give it admin rights in the properties. iirc having done this to launch.exe aswell as the editor will result in continuous windows forever opening - use task manager and close the editor program rather than try closing every single window(small ones that usually show updates of changes to contents of compiler/keywords folder) so if you have done this then change Launch.exe back to no admin rights in the same manner. I could be wrong but for the original IDE multiple windows opening wasn`t a problem as the editor does not show changes to compiler/keywords folder. Just be aware of which editor you are using. I don`t have the DGS pack so things may well be very different - If this isnt the same issue I apologize and you can ignore me!

Login to post a reply

Server time is: 2026-07-18 02:20:20
Your offset time is: 2026-07-18 02:20:20