SOL9 Sample: ControlPanel

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * ControlPanel.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// 2012/11/30
// Simple sample program for SOL::ControlPane class.

#include <sol\ole\OleInitializer.h>
#include <sol\shell\ControlPanel.h>

void _tmain(int argc, const TCHAR** argv)
{
  OleInitializer initializer;

  const wchar_t* canonicalName = NULL;
  _bstr_t name = "";
  if (argc == 2) {
    name = argv[1];
    canonicalName = (const wchar_t*)name;
  }

  try {
    ControlPanel controlPanel;
    controlPanel.open((const wchar_t*)canonicalName);
  } catch (HRESULT hr) {
    
  } catch (...) {

  }
}





Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.