Click here to Skip to main content
15,915,336 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: STL vector of pointers question Pin
Stuart Dootson25-Mar-09 23:34
professionalStuart Dootson25-Mar-09 23:34 
QuestionRe: STL vector of pointers question Pin
«_Superman_»26-Mar-09 2:20
professional«_Superman_»26-Mar-09 2:20 
AnswerRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 3:00
professionalStuart Dootson26-Mar-09 3:00 
GeneralRe: STL vector of pointers question Pin
mjackson1126-Mar-09 7:40
mjackson1126-Mar-09 7:40 
GeneralRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 8:01
professionalStuart Dootson26-Mar-09 8:01 
GeneralRe: STL vector of pointers question Pin
«_Superman_»26-Mar-09 18:27
professional«_Superman_»26-Mar-09 18:27 
GeneralRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 21:20
professionalStuart Dootson26-Mar-09 21:20 
GeneralRe: STL vector of pointers question Pin
«_Superman_»28-Mar-09 18:25
professional«_Superman_»28-Mar-09 18:25 
Questionproblem facing in updationg images dynamically at runutime using IWebBroser2 and IHTMLElement in custome browser Pin
Abhijit A22-Mar-09 21:18
Abhijit A22-Mar-09 21:18 
QuestionRe: problem facing in updationg images dynamically at runutime using IWebBroser2 and IHTMLElement in custome browser Pin
led mike25-Mar-09 5:03
led mike25-Mar-09 5:03 
Questionhow to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
Hemant kulkarni22-Mar-09 17:21
Hemant kulkarni22-Mar-09 17:21 
AnswerRe: how to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
Stuart Dootson22-Mar-09 23:15
professionalStuart Dootson22-Mar-09 23:15 
AnswerRe: how to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
John R. Shaw29-Mar-09 20:16
John R. Shaw29-Mar-09 20:16 
QuestionAccess Denied Error from OpenStream Pin
Ankush12319-Mar-09 4:49
Ankush12319-Mar-09 4:49 
AnswerRe: Access Denied Error from OpenStream Pin
Jonathan Davies19-Mar-09 7:25
Jonathan Davies19-Mar-09 7:25 
GeneralRe: Access Denied Error from OpenStream Pin
Ankush12319-Mar-09 19:22
Ankush12319-Mar-09 19:22 
GeneralRe: Access Denied Error from OpenStream Pin
Ankush12319-Mar-09 20:10
Ankush12319-Mar-09 20:10 
Code of the function where I am getting the error
CComQIPtr<IStorage> ptrStorage;
CStringW strPage;
HRESULT hr = FindStorage(storage,strName,strPage,ptrStorage);
if FAILED(hr)
    return hr;

CComPtr<IStream> ptrMetaStream;
hr = ptrStorage->OpenStream(strPage,0,STGM_READ | STGM_SHARE_EXCLUSIVE,0,&ptrMetaStream);
if FAILED(hr)
    return hr;

GUID clsidPageType;
hr = ptrMetaStream->Read(&clsidPageType,sizeof(clsidPageType),NULL);
if FAILED(hr)
    return hr;

GUID clsidEntityType;
hr = ptrMetaStream->Read(&clsidEntityType,sizeof(clsidEntityType),NULL);
if FAILED(hr)
    return hr;

CComBSTR strDataStreamName;
hr = strDataStreamName.ReadFromStream(ptrMetaStream);
if FAILED(hr)
    return hr;

// Find and load the data stream
CComPtr<IStream> ptrDataStream;
hr = ptrStorage->OpenStream(strDataStreamName,0,STGM_READ | STGM_SHARE_EXCLUSIVE,0,&ptrDataStream);
if FAILED(hr)
    return hr;

CComBSTR strFullName;
hr = strFullName.ReadFromStream(ptrMetaStream);
if FAILED(hr)
    return hr;

CComBSTR strMimeType;
hr = strMimeType.ReadFromStream(ptrMetaStream);
if FAILED(hr)
    return hr;

LONG nCodePage;
hr = ptrMetaStream->Read(&nCodePage,sizeof(nCodePage),NULL);
if FAILED(hr)
    return hr;

CComPtr<IPage> ptrPage;
hr = ptrPage.CoCreateInstance(clsidPageType);
if FAILED(hr)
    return hr;

hr = ptrPage->Load(lcid,ptrMetaStream,ptrDataStream,strFullName,strMimeType,clsidEntityType,nCodePage);
if FAILED(hr)
    return hr;

hr = ptrPage.CopyTo(ppPage);
if FAILED(hr)
    return hr;

GeneralRe: Access Denied Error from OpenStream Pin
Jonathan Davies20-Mar-09 1:53
Jonathan Davies20-Mar-09 1:53 
Questionwindow placement and restoration query Pin
Jonathan Davies18-Mar-09 6:19
Jonathan Davies18-Mar-09 6:19 
AnswerRe: window placement and restoration query Pin
Stuart Dootson19-Mar-09 8:08
professionalStuart Dootson19-Mar-09 8:08 
GeneralRe: window placement and restoration query Pin
Jonathan Davies20-Mar-09 5:24
Jonathan Davies20-Mar-09 5:24 
QuestionObject properties - control embedded in web page Pin
AssemblySoft16-Mar-09 6:13
AssemblySoft16-Mar-09 6:13 
AnswerRe: Object properties - control embedded in web page Pin
«_Superman_»16-Mar-09 18:59
professional«_Superman_»16-Mar-09 18:59 
GeneralRe: Object properties - control embedded in web page Pin
AssemblySoft16-Mar-09 22:10
AssemblySoft16-Mar-09 22:10 
GeneralRe: Object properties - control embedded in web page Pin
«_Superman_»17-Mar-09 1:32
professional«_Superman_»17-Mar-09 1:32 

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.