Re: [BLACKBOX] LaTeX for BlackBox ? - Progress report - 4

From: [at]} <Robert>
Date: Sun, 23 Nov 2008 13:40:29 +0000

----boundary-LibPST-iamunique-372014456_-_-
Content-type: text/plain

Chris - Your email does not seem to have come via Zurich.

Your suggestion does (*not*) work.

But it inspired me to try msdn again. In time, I may even learn how to read the
C syntax.

My latest version, which does work as I wanted, is

PROCEDURE Start (cmd : ARRAY OF CHAR);
   VAR
    res : INTEGER;
    info : WinApi.STARTUPINFOW;
    proc : WinApi.PROCESS_INFORMATION;
   BEGIN
     WinApi.GetStartupInfoW (info);
     info.wShowWindow := WinApi.SW_NORMAL;
     res := WinApi.CreateProcessW (NIL, cmd, NIL, NIL, WinApi.FALSE,
                                 WinApi.CREATE_NO_WINDOW, 0, NIL, info, proc)
   END Start;

And I was just getting used to having the DOS box flash up!

Thanks

Robert.

Chris Burrows wrote:
>> -----Original Message-----
>> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>> Sent: Sunday, 23 November 2008 2:44 AM
>>
>> works very well. However one minor point is that having the
>> Command Window
>> flash up for a fraction of a second is a bit irritating. Does
>> anyone know
>> how to stop this happening?
>>
>
> Hi Robert,
>
> HostDialog.Start is as follows:
>
> PROCEDURE Start* (name: ARRAY OF CHAR);
> VAR res: INTEGER; info: WinApi.STARTUPINFOW; process:
> WinApi.PROCESS_INFORMATION;
> BEGIN
> (* res := WinApi.WinExec(name, WinApi.SW_NORMAL) *)
> WinApi.GetStartupInfoW(info);
> info.wShowWindow := WinApi.SW_NORMAL;
> res := WinApi.CreateProcessW(NIL, name, NIL, NIL, WinApi.FALSE, {}, 0,
> NIL, info, process)
> END Start;
>
>
> Instead of
>
> info.wShowWindow := WinApi.SW_NORMAL;
>
> try
>
> info.wShowWindow := WinApi.SW_HIDE;
>
> As HostDialog.Start appears to be self-contained, if you don't want to mess
> with the system files you can probably just copy the above code into a local
> procedure, make the change there and then call your local version instead.
>
> (If this doesn't appear on the BlackBox mailing list please forward a copy
> to there)
>
> Regards,
> Chris
>
> Armaide: Oberon-07 ARM Development System for Windows
>
> http://www.armaide.com
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG -
http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.9.9/1806 - Release Date: 22/11/2008 18:59
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-372014456_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIENocmlzIC0gWW91ciBlbWFpbCBkb2VzIG5vdCBz
ZWVtIHRvIGhhdmUgY29tZSB2aWEgWnVyaWNoLlxwYXINClxwYXINCllvdXIgc3VnZ2VzdGlvbiBk
b2VzICgqbm90Kikgd29yay5ccGFyDQpccGFyDQpCdXQgaXQgaW5zcGlyZWQgbWUgdG8gdHJ5IG1z
ZG4gYWdhaW4uIEluIHRpbWUsIEkgbWF5IGV2ZW4gbGVhcm4gaG93IHRvIHJlYWQgdGhlIFxwYXIN
CkMgc3ludGF4LlxwYXINClxwYXINCk15IGxhdGVzdCB2ZXJzaW9uLCB3aGljaCBkb2VzIHdvcmsg
YXMgSSB3YW50ZWQsIGlzXHBhcg0KXHBhcg0KUFJPQ0VEVVJFICBTdGFydCAoY21kIDogQVJSQVkg
T0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hYmFz
ZTogMjcwLjkuOS8xODA2IC0gUmVsZWFzZSBEYXRlOiAyMi8xMS8yMDA4IDE4OjU5XHBhcg0KPiBc
cGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdl
IHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNI
fX0ARnJvbQ==
----boundary-LibPST-iamunique-372014456_-_---
Received on Sun Nov 23 2008 - 14:40:29 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:50 UTC