ICINFO
The ICINFO structure contains compression parameters supplied by a video compression driver. The driver fills or updates the structure when it receives the ICM_GETINFO message.typedef struct {  
  DWORD dwSize;  
  DWORD fccType;  
  DWORD fccHandler;  
  DWORD dwFlags;  
  DWORD dwVersion;  
  DWORD dwVersionICM;  
  WCHAR szName[16];  
  WCHAR szDescription[128];  
  WCHAR szDriver[128];  
} ICINFO;  
 
MembersdwSizeSize, in bytes, of the ICINFO structure.fccTypeFour-character code indicating the type of stream being compressed or decompressed. Specify "VIDC" for video streams.fccHandlerA four-character code identifying a specific compressor.dwFlagsApplicable flags. Zero or more of the following flags can be set:VIDCF_COMPRESSFRAMESDriver is requesting to compress all frames. For information about compressing all frames, see the ICM_COMPRESS_FRAMES_INFO message.VIDCF_CRUNCHDriver supports compressing to a frame size.VIDCF_DRAWDriver supports drawing.VIDCF_FASTTEMPORALCDriver can perform temporal compression and maintains its own copy of the current frame. When compressing a stream of frame data, the driver doesn't need image data from the previous frame.VIDCF_FASTTEMPORALDDriver can perform temporal decompression and maintains its own copy of the current frame. When decompressing a stream of frame data, the driver doesn't need image data from the previous frame.VIDCF_QUALITYDriver supports quality values.VIDCF_TEMPORALDriver supports inter-frame compression.dwVersionVersion number of the driver.dwVersionICMVersion of VCM supported by the driver. This member should be set to ICVERSION.szNameShort version of the compressor name. The name in the null-terminated string should be suitable for use in list boxes.szDescriptionLong version of the compressor name.  szDriverName of the module containing VCM compression driver. Normally, a driver does not need to fill this out. 
假设icinfo是ICINFO的一个实例的指针,看看我对这些成员的赋的初值,其中后三个都报错了,前面的几个也不知道赋的有没有什么问题,哪位大侠指点一下,帮我给这些成员变量重新赋一下值  
  icinfo->dwSize = sizeof(ICINFO);
  icinfo->fccType = 0;
  icinfo->fccHandler = 0;
  icinfo->dwFlags = 0;
  icinfo->dwVersion = 0;
  icinfo->dwVersionICM = ICVERSION;
  icinfo->szName = NULL;
  icinfo->szDriver = NULL;
  icinfo->szDescription = NULL;

解决方案 »

  1.   

    一般来说,windows的结构的初始化应该为:
    memset(&info, 0, sizeof(info));
    info.cz = sizeof(info);
      

  2.   

    这个info和cz指的是什么? 还有我觉得sizeof后面都是跟的变量类型啊
      

  3.   


    ICINFO info;
    memset(&info,0,sizeof(info));
    info.dwSize = sizeof(info)
      

  4.   

    设icinfo是ICINFO的一个实例的指针,看看我对这些成员的赋的初值,其中后三个都报错了,前面的几个也不知道赋的有没有什么问题,哪位大侠指点一下,帮我给这些成员变量重新赋一下值  
    -----------------------
    这个不是给成员赋值有没有问题的事,而是你的icinfo是指针,没有分配空间,就不要谈给结构体中的成员赋值了
      

  5.   

    _tcscpy(icinfo->szName, _T("你好"));icinfo->szName[0] = _T('\0')
    ICINFO info;
    或者
    ICINFO * pinfo = new ICINFO;//如果你用指针,要分配空间的。