flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved] command line parameters not being passed ?

Author
Thread Post new topic Reply to topic
machinecoder



Joined: 07 Apr 2013
Posts: 27
machinecoder
For some reason this doesnt work

invoke CreateProcess,application_path,commandline_buffer,0,0,FALSE,NORMAL_PRIORITY_CLASS,0,0,sinfo,pinfo

Has anyone got any idea why commandline_buffer is not being recieved by application, Im testing by using MessageBox to show the command line paramters , they show ok when I drag and drop a file onto the application, but come up blank when I use the createprocess as above

app shows a commandline string when I drag and drop a file onto it, but when I use createprocess the "commandline_buffer" doesnt show in the messagebox, ie blank !!!! ???

got me stumped, thanks in advance for any help !

I did try for an hour to fix it before asking ....


Last edited by machinecoder on 26 Oct 2013, 13:37; edited 1 time in total
Post 26 Oct 2013, 13:00
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
With just that single line you posted we can't tell you what you are doing or what the contents of the various parameters are that you are passing. Perhaps you can post some simplified example code that we can compile and test.
Post 26 Oct 2013, 13:20
View user's profile Send private message Visit poster's website Reply with quote
machinecoder



Joined: 07 Apr 2013
Posts: 27
machinecoder
I solved it after many frustrating attempts...

invoke CreateProcess,0,apppath_and_commandline_buffer,0,0,FALSE,NORMAL_PRIORITY_CLASS,0,0,sinfo,pinfo
Post 26 Oct 2013, 13:37
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
we need a dislike button.
Post 29 Oct 2013, 18:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.