int ConvertMResToWRes( WResFileID infile, WResFileID outfile ) /************************************************************/ { WResDir outdir; int error; outdir = WResInitDir(); if (WResDirInitError( outdir )) { return( TRUE ); } error = ConvertMResources( infile, outfile, outdir ); if (!error) { error = WResWriteDir( outfile, outdir ); } WResFreeDir( outdir ); return( error ); } /* ConvertMResToWres */
bool ConvertMResToWRes( FILE *in_fp, FILE *out_fp ) /*************************************************/ { WResDir outdir; bool error; outdir = WResInitDir(); if( WResDirInitError( outdir ) ) { return( true ); } error = ConvertMResources( in_fp, out_fp, outdir ); if( !error ) { error = WResWriteDir( out_fp, outdir ); } WResFreeDir( outdir ); return( error ); } /* ConvertMResToWres */