Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalobject oriented models Pin
Anonymous1-Aug-02 3:38
Anonymous1-Aug-02 3:38 
QuestionHow to create Shortcut for a file Pin
Koundinya1-Aug-02 2:32
Koundinya1-Aug-02 2:32 
AnswerRe: How to create Shortcut for a file Pin
Jean-Michel LE FOL1-Aug-02 2:47
Jean-Michel LE FOL1-Aug-02 2:47 
AnswerRe: How to create Shortcut for a file Pin
includeh101-Aug-02 8:32
includeh101-Aug-02 8:32 
GeneralMDIGetActive() - always fails (!?!) Pin
[CoY0te]1-Aug-02 2:17
[CoY0te]1-Aug-02 2:17 
GeneralWinNT to WinCE Pin
hsjuneja1-Aug-02 2:00
hsjuneja1-Aug-02 2:00 
GeneralRe: WinNT to WinCE Pin
Tim Smith1-Aug-02 2:09
Tim Smith1-Aug-02 2:09 
GeneralLinking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 1:50
Jawache1-Aug-02 1:50 
Hi,
I have a C API that I want to wrapp in C++.

The idea I have is to have a C++ Base Class and have the C API call virtual functions of the base class, then the derived class can customise these functions.

The only way i can think of doing this is to have a single global pointer to the base class and have the C code call the member functions of that global object. So before I can call certain functions linked to the C API I have to make sure this global pointer points to the right instantiation of the derived class...Unsure | :~

Its not very elegant or clean, i was wondering if anybody had any better ideas.

Asim Hussain
e: asim@jawache.net
w: www.jawache.net
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Funky Chicken1-Aug-02 2:21
sussFunky Chicken1-Aug-02 2:21 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 2:42
Jawache1-Aug-02 2:42 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Daniel Lohmann1-Aug-02 4:03
Daniel Lohmann1-Aug-02 4:03 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 5:18
Jawache1-Aug-02 5:18 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Joaquín M López Muñoz1-Aug-02 7:15
Joaquín M López Muñoz1-Aug-02 7:15 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Daniel Lohmann1-Aug-02 8:13
Daniel Lohmann1-Aug-02 8:13 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 12:26
Jawache1-Aug-02 12:26 
QuestionRandomic functions ? Pin
Cris1-Aug-02 1:47
Cris1-Aug-02 1:47 
AnswerRe: Randomic functions ? Pin
Nish Nishant1-Aug-02 2:11
sitebuilderNish Nishant1-Aug-02 2:11 
GeneralRe: Randomic functions ? Pin
Funky Chicken1-Aug-02 2:18
sussFunky Chicken1-Aug-02 2:18 
GeneralRe: Randomic functions ? Pin
Cris1-Aug-02 2:46
Cris1-Aug-02 2:46 
GeneralRe: Randomic functions ? Pin
Chunky Chicken1-Aug-02 2:56
sussChunky Chicken1-Aug-02 2:56 
GeneralRe: Randomic functions ? Pin
[CoY0te]1-Aug-02 3:25
[CoY0te]1-Aug-02 3:25 
GeneralRe: Randomic functions ? Pin
Joaquín M López Muñoz1-Aug-02 7:22
Joaquín M López Muñoz1-Aug-02 7:22 
GeneralVariable Argument list Pin
Wolfram Steinke1-Aug-02 1:37
Wolfram Steinke1-Aug-02 1:37 
GeneralRe: Variable Argument list Pin
Brian Azzopardi1-Aug-02 1:44
Brian Azzopardi1-Aug-02 1:44 
GeneralRe: Variable Argument list Pin
Tim Smith1-Aug-02 2:06
Tim Smith1-Aug-02 2:06 

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.