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 / Why is this not working? (execute executable)

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 12th Jan 2012 19:02
Hi

I'm writing a launcher. This is the code:



According to the help file this should work, but it does not.
I also tried to not to store the handle in the variable, writing just execute executable("debug.exe","","") then the compiler stopped and said that the command could not be understood.

The above code goes thru the compilation process, but nothing happens.

I'm using version 1.0761
and windows7 64 bit. I know that windows7 have diffrent restrictions or ,how I should say it, about how applications are executed then prior windows releases. Could that maybe have something to do with it?
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 12th Jan 2012 20:15 Edited at: 12th Jan 2012 20:40
Once I changed the filename to "notepad.exe" your snippet worked fine for me on my Windows Vista machine.

I'll be on my Windows 7 64bit PC in a couple of hours, I'll try the same thing on that and report back to you.

>Edit<
Forgot to say I'm running DBP v7.7 rc 7 on both these PC's

WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 12th Jan 2012 20:26
Works on Windows 7 32bit.
cyril
18
Years of Service
User Offline
Joined: 6th Aug 2007
Location: 7 miles away from big ben
Posted: 12th Jan 2012 20:27
I am using windows 7 32bit (without SP1) and I was able to compile it.
Are you able to compile anything else in dbpro? because I heard there are conflict issue caused by window7's Service pack 1 when Darkbasic pro programs attempt to run. If you have Service pack 1 installed, you can use the 7.7 beta to correct the problem. If you don't have the service pack then check for blocked programs in windows action center.
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 12th Jan 2012 20:28 Edited at: 12th Jan 2012 20:30
Windows 7 has problems with some examples from the Dark Basic Pro Game Programming Second Edition book. I leave my Win7 computer alone and just use my Vista and XP. If you have another machine running Win32, I would suggest trying that.

EDIT: Of course you could just switch off the UAC (User Account Control) and run the program as an Administrator.

Are you compiling the .DBPRO file? or Only the .DBA file?

I'm Never wrong, I just can't get anything right.
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 12th Jan 2012 20:38
I am compiling the DBPRO file.

I have no other computer to try this on and I have SP 1 for win7 installed, I can compile and run other dbpro applications without problems.
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 12th Jan 2012 21:29
I remember not being able to compile anything at one time. I disabled my antivirus, turned off the uac, and reinstalled dbpro. Everything turned out swell. You should backup all of your own projects before uninstalling and reinstalling dark basic professional. Hope this helps! There are also other things you can try. You can Disable the desktop composition for a start. Are you using the beta version of Dark Basic pro?

I'm Never wrong, I just can't get anything right.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Jan 2012 21:29
http://forum.thegamecreators.com/?m=forum_view&t=159609&b=2&msg=2159408#m2159408

just in case it might help...

Also change those commas to dots... I think that worked for me... I also use STYX sometimes to get file paths but thats just for other stuff...

Hope this helped...

mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 12th Jan 2012 21:32
Hmmm,, that's weird,,, all of the sudden it worked!

I noticed after a while that my whole project files started to act weird, so i deleted all project files. And rewrote the same code in a new project and it worked.

haha, don't you just love computers?

This happened to me a long time ago when I was developing a window based game in borland c++ builder where the whole project files got messed up somehow. Nothing worked, not even standard c++.

I do not know why these problems can occur, bu sometimes they tend to do,,,
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Jan 2012 21:42
Perhaps invalid spacing¿ just my offshot guess

Login to post a reply

Server time is: 2026-07-10 15:51:56
Your offset time is: 2026-07-10 15:51:56