Boost logo

Boost Users :

From: zh (zhagic_at_[hidden])
Date: 2007-07-13 05:52:40


Greetings.

Say I have a situation like this one:

po::options_description visible("Visible options");
visible.add_options()
        ("opt1", "opt1")
        ("opt2", "opt2")
        ("opt3", "opt3")
        ;

po::options_description hidden("Hidden options");
hidden.add_options()
        ("opt4", po::value<string>(), "opt4")
        ;

po::options_description all_options;
all_options.add(visible).add(hidden);

po::positional_options_description pos;
pos.add("opt4", -1);

po::variables_map vm;
po::store(po::command_line_parser(argc,
        argv).options(all_options).positional(pos).run(), vm);
po::notify(vm);

Now I want to replace char* argv[] with wchar_t* in order to pass a
Unicode file name to a Win32 SDK function CreateFile(). What would be,
in your opinion, an appropriate course of action? I thank you in advance.

ZA


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net