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

C / C++ / MFC

 
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 
GeneralRe: pointer to virtual function Pin
Mike Dimmick7-Apr-04 6:24
Mike Dimmick7-Apr-04 6:24 
You can't assign a member function pointer to an ordinary function pointer. The type of VBGFunct is int (MyClass::*) (const gsl_vector *, void *, gsl_vector *). You can't take the address of a member function pointer.

You would have to either declare f as int (MyClass::*f)( /*etc*/ ) or declare your functions as static. If you do the first, you must call them using the ->* or .* notation, e.g.:
(this->*f)(pX, pParams, pF)
If you do the second, you won't be able to access any non-static members of MyClass.

If you're trying to provide polymorphism, it's easier to either do run-time polymorphism via inheritance, or compile-time polymorphism using templates.

Stability. What an interesting concept. -- Chris Maunder
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 
GeneralRe: Socket listen backlog woes Pin
Johnny ²7-Apr-04 8:56
Johnny ²7-Apr-04 8:56 

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.