[vorbis-dev] win32sdk build environment

Beni Cherniavksy cben at techunix.technion.ac.il
Thu Oct 18 10:54:48 PDT 2001



On Thu, 18 Oct 2001, Chris Wolf wrote:

> Mattijis,
>
> Your exec program is outstanding!   It eliminates the need for "sleep", and thus
> potential race conditions, etc.
>
Doesn't "start /w" do the same?

> On 10/18/2001 at 5:19 PM Matthijs Laan wrote:
>
> >On 18 Oct 2001, you wrote in internal.mail.vorbis-dev:
> >
> >>
> >> On 10/17/2001 at 9:46 PM Jack Moffitt wrote:
> >>
> >>>>> "Sleep" doesn't
> >>>>> exist on my system either (Clean Win2000sp2/msvc6sp5pp install).
> >> I could provide a 5 line C program which implements sleep, and is built
> >> as the first step of the build process.
> >
> >#include <windows.h>
> >#include <winbase.h>
> >#include <stdio.h>
> >#include <string.h>
> >
> >int main(int argc, char **argv){
> >        STARTUPINFO si;
> >        PROCESS_INFORMATION pi;
> >
> >#define BUF_SIZE 1000
> >
> >        char cmdline[BUF_SIZE+1] = "";
> >        int i, c=0;
> >
> >        if(argc==1){
> >                printf("Usage: execandwait commands\n");
> >                exit(1);
> >        }
> >
> >        for(i=1;i<argc;i++){
> >                if(strlen(argv[i])>(size_t)(BUF_SIZE-c)){
> >                        printf("Command line too long\n");
> >                        exit(1);
> >                }
> >
> >                strcat(cmdline, argv[i]);
> >                strcat(cmdline, " ");
> >                c+=strlen(argv[i]);
> >        }
> >
> >        memset(&si, 0, sizeof(si));
> >        si.cb = sizeof(si);
> >
> >        if(!CreateProcess(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL,
> >&si, &pi)){
> >                printf("CreateProcess failed\n");
> >                exit(1);
> >        }
> >
> >        WaitForSingleObject(pi.hProcess, INFINITE);
> >
> >        return 0;
> >}
> >
> >Matthijs
> >
> >--- >8 ----
> >List archives:  http://www.xiph.org/archives/
> >Ogg project homepage: http://www.xiph.org/ogg/
> >To unsubscribe from this list, send a message to
> >'vorbis-dev-request at xiph.org'
> >containing only the word 'unsubscribe' in the body.  No subject is needed.
> >Unsubscribe messages sent to the list will be ignored/filtered.
>
>
>
>
> --- >8 ----
> List archives:  http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>


-- 
Beni Cherniavsky <cben at tx.technion.ac.il>
                 (also scben at t2 in Technion)

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list