Cagliostro
Programmer
Why I can't create a storage? I see there no errors...
OleInitialize(0);//the same error with CoInitialize
HRESULT hr;
IStorage* pStg;
hr=StgCreateDocfile(L"c:\\xxxx.tx",STGM_CREATE,0,&pStg);
if(FAILED(hr))
{
cout<<"failed StgCreateDocfile"<<endl;
}
OleUninitialize(); John Fill
ivfmd@mail.md
OleInitialize(0);//the same error with CoInitialize
HRESULT hr;
IStorage* pStg;
hr=StgCreateDocfile(L"c:\\xxxx.tx",STGM_CREATE,0,&pStg);
if(FAILED(hr))
{
cout<<"failed StgCreateDocfile"<<endl;
}
OleUninitialize(); John Fill
ivfmd@mail.md