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 next 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

Re: OfficeAutomation compile error in debug mode [message #59844 is a reply to message #59840] Tue, 02 May 2023 08:47 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Thank you Luigi

Reading your code I see that your copy of OfficeAutomation is not updated. Please download it from UppHub and tell me if it works.
If not, I would have to dig deeper.


Best regards
Iñaki
Re: OfficeAutomation compile error in debug mode [message #59846 is a reply to message #59844] Tue, 02 May 2023 12:32 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hi Koldo,

I used the latest version from uppHUB. However I needed to clean uppout and rebuild all again and the compiler stopped to complain.

Thank you very much.
Luigi
Re: OfficeAutomation compile error in debug mode [message #59855 is a reply to message #59846] Fri, 05 May 2023 16:35 Go to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Excellent Luigi.

Best regards
Iñaki
Previous Topic: Scatter: DataRange for explicit functions
Next Topic: StackCtrl, a ctrl stacking widget for U++
Goto Forum:
  


Current Time: Mon Apr 29 18:33:32 CEST 2024

Total time taken to generate the page: 0.02916 seconds