- ngzaharias
- Posts: 4
- Joined:
Help getting started with C++
I'm trying to get started with Noesis and making an application and I've loaded up the HelloWorld example source and two things jumped out at me that I didn't understand how they work.
1. #include "App.xaml.bin.h"
^ this file doesn't exist and gives compile errors, is it referring to App.xaml that is located in the data folder? If so, the project doesn't include it, also if so, how does adding .bin.h at the end even work? I wouldn't expect it to find that file?
2. App_xaml and MainWindow_xaml are undefined. I can't find any references to these variables anywhere in the library provided.
1. #include "App.xaml.bin.h"
^ this file doesn't exist and gives compile errors, is it referring to App.xaml that is located in the data folder? If so, the project doesn't include it, also if so, how does adding .bin.h at the end even work? I wouldn't expect it to find that file?
2. App_xaml and MainWindow_xaml are undefined. I can't find any references to these variables anywhere in the library provided.
Code: Select all
EmbeddedXaml xamls[] =
{
{ "App.xaml", App_xaml },
{ "MainWindow.xaml", MainWindow_xaml }
};
Re: Help getting started with C++
These "*.bin.h" files are automatically generated when building the project. We developed a custom tool "bin2h" (included in the C++ SDK) for converting binaries to C headers. This is what we are using for embedding assets in the executable for all our samples.
- ngzaharias
- Posts: 4
- Joined:
Re: Help getting started with C++
Ah I now see that on each of the files inside the project you've setup a custom build tool to do the conversion and inside those files (once converted) is where the App_xaml and MainWindow_xaml are defined. Thank you for you direction.
Re: Help getting started with C++
Glad to help!
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest