/*
* XMLObject.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2011/01/23 Base class for XMLSomthing classes
#pragma once
#include <sol/com/ComObject.h>
#include <sol/com/ComError.h>
#import <msxml3.dll>
//#import <msxml6.dll>
using namespace MSXML2;
namespace SOL {
class XMLObject :public Object {
public:
/**
* Constructor
*/
XMLObject()
{
}
public:
/**
* Destructor
*/
~XMLObject()
{
}
public:
virtual void dump()
{
}
public:
unsigned short* toShort(const _bstr_t string)
{
return (unsigned short*)(void*)((const wchar_t*)string);
}
public:
unsigned short* toShort(const wchar_t* pwchName)
{
return (unsigned short*)(void*)pwchName;
}
public:
wchar_t* toWchar(const unsigned short* pwchName)
{
return (wchar_t*)(void*)pwchName;
}
};
}
|