home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / (Utilities) / GrabDrivers / AddResourceToFile.c next >
Encoding:
C/C++ Source or Header  |  1995-07-26  |  1.6 KB  |  4 lines  |  [TEXT/CWIE]

  1. □□AddResourceToFile.c□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□TEXTCWIE□□□□□□□□□□□□□é□□□址;ョォャ;ョォ□□□□□□□□□□□□□□□□□□□□□□□=ùヨ□#include "VideoToolbox.h"//#include <Errors.h>//#include <Files.h>//#include <Resources.h>void AddResourceToFile(unsigned char *filename,unsigned char *name,ResType type,int id,Handle handle);void AddResourceToFile(unsigned char *filename,unsigned char *name,ResType type,int id,Handle handle){    short RefNo;    int i;    FInfo outFileInfo;    if(handle==NULL)return;    CreateResFile(filename);    GetFInfo(filename,0,&outFileInfo);    outFileInfo.fdType = 'rsrc';    // resource    outFileInfo.fdCreator = 'RSED';    // ResEdit    SetFInfo(filename,0,&outFileInfo);    RefNo = OpenResFile(filename);    if(RefNo == -1)PrintfExit("Can't create file!¥007¥n");    AddResource(handle,type,id,name);    i=ResError();    if(i != 0) printf("AddResource error %d¥007, ",i);    if(i == resNotFound) printf("resource not found.¥n");    if(i == resFNotFound) printf("resource file not found.¥n");    if(i == addResFailed) printf("add resource failed.¥n");    if(i == rmvResFailed) printf("remove resource failed.¥n");    CloseResFile(RefNo);}□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□T□□T□□F□□□’    TimeVideo□□□APPLTiVi!□□□@□AddResourceToFile.c□□□TEXTCWIE□TEXTCWIE□□□□□□□□□□□□□□□□□□□□□□□ァm
  2. ウ□□□é□□□š□□□□□□□□□□□’□TimeVideo results0r□□□TEXTttxt□□□□□\□□□aŽ□□□)p□L□□□□□□|□&ェ^:ðェ^;^□□□□□□□□□□□□□□□□□□□’□ュ □□□□□□□□□ュŸ□□□□□□□□□□□□H⇥Monaco□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□V␤□ワ□\V␤□ワ□\ャ;vハ□□&□□.□□□□□□□□□□□□□□□□□□□□□T□□T□□F□‰/è□ミ□□□□F□□MPSR□□□□MWBB□□□□□í……□□□□□□□□□ð……□□L□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□