Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: terminating execution of exe Pin
Cool Ju5-Dec-05 22:57
Cool Ju5-Dec-05 22:57 
GeneralRe: terminating execution of exe Pin
ThatsAlok5-Dec-05 23:16
ThatsAlok5-Dec-05 23:16 
GeneralRe: terminating execution of exe Pin
Cool Ju5-Dec-05 23:32
Cool Ju5-Dec-05 23:32 
QuestionProblem with windows 98 and MFC Pin
Arrun5-Dec-05 19:55
Arrun5-Dec-05 19:55 
AnswerRe: Problem with windows 98 and MFC Pin
sunit55-Dec-05 21:19
sunit55-Dec-05 21:19 
GeneralRe: Problem with windows 98 and MFC Pin
ThatsAlok5-Dec-05 23:32
ThatsAlok5-Dec-05 23:32 
AnswerRe: Problem with windows 98 and MFC Pin
ThatsAlok6-Dec-05 0:26
ThatsAlok6-Dec-05 0:26 
QuestionReading and Writing mpeg File Summary Information Pin
Sivaji5-Dec-05 19:37
Sivaji5-Dec-05 19:37 
Hi,

I am trying retrieve summary information of the file.
I was using stgOpenStorage API. My code is working only for Word documents and text files.

I need this for mpeg,jpeg & wmv files.

The following is the code i am using.

try
{

hr = StgOpenStorageEx( L"D:\\Photos\\daffs-768.jpg",
STGM_READ|STGM_SHARE_DENY_WRITE ,
STGFMT_ANY,
0, NULL, NULL,
IID_IPropertySetStorage,
reinterpret_cast<void**>(&pPropSetStg) );
if( FAILED(hr) )
throw L"Failed StgOpenStorageEx";

IUnknown *pUnk = NULL;
hr = pPropSetStg->QueryInterface (IID_IUnknown,(void**)&pUnk);

hr = pPropSetStg->Open( FMTID_SummaryInformation, STGM_READ | STGM_SHARE_EXCLUSIVE,
&pPropStg );

if( FAILED(hr) )
throw L"Failed IPropertySetStorage::Open";

// Read the property back and validate it
hr = pPropStg->ReadMultiple( 1, &propspec, &propvarRead );
if( FAILED(hr) )
throw L"Failed IPropertyStorage::ReadMultiple";

if( S_FALSE == hr )
throw L"Property didn't exist after reopening the property set";
else
{
int len = strlen(propvarRead.pszVal);
WCHAR* data = new WCHAR[len];
mbstowcs(data,propvarRead.pszVal,len);
wprintf(data);

delete data;
}

}
catch( const WCHAR *pwszError )
{
wprintf( L"Error: %s (hr=%08x)\n", pwszError, hr );
}

Please help me how to do this.
QuestionSingle Instance Application using Events Pin
opsoft-op5-Dec-05 18:55
opsoft-op5-Dec-05 18:55 
QuestionSynchronisation objects. - When to use what Pin
Shiva Prasad5-Dec-05 18:31
Shiva Prasad5-Dec-05 18:31 
AnswerRe: Synchronisation objects. - When to use what Pin
sunit55-Dec-05 18:57
sunit55-Dec-05 18:57 
GeneralRe: Synchronisation objects. - When to use what Pin
Shiva Prasad5-Dec-05 19:26
Shiva Prasad5-Dec-05 19:26 
AnswerRe: Synchronisation objects. - When to use what Pin
cmk5-Dec-05 20:06
cmk5-Dec-05 20:06 
AnswerRe: Synchronisation objects. - When to use what Pin
Bob Ciora6-Dec-05 1:23
Bob Ciora6-Dec-05 1:23 
QuestionDestkop for Dr Watson popup Pin
Chintoo7235-Dec-05 18:13
Chintoo7235-Dec-05 18:13 
QuestionRe: Destkop for Dr Watson popup [not an answer] Pin
2249175-Dec-05 19:51
2249175-Dec-05 19:51 
Questiondeleting CPropertySheet Pin
mysticlol5-Dec-05 18:10
mysticlol5-Dec-05 18:10 
AnswerRe: deleting CPropertySheet Pin
khan++5-Dec-05 19:46
khan++5-Dec-05 19:46 
QuestionFindWindow() Fails Pin
Gupta Suraj5-Dec-05 18:02
Gupta Suraj5-Dec-05 18:02 
AnswerRe: FindWindow() Fails Pin
QuickDeveloper5-Dec-05 18:14
QuickDeveloper5-Dec-05 18:14 
GeneralRe: FindWindow() Fails Pin
Gupta Suraj5-Dec-05 18:20
Gupta Suraj5-Dec-05 18:20 
QuestionAccess Security Control (ACL) Pin
shadrach_india5-Dec-05 17:56
shadrach_india5-Dec-05 17:56 
GeneralRe: Access Security Control (ACL) Pin
Rajesh R Subramanian5-Dec-05 18:26
professionalRajesh R Subramanian5-Dec-05 18:26 
GeneralRe: Access Security Control (ACL) Pin
vikas amin6-Dec-05 0:24
vikas amin6-Dec-05 0:24 
GeneralRe: Access Security Control (ACL) Pin
sunit56-Dec-05 20:23
sunit56-Dec-05 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.