Re: Capture console output - edita 0.0.7

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ed Davis wrote:
>size of CONSOLE_SCREEN_BUFFER_INFO is 22

Al Getz wrote:
>The _CONSOLE_SCREEN_BUFFER_INFO struct is 22 bytes long.

Thanks, I wan't sure if the rect was being dword aligned (its not).

>posted by: Al Getz <Xaxo at aol.com>
>
>
>Hi Pete,
>
>Can't get the 'console capture' or whatever it is to work.
>I get error "Cant create process" under XP.
>On second try, get "Console is already captured" or something like that.

Please try replacing approx ten lines at the start of eacons.ew:

function GetLastError()
	return c_func(xGetLastError,{})
end function

integer initC, inUse
		initC=0

procedure Ferror(sequence msg)
	void = messageBox("Error",
	sprintf("%s failed [%d]",{msg,GetLastError()}),0)
	inUse=0
end procedure

Obviously, it will still fail, but maybe give a hint this time.

Thanks,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu