摘要: 一、string转为ansistring1、直接赋值 (有警告)2、ansistring()类型强制转换。(无警告)二、ansistring 转为string1、直接赋值 (有警告)2、string()类型强制转换。(无警告)三、string 转为Tbytes1、bytes:= bytesof(str) 已转为ansi编码2、bytes:= widebytesof(str) UNICODE 编码四、ansistring 转为Tbytes1、bytes:= bytesof(str) ansi编码2、bytes:= widebytesof(string(str)) UNICODE 编码五、Tbyt 阅读全文
posted @ 2013-09-11 15:06 Max Woods 阅读(6369) 评论(0) 推荐(0) 编辑
摘要: longgetVideoLength(char*fileName){MCI_OPEN_PARMSmciOpenParms;MCI_STATUS_PARMSmciStatusParms;DWORDFlags;DWORDDeviceID;mciOpenParms.wDeviceID=NULL;mciOpenParms.lpstrElementName=fileName;Flags=mciSendCommand(NULL,MCI_OPEN,MCI_OPEN_ELEMENT,(DWORD)(LPVOID)&mciOpenParms);if(!Flags){Flags=NULL;DeviceID 阅读全文
posted @ 2013-09-11 10:17 Max Woods 阅读(557) 评论(0) 推荐(0) 编辑