Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SMTP server Pin
Vasudevan Deepak Kumar25-Nov-02 0:53
Vasudevan Deepak Kumar25-Nov-02 0:53 
GeneralRe: SMTP server Pin
viliam25-Nov-02 1:01
viliam25-Nov-02 1:01 
GeneralRe: SMTP server Pin
Daniel Turini25-Nov-02 1:16
Daniel Turini25-Nov-02 1:16 
GeneralRe: SMTP server Pin
Vasudevan Deepak Kumar25-Nov-02 1:24
Vasudevan Deepak Kumar25-Nov-02 1:24 
GeneralADO conn.Open and L macro Pin
devvvy25-Nov-02 0:00
devvvy25-Nov-02 0:00 
GeneralRe: ADO conn.Open and L macro Pin
Christian Graus25-Nov-02 1:28
protectorChristian Graus25-Nov-02 1:28 
Generalactivex property initialisation Pin
Debs24-Nov-02 23:58
Debs24-Nov-02 23:58 
GeneralRe: activex property initialisation Pin
Heath Stewart25-Nov-02 2:38
protectorHeath Stewart25-Nov-02 2:38 
You'll want to look at implementing IPersistStream or IPersistStreamInit (the latter allows you to initialize a persistent stream when one does not already exist). The CFile* pPersist is a stream that actually gets loaded with IPersistStream::Load(). If you look at MSDN for documentation about this interface, I'm sure you'll find everything start to fall into place.

As a side note, this is a basic component of ActiveX controls and how containers (like Word, Excel, the ActiveX Control Test Container, etc.) work. When those documents are saved, the application creates an IStream which is passes as a pointer to all its child controls' IPersistStream::Save methods. The child controls (OLE at a minimum, but can be ActiveX) save their information to this IStream* while the application calls IPersist::GetClassID() to associate the control's CLSID with that particular section of the finished IStream. This is all part of the COM persistence model. The container application actually implements IPersistStorage itself, so that it can load a file and create an IStream from it, or vice-versa to save it.

"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
QuestionOne resource in more than one project? Pin
Anonymous24-Nov-02 22:38
Anonymous24-Nov-02 22:38 
AnswerRe: One resource in more than one project? Pin
Stephane Rodriguez.25-Nov-02 0:05
Stephane Rodriguez.25-Nov-02 0:05 
AnswerRe: One resource in more than one project? Pin
dima_t25-Nov-02 0:39
dima_t25-Nov-02 0:39 
AnswerRe: One resource in more than one project? Pin
KarstenK25-Nov-02 3:06
mveKarstenK25-Nov-02 3:06 
QuestionHow to write a Code Generator similar to Visual Studio Pin
aninddroy24-Nov-02 22:34
aninddroy24-Nov-02 22:34 
AnswerRe: How to write a Code Generator similar to Visual Studio Pin
Simon.W25-Nov-02 1:31
Simon.W25-Nov-02 1:31 
GeneralClosing already running instance Pin
suresh_sathya24-Nov-02 22:32
suresh_sathya24-Nov-02 22:32 
GeneralRe: Closing already running instance Pin
Roman Fadeyev24-Nov-02 23:33
Roman Fadeyev24-Nov-02 23:33 
GeneralRe: Closing already running instance Pin
suresh_sathya25-Nov-02 0:50
suresh_sathya25-Nov-02 0:50 
QuestionHow to use a DirectShow sample filter ? Pin
manio24-Nov-02 21:00
manio24-Nov-02 21:00 
AnswerRe: How to use a DirectShow sample filter ? Pin
Stephane Rodriguez.25-Nov-02 0:07
Stephane Rodriguez.25-Nov-02 0:07 
GeneralRe: How to use a DirectShow sample filter ? Pin
manio25-Nov-02 15:23
manio25-Nov-02 15:23 
GeneralRe: How to use a DirectShow sample filter ? Pin
Stephane Rodriguez.26-Nov-02 6:50
Stephane Rodriguez.26-Nov-02 6:50 
GeneralPorting from a NT to a '98 Pin
BlackRider24-Nov-02 20:43
BlackRider24-Nov-02 20:43 
GeneralRe: Porting from a NT to a '98 Pin
KarstenK24-Nov-02 21:12
mveKarstenK24-Nov-02 21:12 
GeneralNot a solution Pin
BlackRider24-Nov-02 21:29
BlackRider24-Nov-02 21:29 
GeneralRe: Not a solution Pin
KarstenK24-Nov-02 21:43
mveKarstenK24-Nov-02 21:43 

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.