摘要:
创建个MFC的简单功能来调用以下接口void testWrite(){ // TODO: Add your control notification handler code here const unsigned short *FILENAME = L"c:\\test.stg"; DWORD dwMode=STGM_WRITE|STGM_CREATE|STGM_SHARE_EXCLUSIVE; // 只写|如果文件存在则替换,不存在则创建|独占 IStorage *pStgRoot,*pStgSub; IStream *pStream; pStgRoot=NULL; / 阅读全文