Hi,
I have created 4 methods as follows:
then, I called it by this code :
but it seem not compiled param L"hello world" as CString but bool,
Is there a way for the compiler to understand I'm using a CString without having to specifically like this:
Thanks you!
I have created 4 methods as follows:
Code:
void Range::WriteValue(CStringW value)
{
}
void Range::WriteValue(int value)
{
}
void Range::WriteValue(double value)
{
}
void Range::WriteValue(bool value)
{
}
Code:
Range(L"A1").WriteValue(L"hello world");
Is there a way for the compiler to understand I'm using a CString without having to specifically like this:
Code:
Range(L"A1").WriteValue(CString(L"hello world"));