Ticket #15220: cli1.cpp

File cli1.cpp, 351 bytes (added by ___matthieu___, 7 years ago)

original sample

Line 
1/*
2 *
3 */
4#include <iostream>
5#include <wx/wx.h>
6#include <wx/config.h>
7
8class CLI1 : public wxAppConsole
9{
10    int OnRun();
11};
12wxDECLARE_APP(CLI1);
13
14int CLI1::OnRun()
15{
16    std::cout << wxConfig::GetLocalFileName("hugin") << std::endl;
17    std::cout << wxConfig::GetLocalFileName("hugin", wxCONFIG_USE_SUBDIR) << std::endl;
18}
19
20wxIMPLEMENT_APP(CLI1);