/// <summary> /// Entry point for the application /// </summary> /// <param name="hInstance">handle to the application instance</param> /// <param name="hPrevInstance">always 0</param> /// <param name="lpCmdLine">command line arguments</param> /// <param name="nCmdShow">whether to display minimized, maximized, or normally</param> /// <returns>status</returns> int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); CColorBasics application; application.Run(hInstance, nCmdShow); }
/// <summary> /// Entry point for the application /// </summary> /// <param name="hInstance">handle to the application instance</param> /// <param name="hPrevInstance">always 0</param> /// <param name="lpCmdLine">command line arguments</param> /// <param name="nCmdShow">whether to display minimized, maximized, or normally</param> /// <returns>status</returns> int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { CColorBasics application; //params: DASHout *dasher; loook_opt *options; #ifdef _DEBUG RedirectIOToConsole(); #endif options = loook_init(); gf_sys_init(GF_MemTrackerNone); #ifdef USE_GPAC_LOG gf_log_set_tool_level(GF_LOG_DASH, GF_LOG_DEBUG); if (gf_log_tool_level_on(GF_LOG_DASH, GF_LOG_DEBUG)) { printf("log on"); } else { printf("log off"); } gf_log_set_callback(NULL, on_gpac_log); #endif dasher = muxer_init(options); if(!dasher){ return 1; } application.setDasher(dasher); application.Run(hInstance, nCmdShow, dasher); /* KinectSensor sensor; foreach (var potentialSensor in KinectSensor.KinectSensors) { if (potentialSensor.Status == KinectStatus.Connected) { this.sensor = potentialSensor; break; } }*/ }