Home » Developing U++ » UppHub » [SOLVED] OfficeAutomation compile error in debug mode
[SOLVED] OfficeAutomation compile error in debug mode [message #59840] |
Mon, 01 May 2023 23:14  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
with CLANGx64 debug, I got the errors:
----- OfficeAutomation ( GUI CLANG DEBUG DEBUG_FULL WIN32 ) (12 / 32)
OfficeAutomation.cpp
C:\MyApps\OfficeAutomation\OfficeAutomation.cpp:229:5: error: no matching function for call to 'WideCharToMultiByte'
WideCharToMultiByte(CP_ACP, 0, ptName, -1, szName, 256, NULL, NULL);
^~~~~~~~~~~~~~~~~~~
C:/upp/bin/clang/include/stringapiset.h:42:25: note: candidate function not viable: no known conversion from 'Upp::WStringBuffer' to 'LPCWCH' (aka 'const wchar_t *') for 3rd
argument
WINBASEAPI int WINAPI WideCharToMultiByte (UINT CodePage, DWORD dwFlags, LPCWCH lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCCH lpDefaultChar,
LPBOOL lpUsedDefaultChar);
^
C:\MyApps\OfficeAutomation\OfficeAutomation.cpp:266:15: error: no matching function for call to 'CLSIDFromProgID'
HRESULT hr = CLSIDFromProgID(application.ToWString(), &clsid); // Get CLSID for our server
^~~~~~~~~~~~~~~
C:/upp/bin/clang/include/combaseapi.h:301:11: note: candidate function not viable: no known conversion from 'Upp::WString' to 'LPCOLESTR' (aka 'const wchar_t *') for 1st argu
ment
WINOLEAPI CLSIDFromProgID (LPCOLESTR lpszProgID, LPCLSID lpclsid);
^
2 errors generated.
In release mode it compiles and run without problems.
Any suggestion?
Thanks,
luigi
[Updated on: Tue, 02 May 2023 12:32] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:21:32 CEST 2025
Total time taken to generate the page: 0.02046 seconds
|