I downloaded Panda3d and installed it tonight. To my surprise, most of the VS2008 documentation corresponded with VS2012, which I am using. Unfortunately, when I attempted to run my first sample program, which opens a window, I am bombarded with error messages regarding UTF-8 characters and the window crashing. If I remove any string from the program, it runs just fine. I’ve googled this a good bit, but can’t find any solid solutions.
Does anyone know how to fix this character set problem in VS2012?
Thanks
James
#include "pandaFramework.h"
#include "pandaSystem.h"
PandaFramework framework;
int main(int argc, char *argv[])
{
framework.open_framework(argc, argv);
//framework.set_window_title("");
WindowFramework *window = NULL;
window = framework.open_window();
window->enable_keyboard();
window->setup_trackball();
if(window != NULL)
{
//nout << "Opened the window!\n";
framework.main_loop();
} else
//nout << "Can not open window";
framework.close_framework();
return 0;
}