DOS Window - how to avoid it ?

Blitz3D Forums/Blitz3D Programming/DOS Window - how to avoid it ?

semar(Posted 2005) [#1]
Hi all.

I have an application which needs to compress an audio file.

I use an external program to compress it (gzip.exe), and I execute it from within Blitz (via ExecFile command).

The problem: when the external application runs, it shows for a while a DOS window, which 'disturbs' in some way the feeling of the game.

So I wonder, is there any solution to this ?

- is there any free file compresser which works without showing any flashing window during the process ?

OR

- is there any compress library or API which can be used from within B3D or B+ ?

- is there any way to hide that DOS window that pops up ?

OR

- is there any wav-->ogg file compresser which converts the file automatically, and without showing anything ?

Thanks for your help,
Sergio.


Rob Farley(Posted 2005) [#2]
Ogg is open source, you can write your own.


semar(Posted 2005) [#3]
Thanks Rob, that was a good hint indeed.

:)

It's incredible the amount of useful things which are available in internet !

Sergio.


Damien Sturdy(Posted 2005) [#4]
That, will be difficult. :/


jfk EO-11110(Posted 2005) [#5]
Maybe this will help you:
http://www.rebirthing.co.nz/Runfile.html


John Blackledge(Posted 2005) [#6]
jfk - Runfile looks interesting, but the download links are dead. Do you have a copy?


Tracer(Posted 2005) [#7]
I can write you a DLL to do this if you wish Semar. Shouldn't take more than 3 minutes :)

ah well.. did take 3 minutes:

Get it here! (2.5kb)

Tracer


jfk EO-11110(Posted 2005) [#8]
Well, tracers DLL or this:
http://www.northcode.com/resources/utilities/run.html
while you still should use the Manual from
http://www.rebirthing.co.nz/Runfile.html

I guess you'd need to ExecFile "runfile.exe CMD=mydosApp.exe"


semar(Posted 2005) [#9]
First of all, a bit THANK YOU to your answers, in particular Tracer and jfk EO-11110.

:)

Fact is, before to read your answer, I've solved the whole DOS nasty screen using CreateProcess from within BlitzPlus, and it works like a charm !

Anyway, I *do* find very useful your DLL Tracer, because it may be used also from within Blitz3D which has not CreateProcess command.

Best regards,
Sergio.