Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblems while #import "VBE6EXT.OLB" Pin
emmai17-Aug-03 3:15
emmai17-Aug-03 3:15 
GeneralATL problem Pin
novachen17-Aug-03 1:52
novachen17-Aug-03 1:52 
GeneralRe: ATL problem Pin
Jörgen Sigvardsson17-Aug-03 5:01
Jörgen Sigvardsson17-Aug-03 5:01 
GeneralRe: ATL problem Pin
novachen17-Aug-03 14:41
novachen17-Aug-03 14:41 
GeneralRe: ATL problem Pin
Jörgen Sigvardsson17-Aug-03 22:40
Jörgen Sigvardsson17-Aug-03 22:40 
GeneralRe: ATL problem Pin
peterchen17-Aug-03 6:58
peterchen17-Aug-03 6:58 
GeneralRe: ATL problem Pin
novachen17-Aug-03 14:40
novachen17-Aug-03 14:40 
GeneralRe: ATL problem Pin
peterchen17-Aug-03 23:15
peterchen17-Aug-03 23:15 
You cam
1. Make Apple only creatable by Banana
2. Tag each Apple instance with a GUID, that can be queried through the IApple interface
3. Keep a map<GUID, CApple *> to retrieve the CApple * belonging to an IApple *
4. Reject each IApple you get that you don't know.

I have a slightly simpler case, that uses a slightly simpler implementation:

Noone passes an IApple back to me (I just hand it out), and the apple doesn't have any state that can't be dereived from Banana. So I let the Banana implement the methods of Apple and make the IApple implementation forward the calls to it's Banana. Some care with avoiding circular ref's is all to take care of.



"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS

sighist | Agile Programming | doxygen

GeneralProblems with inheritance Pin
petter_e16-Aug-03 22:14
petter_e16-Aug-03 22:14 
GeneralRe: Problems with inheritance Pin
Ryan Binns16-Aug-03 23:35
Ryan Binns16-Aug-03 23:35 
GeneralRe: Problems with inheritance Pin
Jörgen Sigvardsson17-Aug-03 5:03
Jörgen Sigvardsson17-Aug-03 5:03 
GeneralRe: Problems with inheritance Pin
Ryan Binns17-Aug-03 5:41
Ryan Binns17-Aug-03 5:41 
GeneralRe: Problems with inheritance Pin
petter_e17-Aug-03 6:22
petter_e17-Aug-03 6:22 
GeneralCDaoDatabase Open Jet Database Crashing Pin
John Clump16-Aug-03 18:49
John Clump16-Aug-03 18:49 
GeneralRe: CDaoDatabase Open Jet Database Crashing Pin
Terry O'Nolley17-Aug-03 17:48
Terry O'Nolley17-Aug-03 17:48 
GeneralWM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 17:42
Hosam Aly Mahmoud16-Aug-03 17:42 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns16-Aug-03 19:53
Ryan Binns16-Aug-03 19:53 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 23:12
Hosam Aly Mahmoud16-Aug-03 23:12 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns16-Aug-03 23:30
Ryan Binns16-Aug-03 23:30 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud16-Aug-03 23:52
Hosam Aly Mahmoud16-Aug-03 23:52 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 0:16
Ryan Binns17-Aug-03 0:16 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 1:28
Hosam Aly Mahmoud17-Aug-03 1:28 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 5:48
Ryan Binns17-Aug-03 5:48 
GeneralRe: WM_ERASEBKGND Pin
Hosam Aly Mahmoud17-Aug-03 11:42
Hosam Aly Mahmoud17-Aug-03 11:42 
GeneralRe: WM_ERASEBKGND Pin
Ryan Binns17-Aug-03 15:16
Ryan Binns17-Aug-03 15:16 

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.