This commit is contained in:
biosvos
2026-08-07 17:38:18 +09:00
commit 873193a243
9613 changed files with 2755992 additions and 0 deletions
@@ -0,0 +1,126 @@
// SmartInterfacePtr.h: interface for the TInterfacePtr class.
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2000-2001 by Paolo Messina
// (http://www.geocities.com/ppescher - ppescher@yahoo.com)
//
// The contents of this file are subject to the Artistic License (the "License").
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// http://www.opensource.org/licenses/artistic-license.html
//
// If you find this code useful, credits would be nice!
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SMARTINTERFACEPTR_H__A0E1BBE7_A5D8_4A80_9A36_ED5553FE74F6__INCLUDED_)
#define AFX_SMARTINTERFACEPTR_H__A0E1BBE7_A5D8_4A80_9A36_ED5553FE74F6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
template <class TYPE>
class TInterfacePtr
{
public:
~TInterfacePtr()
{ Free(); }
BOOL IsValid() const
{ return m_pIface != NULL; }
TYPE * operator -> ()
{ return m_pIface; }
const TYPE * operator -> () const
{ return m_pIface; }
operator TYPE * ()
{ return m_pIface; }
protected:
TYPE * m_pIface;
// must derive from this class
TInterfacePtr()
{ m_pIface = NULL; }
TInterfacePtr(const TInterfacePtr& obj)
{ Copy(obj.m_pIface); }
const TInterfacePtr& operator = (const TInterfacePtr& obj)
{
Free();
Copy(obj.m_pIface);
return *this;
}
void Copy(TYPE * pIface);
void Free();
};
template <class TYPE>
inline void TInterfacePtr<TYPE>::Copy(TYPE * pIface)
{
m_pIface = pIface;
if (m_pIface != NULL)
m_pIface->AddRef();
}
template <class TYPE>
inline void TInterfacePtr<TYPE>::Free()
{
if (m_pIface != NULL)
{
m_pIface->Release();
m_pIface = NULL;
}
}
// static storage
template <class TYPE>
class TStaticInterfacePtr
{
public:
~TStaticInterfacePtr()
{ Free(); }
BOOL IsValid() const
{ return m_pIface != NULL; }
TYPE * operator -> ()
{ return m_pIface; }
const TYPE * operator -> () const
{ return m_pIface; }
operator TYPE * ()
{ return m_pIface; }
protected:
static TYPE * m_pIface;
TStaticInterfacePtr() {}
// cannot copy - use another instance
TStaticInterfacePtr(const TStaticInterfacePtr&) {}
const TStaticInterfacePtr& operator = (const TStaticInterfacePtr&) {}
void Free();
};
template <class TYPE>
TYPE * TStaticInterfacePtr<TYPE>::m_pIface = NULL;
template <class TYPE>
inline void TStaticInterfacePtr<TYPE>::Free()
{
if (m_pIface != NULL)
if (0 == m_pIface->Release())
m_pIface = NULL;
}
#endif // !defined(AFX_SMARTINTERFACEPTR_H__A0E1BBE7_A5D8_4A80_9A36_ED5553FE74F6__INCLUDED_)
@@ -0,0 +1,89 @@
/*
URI manipulation routines.
Copyright (C) 1999-2005, Joe Orton <joe@manyfish.co.uk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA
*/
#ifndef NE_URI_H
#define NE_URI_H
#include "ne_defs.h"
BEGIN_NEON_DECLS
/* Return a copy of a path string with anything other than
* "unreserved" and the forward-slash character percent-encoded
* according to the URI encoding rules. Returns a malloc-allocated
* string and never NULL. */
char *ne_path_escape(const char *path);
/* Return a decoded copy of a percent-encoded path string. Returns
* malloc-allocated path on success, or NULL if the string contained
* any syntactically invalid percent-encoding sequences. */
char *ne_path_unescape(const char *epath);
/* Returns malloc-allocated parent of path, or NULL if path has no
* parent (such as "/"). */
char *ne_path_parent(const char *path);
/* Returns strcmp-like value giving comparison between p1 and p2,
* ignoring trailing-slashes. */
int ne_path_compare(const char *p1, const char *p2);
/* Returns non-zero if child is a child of parent */
int ne_path_childof(const char *parent, const char *child);
/* Returns non-zero if path has a trailing slash character */
int ne_path_has_trailing_slash(const char *path);
/* Return the default port for the given scheme, or 0 if none is
* known. */
unsigned int ne_uri_defaultport(const char *scheme);
typedef struct {
char *scheme;
char *host;
unsigned int port;
char *path;
char *authinfo;
} ne_uri;
/* Parse absoluteURI 'uri' and place parsed segments in *parsed.
* Returns zero on success, non-zero on parse error. On successful or
* error return, all the 'char *' fields of *parsed are either set to
* NULL, or point to malloc-allocated NUL-terminated strings.
* ne_uri_free can be used to free the structure after use.*/
int ne_uri_parse(const char *uri, ne_uri *parsed);
/* Turns a URI structure back into a string. String is
* malloc-allocated, and must be freed by the caller. */
char *ne_uri_unparse(const ne_uri *uri);
/* Compares URIs u1 and u2, returns non-zero if they are found to be
* non-equal. The sign of the return value is <0 if 'u1' is less than
* 'u2', or >0 if 'u2' is greater than 'u1'. */
int ne_uri_cmp(const ne_uri *u1, const ne_uri *u2);
/* Frees any non-NULL fields of parsed URI structure *parsed. All
* fields are then zero-initialized. */
void ne_uri_free(ne_uri *parsed);
END_NEON_DECLS
#endif /* NE_URI_H */
@@ -0,0 +1,19 @@
// 컴퓨터에서 Microsoft Visual C++를 사용하여 생성한 IDispatch 래퍼 클래스입니다.
// 참고: 이 파일의 내용을 수정하지 마십시오. Microsoft Visual C++에서
// 이 클래스를 다시 생성할 때 수정한 내용을 덮어씁니다.
#include "stdafx.h"
#include "ptxshcombo.h"
/////////////////////////////////////////////////////////////////////////////
// CPTxShCombo
IMPLEMENT_DYNCREATE(CPTxShCombo, CComboBox)
/////////////////////////////////////////////////////////////////////////////
// CPTxShCombo 속성입니다.
/////////////////////////////////////////////////////////////////////////////
// CPTxShCombo 작업입니다.