silence warning when assigning pointers
Although my code works, I'm getting a warning I don't know how to supress.
I'm assigning a multi dimensional array of type CHAR** to one of type LPCTSTR*
I assumed this was ok as all pointers are 32bit in Windows.
Here is the code causing me problems
Code:
BOOL Start(INT ArgCount, TCHAR **Args)
{
SC_HANDLE hSc;
LPCTSTR ServiceName = *Args++;
LPCTSTR *ServiceArgs = Args; // error relates to this line
...
Quote:
warning: initialization from incompatible pointer type
How do I correct this?
Thanks.