16,004,653 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Vicente Flich (Top 6 by date)
Vicente Flich
17-Apr-24 4:10am
View
I got it! The correct way is an IVector<IInspectable>, not IVector<hstring>:
winrt::Windows::Foundation::Collections::IVector<IInspectable> l = single_threaded_vector<IInspectable>();
l.Append(box_value(L"Opcion1"));
l.Append(box_value(L"Opcion2"));
e.ItemsSource(l);
I put here for anyone with the same problem.
Vicente Flich
16-Apr-24 4:19am
View
Thanks Andre for your support. This seems to be in the right direction, the ItemSource expects an IInspectable, butnow I cant compile because SuggestionSource is an abstract class. I'm thinking implement another control less complicated, maybe a ComboBox...
Vicente Flich
13-Apr-24 13:38pm
View
Thaks Andre, I tried so, but still they crash in the same line e.ItemsSource(l) with and unhandled exception ("Interface not compatible").
Vicente Flich
26-Jan-24 2:40am
View
But, I don't understand this is the problem, simply I want two windows in the same instance. If I code the same but in two events separately:
void MainWindow::ClickButton1(IInspectable const&, RoutedEventArgs const&)
{
w1 = Window();
}
void MainWindow::ClickButton2(IInspectable const&, RoutedEventArgs const&)
{
w2 = Window();
}
They work and create two windows without error. Why cannot do it in the same event handler?
Vicente Flich
3-Oct-23 8:34am
View
Yes, thank you, but the code is generated by WinUI3, and I can't modify it. The question is how to configure the project to force the WinUI 3 to generate code in MBCS from .xaml files.
Vicente Flich
3-Oct-23 8:32am
View
Thanks for your solution, but my problem is not with the L prefix. My problem is that this code with the L prefix is generated automatically from the compiler by WinUI 3 and although I can modify to substitute with _T, when I compile again, the compile regenerate the code with L.
The question is how to configure a project WinUI 3 in Windows App SDK to generate the code in MBCS.
Show More