Closed
Bug 1201803
Opened 9 years ago
Closed 9 years ago
Failed to compile MapiApi.cpp: error C2664: cannot convert argument from 'char16_t *' to 'LPWSTR'
Categories
(Thunderbird :: Migration, defect)
Thunderbird
Migration
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1198936
People
(Reporter: thomas, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/plain
|
Details |
Trying to build Thunderbird on Windows 7 and VS2015
> d:/mozilla-source/comm-central/mailnews/import/outlook/src/MapiApi.cpp(299): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
> d:/mozilla-source/comm-central/mailnews/import/outlook/src/MapiApi.cpp(307): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
> d:/mozilla-source/comm-central/mailnews/import/outlook/src/MapiApi.cpp(997): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
> d:/mozilla-source/comm-central/mailnews/import/oexpress/WabObject.cpp(525): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
> d:/mozilla-source/comm-central/mailnews/import/oexpress/WabObject.cpp(533): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char16_t *' to 'LPWSTR'
> d:/mozilla-source/comm-central/mailnews/import/outlook/src/MapiMessage.cpp(603): error C2664: 'nsresult nsIUnicodeEncoder::Convert(const char16_t *,int32_t *,char *,int32_t *)': cannot convert argument 1 from 'const wchar_t *' to 'const char16_t *'
> d:/mozilla-source/comm-central/mailnews/import/outlook/src/MapiMessage.cpp(650): error C2665: 'Substring': none of the 8 overloads could convert all the argument types
I seems look similar to bug 1200187
Comment 2•9 years ago
|
||
Then the solution is also similar: just change the type of those variable from char16_t* to char16ptr_t, this issue should be fixed then.
Comment 3•9 years ago
|
||
Duplicate of 1198936
https://bugzilla.mozilla.org/show_bug.cgi?id=1198936
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•