|
|
Home » Developing U++ » UppHub » Can't compile Controls4u from UppHub (Controls4u issues)
|
|
|
|
|
|
Re: Can't compile Controls4u from UppHub [message #58942 is a reply to message #57793] |
Wed, 28 September 2022 03:57 |
dschoni
Messages: 15 Registered: January 2021 Location: Switzerland
|
Promising Member |
|
|
Hi there ...
https://github.com/anboto/Anboto/tree/master/Controls4U
Thanks for the Link to GitHub, Typhoor.
The upp repository contains in ActiveX_base.h at line 28
WString ret(static_cast<wchar *>(bstr));
which is not accepted by the compiler.
But the Github code contains
WString ret((wchar *)bstr);
which works.
So that seems to be actual.
I've corrected the upp code by using the ones from GitHub. The I've got the next problems: The same with Functions4U, which is included in the demo and is also compiling with errors.
From here on I'm lost, because the difference in the code is to much for me to handle. (I'm just a beginner ...)
Why is it so hard to make the examples working?
Shouldn't these simply run out of the box?
Best regards
dschoni
[Updated on: Wed, 28 September 2022 07:15] Report message to a moderator
|
|
|
|
Re: Can't compile Controls4u from UppHub [message #58944 is a reply to message #57793] |
Wed, 28 September 2022 10:17 |
dschoni
Messages: 15 Registered: January 2021 Location: Switzerland
|
Promising Member |
|
|
Hi there ...
In the end I made it.
I had to replace any WString trough Vector<WCHAR>.
As example:
Vector<WCHAR> wfileName = ToSystemCharsetW(String(fileName));
wfileName.Add(0);
FILE *fp = _wfopen(wfileName, L"rb");
//FILE *fp = _wfopen(fileName.ToWString(), L"rb");
(Functions4U.cpp and more ...)
Wow, this was hard work! But now it works perfectly.
Best Regards
dschoni
[Updated on: Wed, 28 September 2022 10:20] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Thu Oct 31 23:58:35 CET 2024
Total time taken to generate the page: 0.02433 seconds
|
|
|