|
|
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 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
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.
![index.php?t=getfile&id=6667&private=0](index.php?t=getfile&id=6667&private=0)
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 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
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: Sat Jul 27 03:11:07 CEST 2024
Total time taken to generate the page: 0.03184 seconds
|
|
|