T
Timothy Madden
Hello
I have an overloaded function like this:
BOOL SetFieldValue(_RecordsetPtr, LPCTSTR, long);
BOOL SetFieldValue(_RecordsetPtr, LPCTSTR, int);
And then I call the function like this:
SetFieldValue(pRecordset, _T("Order"), long(i)+1);
and the debugger shows that the int overload of my fuction is called.
Is long( i ) + 1 not of type long ? Why is the int overload selected ?
Thank you
Timothy Madden
Romania
I have an overloaded function like this:
BOOL SetFieldValue(_RecordsetPtr, LPCTSTR, long);
BOOL SetFieldValue(_RecordsetPtr, LPCTSTR, int);
And then I call the function like this:
SetFieldValue(pRecordset, _T("Order"), long(i)+1);
and the debugger shows that the int overload of my fuction is called.
Is long( i ) + 1 not of type long ? Why is the int overload selected ?
Thank you
Timothy Madden
Romania