Hello,
First, I created a storage file using StgCreateDocfile() then added some files in it. Then i tried to open this storage file using
hr = StgOpenStorageEx(L"E:\\Storage.stg",STGM_READ|STGM_SHARE_DENY_WRITE,STGFMT_DOCFILE,0, NULL, 0,IID_IStorage,(void**)&pStorage);
which worked fine when i did it win32 console application.
But when i tried it add the same code in Windows form application project, adding a c++ class to project and then my code to that class, it generate a runtime error
1>Recovery.obj : error LNK2020: unresolved token (0A000017) IID_IStorage
1>Recovery.obj : error LNK2001: unresolved external symbol IID_IStorage
whats the problem with IID_IStorage in newly created class.
Do i need to do something with Linker properties in project setting?