SOL9 2.0 Class: XMLObject

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * 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;
    }
};

}

Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.