StgCreateStorageEx on Network Drive ??

D

dan

I am trying to create a Structured Storage file on a network shared
drive. Everything works just find on a local drive, but I can not get
my code to work on a network drive.

My compound structured storage fails with the message
STG_E_PATHNOTFOUND error code.

I am sure the path exists and I can create other files in this network
location.

Here is my call from C++:

CComPtr<IStorage>pStg;
hr = StgCreateStorageEx( StrTemp,
STGM_CREATE|STGM_READWRITE|
STGM_SHARE_EXCLUSIVE,
STGFMT_DOCFILE,
0,
NULL,
NULL,
IID_IStorage,
reinterpret_cast<void**>
(&pStg));

I have tried a simlar call from C# ande I get the same error.

Does anyone know what I am doing wrong?

Should it be possible to use StgCreateStorageEx on Network drives?

Thanks,

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top