Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dpieve/word-counter.winui3
Counts and rank the words in a given text. I developed it to test WinUI3 for building modern desktop applications on Windows.
https://github.com/dpieve/word-counter.winui3
cpp modern modernui windows winrt winui3 xaml
Last synced: 2 days ago
JSON representation
Counts and rank the words in a given text. I developed it to test WinUI3 for building modern desktop applications on Windows.
- Host: GitHub
- URL: https://github.com/dpieve/word-counter.winui3
- Owner: dpieve
- License: mit
- Created: 2023-02-18T21:57:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-02-19T01:31:35.000Z (over 1 year ago)
- Last Synced: 2024-05-11T15:48:09.602Z (6 months ago)
- Topics: cpp, modern, modernui, windows, winrt, winui3, xaml
- Language: C++
- Homepage:
- Size: 5.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Word Counter in C++/WinRT using WinUI3
This is a project that counts the number of words in a text. It was written in C++ to test and learn more about WinUI3, a modern UI framework for building Windows desktop applications.
WinUI3 offers some benefits for C++ developers, but there are many limitations to be aware of. For example, WinUI3 has some issues related to data binding that can make it more difficult to work with than C# and XAML. Additionally, there are more details to configure in WinUI3 than in C# and XAML for creating something simple like this Word Counter app. Another example, there is no `DataGrid` in C++/WinRT and because of that, it isn't straightforward to implement a table.
Knowing those challenges, one way out for larger projects might be creating a C# based project and consume that from the C++ project as shown in the [C# Island in C++/WinRT Sample](https://github.com/CommunityToolkit/Sample-Windows-CppWinRT).
### How to use it:
1. Type or paste some text into the input box.
2. Click the "Submit" button to count the number of words in the text.
3. The result will be displayed on the right side of the window.### Showcase
## Build
To build and run this project, you'll need the following Visual Studio 2022 with the "Desktop development with C++" workload.
#### Building and running the project:
1. Clone this repository or download the source code as a ZIP file.
2. Open the solution file (`WordCounter.sln`) in Visual Studio.
3. Build and run the solution.## Contributing
If you have any ideas or suggestions for how to improve the code, please feel free to share them with me. You can do this by opening an issue on GitHub or by creating a pull request with your proposed changes.## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.