Environment : Visual Studio 2008 , wxWidgets 2.8.10 , Vista 64
Code
header.h
#include <wx/wx.h>
class CSend
{
CSend(wxString& name = "");
~CSend();
};
main.cpp
#include "header.h"
void main()
{
CSend dlg(wxString("Hi"));
}
When I compile this program I get the following error
error C2440: 'default argument' : cannot convert from 'const char [1]' to 'wxString &'
Can anyone please help me ?