Re: I need help debugging an MFC OCX

Tech-Archive recommends: Speed Up your PC by fixing your registry



Most likely (note I don't use MFC myuself) this is part of MFC's
persistence code (IPeristXXX interfaces), e.g. the data is coming
from the persistent representation fo yuor control. Only its container
knows where that is stored (the control doesn't need to know and
shouldn't care).

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"HummingBert" <JoeGoogol@xxxxxxxxx> wrote in message
news:1137691038.185470.245600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am having problems with the following piece of code.
>
> void CFlintCtrl::DoPropExchange(CPropExchange* pPX)
> {
> ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
> COleControl::DoPropExchange(pPX);
>
> PX_Bool(pPX, _T("ReadAhead"), m_bReadAhead, FALSE);
> }
>
>
> This routine is called by the framework and always sets m_bReadAhead to
> TRUE. Correct me if I am wrong, but my understanding of the purpose of
> this code is that it is supposed to deserialize a stream containing the
> property values of the OLE object for the sake of persistence.
>
> Where does this stream come from? If a disk file or a registry entry,
> what would it be called?
>
> The m_bReadAhead property currently defaults to FALSE, but in previous
> builds of the OCX, it used to default to TRUE, do it is being more
> persistent than I would like. When does the value of the property get
> put into persistent storage?
>
> My apologies if the question is either too esoteric or too naive, but I
> am desperate.
>


.



Relevant Pages

  • Re: marshalling length
    ... so don't go overboard ... That's because the stream the caller gives you ... Microsoft MVP, MCSD ... number that I returned by GetMarshalSizeMax, ...
    (microsoft.public.vc.atl)
  • Re: store OLE data away from other data
    ... just make sure it is clear your documents consist of multiple ... stream within the compound document and provide export and ... Microsoft MVP, MCSD ... I have a need to store the current data into one file and the ...
    (microsoft.public.win32.programmer.ole)
  • Re: question about IStorage
    ... Microsoft MVP, MCSD ... used IPersistStream::Save to save the file to the stream. ... It will only save a reference not the files data itself. ... Alexander Nickolov wrote: ...
    (microsoft.public.win32.programmer.ole)
  • Re: streaming audio
    ... I don't have access to either stream, so there isn't much I can do to try ... Chris Lanier ... Microsoft MVP - Digital Media ...
    (microsoft.public.windowsmedia.player)