1 Screenshot
2 Source code
/*
* WMPSettings.cpp
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2011/12/28
#include <sol/COMInitializer.h>
#include <sol/Locale.h>
#include <sol/wmp/WMPPlayer.h>
#include <sol/wmp/WMPPlaylist.h>
#include <sol/wmp/WMPSettings.h>
#include <sol/wmp/WMPMedia.h>
#include <sol/FileWriter.h>
int _tmain(int argc, _TCHAR* argv[])
{
if (argc !=2) {
_tprintf(_T("Usage: %s xmlFile\n"), argv[0]);
return 0;
}
const TCHAR* xmlFile = argv[1];
COMInitializer initializer;
Locale locale;
try {
FileWriter writer = xmlFile;
writer.writeln(L"<?xml version=\"1.0\" encoding=\"UTF-16\"?>");
WMPPlayer player;
WMPSettings settings = player.getSettings();
writer.writeln(L"<%s>", argv[0]);
settings.writeProperties(writer);
writer.writeln(L"</%s>", argv[0]);
} catch (...) {
printf("Exception\n");
}
}
Last modified: 2 May 2016
Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.