Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Colour fonts Pin
wong190720-Aug-02 23:03
wong190720-Aug-02 23:03 
QuestionHow to export templates from an extension DLL ? Pin
Jonathan de Halleux20-Aug-02 22:00
Jonathan de Halleux20-Aug-02 22:00 
AnswerRe: How to export templates from an extension DLL ? Pin
Lakitu20-Aug-02 23:18
Lakitu20-Aug-02 23:18 
GeneralThanks. Pin
Jonathan de Halleux21-Aug-02 0:00
Jonathan de Halleux21-Aug-02 0:00 
GeneralOutlook-like menu control Pin
Dominik Reichl20-Aug-02 21:56
Dominik Reichl20-Aug-02 21:56 
GeneralRe: Outlook-like menu control Pin
Rashid Thadha21-Aug-02 6:34
Rashid Thadha21-Aug-02 6:34 
GeneralRe: Outlook-like menu control Pin
Dominik Reichl22-Aug-02 6:11
Dominik Reichl22-Aug-02 6:11 
GeneralDLL's, the Heap, and CDocument Pin
makom4220-Aug-02 21:55
makom4220-Aug-02 21:55 
Having just resolved my plugin problems Big Grin | :-D I now face the challenge of allowing my plugins to manipulate the data in my MFC app's CDocument derived class.

This I have done by passing a pointer to my derived doc class to the dll, and everything works fine. The plugin is able to create data in the doc.

However, when the doc deletes its data (OnNew... etc) I get a fatal exception. The object it is trying to delete is valid and does exist - however I beleive that it has been allocated from a different heap (the dll's) meaning the app/doc cannot unallocate it from it's own.

My dll "creates" data through the document itself..

...
pDoc->CreateVertex() ;
...

so why isn't the construction taking place from the "document" heap? I guess it always takes place in the local heap?
OMG | :OMG:

I could resolve this by getting the dll to track every single thing it creates and releasing it all on destruction, but that is far too clumsy.

This must be resolvable - otherwise no-one would have every been able to code plugins with MFC apps... Big Grin | :-D

Any ideas?


GeneralRe: DLL's, the Heap, and CDocument Pin
Lakitu20-Aug-02 23:21
Lakitu20-Aug-02 23:21 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:16
makom4221-Aug-02 3:16 
GeneralRe: DLL's, the Heap, and CDocument Pin
Tomasz Sowinski21-Aug-02 0:45
Tomasz Sowinski21-Aug-02 0:45 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:21
makom4221-Aug-02 3:21 
GeneralRe: DLL's, the Heap, and CDocument Pin
Tomasz Sowinski21-Aug-02 3:25
Tomasz Sowinski21-Aug-02 3:25 
GeneralRe: DLL's, the Heap, and CDocument Pin
Roger Allen21-Aug-02 1:41
Roger Allen21-Aug-02 1:41 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:19
makom4221-Aug-02 3:19 
GeneralCustom databases and file storage Pin
alex.barylski20-Aug-02 21:42
alex.barylski20-Aug-02 21:42 
GeneralRe: Custom databases and file storage Pin
Tomasz Sowinski21-Aug-02 0:23
Tomasz Sowinski21-Aug-02 0:23 
GeneralRe: Custom databases and file storage Pin
alex.barylski21-Aug-02 1:08
alex.barylski21-Aug-02 1:08 
GeneralRe: Custom databases and file storage Pin
Tomasz Sowinski21-Aug-02 1:16
Tomasz Sowinski21-Aug-02 1:16 
GeneralRe: Custom databases and file storage Pin
Steven Gregg21-Aug-02 0:30
Steven Gregg21-Aug-02 0:30 
GeneralRe: Custom databases and file storage Pin
alex.barylski21-Aug-02 1:04
alex.barylski21-Aug-02 1:04 
GeneralRe: Custom databases and file storage Pin
Steven Gregg21-Aug-02 1:17
Steven Gregg21-Aug-02 1:17 
GeneralRe: Custom databases and file storage Pin
Tomasz Sowinski21-Aug-02 1:16
Tomasz Sowinski21-Aug-02 1:16 
GeneralRe: Custom databases and file storage Pin
Joel Lucsy21-Aug-02 12:32
Joel Lucsy21-Aug-02 12:32 
Generalimages with different height in CTreeCtrl Pin
Jaro20-Aug-02 21:31
Jaro20-Aug-02 21:31 

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.