Could somebody help me ?
I had declared a constant and I need that be global
#define SVCNAME TEXT("testit")
...
SERVICE_TABLE_ENTRY DispatchTable[] =
{
{ SVCNAME, (LPSERVICE_MAIN_FUNCTION) testit },
{ NULL, NULL }
};
and I got:
Error C2440 'inicializando': no se puede realizar la conversión de 'const wchar_t [7]' a 'LPWSTR' easyDB C:\Software\test1\test2\dllmain.cpp 60
.
What I have tried:
I tried some ways of declare a global constant, also that be LPWSTR at time of the declaration.