Visual studio building errors
I have some problems with building a code, it gives me these errors:
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(61): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'CHAR [260]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(61): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(77): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'CHAR [260]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(77): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(94): error C2601: 'Mem::m_iGetModuleAddressByName': local function definitions are illegal
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(43): note: this line contains a '{' which has not yet been matched
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(112): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'char [256]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(112): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(114): warning C4311: 'type cast': pointer truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(114): warning C4302: 'type cast': truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(128): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'char [256]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(128): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(130): warning C4311: 'type cast': pointer truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(130): warning C4302: 'type cast': truncation from 'BYTE *' to 'DWORD'
I have been looking around for days to fix but can't find anything that works.
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(61): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'CHAR [260]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(61): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(77): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'CHAR [260]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(77): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(94): error C2601: 'Mem::m_iGetModuleAddressByName': local function definitions are illegal
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(43): note: this line contains a '{' which has not yet been matched
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(112): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'char [256]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(112): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(114): warning C4311: 'type cast': pointer truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(114): warning C4302: 'type cast': truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(128): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'char [256]' to 'const wchar_t *'
1> ..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(128): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(130): warning C4311: 'type cast': pointer truncation from 'BYTE *' to 'DWORD'
1>..\..\..\..\..\..\#\documents\visual studio 2015\Projects\DLLproj\DLLproj\Mem.cpp(130): warning C4302: 'type cast': truncation from 'BYTE *' to 'DWORD'
I have been looking around for days to fix but can't find anything that works.

