I have created a class (in a DLL) with a constructor using a variable number of parameters :-
CUnitGrid(int numParams, ...)
When I try to declare a new test object (outwith the DLL) I get error messages including "syntax error : 'constant' " :-
CUnitGrid m_Grid(1,1);
A colleague said this was because the declaration is in a Header file. To try to work around this, I tried to declare the overloaded constructor inline. However, that did not work, I got the same error.
How can I get this code to work?
BACKGROUND
I am working with existing code with a large number of grids.
Many of these grids contain columns of data displaying metric values.
My task is to handle automatic conversion from Metric to Imperial when a menu option is selected.
I need to be able to identify which columns in the grid are displaying Metric values so that I can convert them. I was hoping to use the variable parameters list to say "this grid has unit values in columns 3,6 and 9".
CUnitGrid(int numParams, ...)
When I try to declare a new test object (outwith the DLL) I get error messages including "syntax error : 'constant' " :-
CUnitGrid m_Grid(1,1);
A colleague said this was because the declaration is in a Header file. To try to work around this, I tried to declare the overloaded constructor inline. However, that did not work, I got the same error.
How can I get this code to work?
BACKGROUND
I am working with existing code with a large number of grids.
Many of these grids contain columns of data displaying metric values.
My task is to handle automatic conversion from Metric to Imperial when a menu option is selected.
I need to be able to identify which columns in the grid are displaying Metric values so that I can convert them. I was hoping to use the variable parameters list to say "this grid has unit values in columns 3,6 and 9".