ngzaharias
Topic Author
Posts: 4
Joined: 10 Oct 2017, 06:02

Help getting started with C++

02 Aug 2024, 03:46

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.
EmbeddedXaml xamls[] =
{
	{ "App.xaml", App_xaml },
	{ "MainWindow.xaml", MainWindow_xaml }
};
 
User avatar
jsantos
Site Admin
Posts: 4042
Joined: 20 Jan 2012, 17:18
Contact:

Re: Help getting started with C++

02 Aug 2024, 15:25

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
Topic Author
Posts: 4
Joined: 10 Oct 2017, 06:02

Re: Help getting started with C++

03 Aug 2024, 02:09

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.
 
User avatar
jsantos
Site Admin
Posts: 4042
Joined: 20 Jan 2012, 17:18
Contact:

Re: Help getting started with C++

05 Aug 2024, 14:17

Glad to help!

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest