Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConversion... Pin
Anonymous7-Apr-04 6:31
Anonymous7-Apr-04 6:31 
GeneralRe: Conversion... Pin
Ravi Bhavnani7-Apr-04 7:30
professionalRavi Bhavnani7-Apr-04 7:30 
GeneralRe: Conversion... Pin
Renjith Ramachandran7-Apr-04 8:38
Renjith Ramachandran7-Apr-04 8:38 
Questioncan different Desktop post message to each? Pin
tank10257-Apr-04 6:11
tank10257-Apr-04 6:11 
AnswerRe: can different Desktop post message to each? Pin
Mike Dimmick7-Apr-04 6:17
Mike Dimmick7-Apr-04 6:17 
Questionplaying a movie in a dialog-box? Pin
cristane7-Apr-04 6:06
cristane7-Apr-04 6:06 
AnswerRe: playing a movie in a dialog-box? Pin
Prakash Nadar7-Apr-04 6:19
Prakash Nadar7-Apr-04 6:19 
Generalpointer to virtual function Pin
RalfPeter7-Apr-04 5:56
RalfPeter7-Apr-04 5:56 
Hi all,
this is the error I'm getting:

"error C2276: '&' : illegal operation on bound member function expression",

Apparently, this is due to assigning a pointer to a virtual function, yet I do not have any function declared virtual. Does any one know a way around this problem? Is there a way to force a function not to be virtual? Here's a snippet of my code:

In .h

class MyClass
{…
int VBGCalc(const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *J);
int VBGPartials(const gsl_vector *x, void *params, gsl_matrix *J);
int VBGFunct(const gsl_vector *x, void *params, gsl_vector *f);

int VBGF(void); //problem in this function

};

in .cpp

int MyClass::VBGF(void)

f.f = &VBGFunct; //offending code
f.df = &VBGPartials; //ditto
f.fdf = &VBGCalc; //ditto


return 1;
}

int (* f) (const gsl_vector * x, void * params, gsl_vector * f);
gsl_vector and gsl_matrix are struct variables.

Thanks,
Ralf.


ralf.riedel@usm.edu
GeneralRe: pointer to virtual function Pin
Mike Dimmick7-Apr-04 6:24
Mike Dimmick7-Apr-04 6:24 
GeneralRe: pointer to virtual function Pin
Prakash Nadar7-Apr-04 6:29
Prakash Nadar7-Apr-04 6:29 
GeneralRe: pointer to virtual function Pin
RalfPeter7-Apr-04 11:13
RalfPeter7-Apr-04 11:13 
GeneralC++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 5:45
Qualvis7-Apr-04 5:45 
GeneralRe: C++ & MFC -> Listbox Question Pin
David Crow7-Apr-04 5:47
David Crow7-Apr-04 5:47 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday7-Apr-04 11:13
professionalWes Aday7-Apr-04 11:13 
GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 11:46
Qualvis7-Apr-04 11:46 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday7-Apr-04 12:09
professionalWes Aday7-Apr-04 12:09 
GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 22:08
Qualvis7-Apr-04 22:08 
GeneralRe: C++ & MFC -> Listbox Question Pin
Qualvis7-Apr-04 22:32
Qualvis7-Apr-04 22:32 
GeneralRe: C++ & MFC -> Listbox Question Pin
Wes Aday8-Apr-04 7:08
professionalWes Aday8-Apr-04 7:08 
Generalsetting page orientation Pin
kzyczynski7-Apr-04 5:31
kzyczynski7-Apr-04 5:31 
GeneralRe: setting page orientation Pin
Roger Allen7-Apr-04 5:38
Roger Allen7-Apr-04 5:38 
GeneralRe: setting page orientation Pin
kzyczynski7-Apr-04 10:20
kzyczynski7-Apr-04 10:20 
GeneralSocket listen backlog woes Pin
Rob Caldecott7-Apr-04 5:15
Rob Caldecott7-Apr-04 5:15 
GeneralRe: Socket listen backlog woes Pin
beetung7-Apr-04 8:14
beetung7-Apr-04 8:14 
GeneralRe: Socket listen backlog woes Pin
Rob Caldecott7-Apr-04 9:53
Rob Caldecott7-Apr-04 9:53 

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.