flat assembler
Message board for the users of flat assembler.

Index > Windows > How does fasm IDE get compiler result ?

Author
Thread Post new topic Reply to topic
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo
I would like to know how those win32 processes get the output from 32/16 bits console programs, just like fasm IDE does with fasm console compiler.
Post 09 Nov 2006, 13:15
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
FASMW and Fresh both use tweaked version of FASM.

But to do this, you just need to redirect stdout to yourself.
Post 09 Nov 2006, 13:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo
thankyou vid,

but how can stdout point out 2 processes at the same time ? Was it defined in console program or fasm IDE ?
Post 09 Nov 2006, 14:08
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you must create "pipe" and run FASM from your process. not really sure how, look for some SetStdHandle and CreatePipe etc...
Post 09 Nov 2006, 15:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Filter



Joined: 08 Oct 2006
Posts: 67
Filter
What would be really nice is if someone turned FASM into a dll that's callable from other languages.

I say someone because I'm not that good with assembler to do such a thing. This might be something I toy around with but it's probably not going to get anywhere.
Post 10 Nov 2006, 02:08
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7756
Location: Kraków, Poland
Tomasz Grysztar
Before FASMW there was an IDE for fasm called Assembly Workplace, which used external FASM through the pipe. However it seems I have lost its sources... Also internet archive doesn't have them... Too bad.
Post 10 Nov 2006, 08:33
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1607
Location: Ukraine
shoorick
here function used in FASM Add-In for WinAsm Studio. you can update it for your purposes.


Description:
Download
Filename: redirect.inc
Filesize: 5.11 KB
Downloaded: 61 Time(s)


_________________
UNICODE forever!
Post 10 Nov 2006, 10:17
View user's profile Send private message Visit poster's website 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.