Click here to Skip to main content
15,914,246 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Clearing controls Pin
led mike22-Sep-08 6:46
led mike22-Sep-08 6:46 
GeneralRe: Clearing controls Pin
Paul Conrad5-Sep-08 8:59
professionalPaul Conrad5-Sep-08 8:59 
AnswerRe: Clearing controls Pin
Leslie Sanford13-Sep-08 17:40
Leslie Sanford13-Sep-08 17:40 
AnswerRe: Clearing controls Pin
darkelv24-Sep-08 4:56
darkelv24-Sep-08 4:56 
Questioncreating VB.NET project to use C++ source code Pin
theBulldog_312-Sep-08 10:57
theBulldog_312-Sep-08 10:57 
AnswerRe: creating VB.NET project to use C++ source code Pin
Paul Conrad2-Sep-08 19:10
professionalPaul Conrad2-Sep-08 19:10 
AnswerRe: creating VB.NET project to use C++ source code Pin
Ju@ncho11-Sep-08 8:40
Ju@ncho11-Sep-08 8:40 
Questionfrom c pointer function to good object design Pin
mp3butcher2-Sep-08 5:14
mp3butcher2-Sep-08 5:14 
Hello,
I've a C function that take function ptr in argument:

double CFunc(
double (*funcptrA)(char *),
double (*funcptrB)(char *),
double (*funcptrC)(char *)
);

And I would like to transform it in a cool object design.
I've tried a lot of solutions (functor, interface) but the only way my compilator agree is to declare argument functions (funcptrABC) as static.

To illustrate, Here 's what i wrote first:

#include CFunc.h

class CplusFunc{
virtual double A(char*);
virtual double B(char*);
virtual double C(char*);

double CplusExec(){
retrun Cfunc(&A,&B,&C);
}
};

It doesn't work but give the semantic i would like to give to my object.
Have you got an idea?
GeneralRe: from c pointer function to good object design Pin
led mike2-Sep-08 5:23
led mike2-Sep-08 5:23 
GeneralRe: from c pointer function to good object design Pin
mp3butcher2-Sep-08 5:53
mp3butcher2-Sep-08 5:53 
GeneralRe: from c pointer function to good object design Pin
led mike2-Sep-08 6:37
led mike2-Sep-08 6:37 
General[Message Deleted] Pin
mp3butcher2-Sep-08 22:10
mp3butcher2-Sep-08 22:10 
General[Message Deleted] Pin
mp3butcher2-Sep-08 22:38
mp3butcher2-Sep-08 22:38 
GeneralRe: from c pointer function to good object design Pin
mp3butcher3-Sep-08 1:35
mp3butcher3-Sep-08 1:35 
GeneralRe: from c pointer function to good object design Pin
led mike3-Sep-08 5:30
led mike3-Sep-08 5:30 
GeneralRe: from c pointer function to good object design Pin
mp3butcher3-Sep-08 23:17
mp3butcher3-Sep-08 23:17 
GeneralRe: from c pointer function to good object design Pin
led mike4-Sep-08 8:55
led mike4-Sep-08 8:55 
GeneralRe: from c pointer function to good object design Pin
mp3butcher4-Sep-08 21:48
mp3butcher4-Sep-08 21:48 
QuestionRe: from c pointer function to good object design Pin
led mike5-Sep-08 4:29
led mike5-Sep-08 4:29 
AnswerRe: from c pointer function to good object design Pin
mp3butcher5-Sep-08 4:55
mp3butcher5-Sep-08 4:55 
Questionloading images and text Pin
netJP12L1-Sep-08 19:03
netJP12L1-Sep-08 19:03 
AnswerRe: loading images and text Pin
Pete O'Hanlon1-Sep-08 23:00
mvePete O'Hanlon1-Sep-08 23:00 
AnswerRe: loading images and text Pin
alex.barylski15-Sep-08 18:40
alex.barylski15-Sep-08 18:40 
GeneralRe: loading images and text Pin
netJP12L16-Sep-08 4:59
netJP12L16-Sep-08 4:59 
GeneralRe: loading images and text Pin
Pete O'Hanlon16-Sep-08 12:07
mvePete O'Hanlon16-Sep-08 12:07 

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.