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 / retreive parameters from ShellExecute?

Author
Message
Silverman
19
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 9th Sep 2014 18:58
Hi Everyone,
an external editor(Darkedit) call my "DBClassic.EXE" file(instead the DB compiler). The external editor use /c, /x, /b, or /f parameters.
I would my "DBClassic.EXE" program to retrieve this parameters.
But cl$() not return paramaters(only filename), so i think we should use MICROSOFT API shell32, but how to do this?

DirectX 9.0c (February 2010)/ DBClassic v1.20
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 9th Sep 2014 19:12
This is how you could get the CommandLine in DBPro.



Silverman
19
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 10th Sep 2014 16:04
it works perfectly with DBClassic, thanks!

DirectX 9.0c (February 2010)/ DBClassic v1.20
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Sep 2014 18:59
Good old Kernel32 to the rescue again - nice snippet WickedX, just what I need for a project I'm working on.

I am the one who knocks...
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 11th Sep 2014 01:19
Happy, I could help.

Login to post a reply

Server time is: 2026-07-18 07:31:58
Your offset time is: 2026-07-18 07:31:58