Click here to Skip to main content
15,904,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in adding fifth digit to version number in VC++ 6.0 Pin
Blake Miller13-Jun-05 7:52
Blake Miller13-Jun-05 7:52 
GeneralRe: Problem in adding fifth digit to version number in VC++ 6.0 Pin
Neeranjan13-Jun-05 19:46
Neeranjan13-Jun-05 19:46 
GeneralC++ Array Of Function Pointers problem Pin
CNewbie12-Jun-05 18:21
CNewbie12-Jun-05 18:21 
GeneralRe: C++ Array Of Function Pointers problem Pin
GDavy12-Jun-05 19:34
GDavy12-Jun-05 19:34 
GeneralRe: C++ Array Of Function Pointers problem Pin
toxcct12-Jun-05 20:26
toxcct12-Jun-05 20:26 
GeneralRe: C++ Array Of Function Pointers problem Pin
Bob Stanneveld12-Jun-05 20:56
Bob Stanneveld12-Jun-05 20:56 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 3:16
David Crow13-Jun-05 3:16 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 5:08
CNewbie13-Jun-05 5:08 
Ok FWIW the function that calls the function pointer array is not in the same source file as the function pointer array definition.

The definition:

void (CflowlogDlg::*call_ins_function[48])() = {CflowlogDlg::doins00,CflowlogDlg::doins02,CflowlogDlg::doins04,CflowlogDlg::doins06,CflowlogDlg::doins08,CflowlogDlg::doins0A,CflowlogDlg::doins0C,CflowlogDlg::doins0E};

Is in my dialog1.cpp file and the call:

CflowlogDlg INSFunction;
UINT insptr = (INSNum / 2);
(INSFunction.call_ins_function[insptr])();

is in the dialog2.cpp file

the assertion happens on this line:

(INSFunction.call_ins_function[insptr])();

It should be *call_ins_function, but the compiler wont allow it. Keeps giving me an error C2109: subscript requires array or pointer type

and

error C2597: illegal reference to non-static member 'CflowlogDlg::call_ins_function'

but that is because I am calling from a static member function to a non static member function.
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 5:17
David Crow13-Jun-05 5:17 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 5:39
CNewbie13-Jun-05 5:39 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 6:08
David Crow13-Jun-05 6:08 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 6:16
CNewbie13-Jun-05 6:16 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 6:27
David Crow13-Jun-05 6:27 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie15-Jun-05 19:32
CNewbie15-Jun-05 19:32 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 2:56
David Crow16-Jun-05 2:56 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie16-Jun-05 5:30
CNewbie16-Jun-05 5:30 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 5:43
David Crow16-Jun-05 5:43 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie16-Jun-05 5:54
CNewbie16-Jun-05 5:54 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 6:11
David Crow16-Jun-05 6:11 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie16-Jun-05 6:13
CNewbie16-Jun-05 6:13 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 6:21
David Crow16-Jun-05 6:21 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie16-Jun-05 6:34
CNewbie16-Jun-05 6:34 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 7:06
David Crow16-Jun-05 7:06 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie16-Jun-05 7:46
CNewbie16-Jun-05 7:46 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow16-Jun-05 8:24
David Crow16-Jun-05 8:24 

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.