Author Topic: QE Run Program  (Read 7273 times)

sinsi

  • Guest
QE Run Program
« on: January 16, 2018, 05:31:54 PM »
How does QE run the program? I see in menus.ini the command, but does it use CreateProcess or ShellExecute?
If I try to run an elevated program it just fails, no error or anything, which sounds like CreateProcess, whereas ShellExecute will show the elevation dialog.

felipe

  • Member
  • *****
  • Posts: 1381
Re: QE Run Program
« Reply #1 on: January 17, 2018, 05:07:01 AM »
Maybe it's using an old trick and executing the program through a cmd command? :idea:
I have tried winexec in win 8.1 and works just fine.  :bgrin:

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: QE Run Program
« Reply #2 on: April 21, 2018, 03:40:53 PM »
Why doesn't the editor have a "compile and Run" feature, to test what is written so far?

Other Ides have that functionality. Its a simple matter afaik to compile a temp file then execute it programatically .. then delete it when done.

What I had in mind is a one button operation.


Russell

Siekmanski

  • Member
  • *****
  • Posts: 2698
Re: QE Run Program
« Reply #3 on: April 21, 2018, 03:50:06 PM »
Because there is nothing to compile.....  :biggrin:
Creative coders use backward thinking techniques as a strategy.

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: QE Run Program
« Reply #4 on: April 21, 2018, 04:04:06 PM »
Because there is nothing to compile.....  :biggrin:


okay, assebmble link then run...   :P

thats what I meant.


Russell





Siekmanski

  • Member
  • *****
  • Posts: 2698
Re: QE Run Program
« Reply #5 on: April 21, 2018, 04:26:00 PM »
Welcome to the forum.  :t
Creative coders use backward thinking techniques as a strategy.

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: QE Run Program
« Reply #6 on: April 21, 2018, 04:40:55 PM »
Welcome to the forum.  :t

Thanks man!


Russell





hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: QE Run Program
« Reply #7 on: April 21, 2018, 05:24:00 PM »
Russell,

Its done that way so you can have a look at the assemble results, assemble and link builds the exe/dll, then see if it runs IF the build works.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13872
  • Assembly is fun ;-)
    • MasmBasic
Re: QE Run Program
« Reply #8 on: April 21, 2018, 05:33:43 PM »
RichMasm has that functionality - just hit F6, and the current source text gets assembled (even if it's not saved yet). It also autodetects if your application is subsystem console or Windows, and adds resources if [mysource].rc is present etc etc.

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: QE Run Program
« Reply #9 on: April 21, 2018, 05:43:38 PM »
RichMasm has that functionality...

Thanks for the :spam: but no thank you. We were discussing the functons of QE, and not looking for a replacement. Have a good day, sir.   :eusa_naughty:

Russell

jj2007

  • Member
  • *****
  • Posts: 13872
  • Assembly is fun ;-)
    • MasmBasic
Re: QE Run Program
« Reply #10 on: April 21, 2018, 05:44:46 PM »
Congrats, as a new member you have an excellent start :t

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: QE Run Program
« Reply #11 on: April 21, 2018, 05:56:25 PM »
Congrats, as a new member you have an excellent start :t

Yeah, I get that a lot. Congrats go to you Jochen, MasmBasic and RichMasm have come a long way, and you seem to have a loyal following. But you have to consider that not all will be enamored by it. Just a matter of personal taste.


Russell   8)

felipe

  • Member
  • *****
  • Posts: 1381
Re: QE Run Program
« Reply #12 on: April 22, 2018, 10:30:31 AM »
Hey russell, what's your experience as programmer? Why you want assembly?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: QE Run Program
« Reply #13 on: April 22, 2018, 02:31:14 PM »
Sinsi,

Normal RUN program is "WinExec()", I like it for its ease of use.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: