Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
forlano is currently offline  forlano
Messages: 1185
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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scatter: DataRange for explicit functions
Next Topic: StackCtrl, a ctrl stacking widget for U++
Goto Forum:
  


Current Time: Thu May 16 13:16:33 CEST 2024

Total time taken to generate the page: 0.02926 seconds