GME  13
Classes | Defines | Typedefs | Functions
CommonMfc.h File Reference

Go to the source code of this file.

Classes

class  PutOutCString< char_t >
class  PutInCString
class  CComObjPtrList< ELEM >
class  CComObjPtrArray< ELEM >
class  PutOutArrayObj< COLL, ELEM >

Defines

#define MSGTRY   try
#define MSGCATCH(MSG, CLEANUP)

Typedefs

typedef CArray< CComBstrObj,
CComBstrObj & > 
CComBstrObjArray

Functions

void CopyTo (const CStringA &s, BSTR *b)
void CopyTo (const CStringW &s, BSTR *b)
void CopyTo (const CStringA &s, VARIANT *v)
void CopyTo (const CStringA &s, CComBstrObj &a)
void CopyTo (const CStringW &s, CComBstrObj &a)
void CopyTo (const CStringW &s, CComBSTR &a)
void CopyTo (const CStringA &s, CComVariant &a)
void CopyTo (BSTR b, CStringA &s)
void CopyBSTRTo (const BSTR b, CStringW &s)
void CopyTo (const CComBstrObj &b, CStringW &s)
void CopyTo (const CComBSTR &b, CStringW &s)
void CopyTo (VARIANT &v, CStringA &s)
void CopyTo (const CStringA &s, CComBSTR &b)
PutOutCString< char > PutOut (CStringA &s)
PutOutCString< wchar_t > PutOut (CStringW &s)
template<class COLL , class ELEM >
void CopyTo (COLL *coll, CComObjPtrArray< ELEM > &array)
template<class COLL , class ELEM >
void CopyTo (const CComObjPtr< COLL > &coll, CComObjPtrArray< ELEM > &array)
template<class COLL , class ELEM >
void CopyTo (const CComPtr< COLL > &coll, CComObjPtrArray< ELEM > &array)
template<class COLL , class ELEM >
PutOutArrayObj< COLL, ELEM > PutOut (CComObjPtrArray< ELEM > &coll)
void MoveTo (VARIANT *p, CComBstrObjArray &array)
void MoveTo (CComVariant &v, CComBstrObjArray &array)
void CopyTo (const VARIANT &p, CComBstrObjArray &array)
void MoveTo (CComBstrObjArray &array, VARIANT *p)
void CopyTo (const CComBstrObjArray &array, VARIANT *p)
void CopyTo (VARIANT p, CStringArray &array)
void CopyTo (const CStringArray &array, VARIANT *p)
static CString CEditGetLine (const CEdit &edit, int line=-1)
static void GetFullPathName (const CString &path, CString &filename, CString &dirname)
static CString ConnStrToMgaPath (const CString &connStr)
void DisplayError (const TCHAR *msg, HRESULT hr) NOTHROW

Define Documentation

#define MSGCATCH (   MSG,
  CLEANUP 
)
Value:
catch(hresult_exception &e) \
        { \
                { CLEANUP; } \
                if (e.hr != E_MGA_CONSTRAINT_VIOLATION) \
                        DisplayError(MSG, e.hr); \
        } \
        catch(_com_error &e) { \
                { CLEANUP; } \
                _bstr_t error; \
                if (e.Description() != _bstr_t()) \
                        error = e.Description(); \
		else \
			GetErrorInfo(e.Error(), error.GetAddress()); \
                if (e.Error() != E_MGA_CONSTRAINT_VIOLATION) \
                        AfxMessageBox(_bstr_t(MSG) + ": " + error, MB_OK | MB_ICONSTOP); \
        }

Definition at line 271 of file CommonMfc.h.

#define MSGTRY   try

Definition at line 269 of file CommonMfc.h.


Typedef Documentation

Definition at line 169 of file CommonMfc.h.


Function Documentation

static CString CEditGetLine ( const CEdit &  edit,
int  line = -1 
) [static]

Definition at line 229 of file CommonMfc.h.

static CString ConnStrToMgaPath ( const CString &  connStr) [static]

Definition at line 259 of file CommonMfc.h.

void CopyBSTRTo ( const BSTR  b,
CStringW &  s 
) [inline]

Definition at line 30 of file CommonMfc.h.

void CopyTo ( const CStringA &  s,
BSTR *  b 
) [inline]

Definition at line 14 of file CommonMfc.h.

void CopyTo ( const CStringW &  s,
BSTR *  b 
) [inline]

Definition at line 15 of file CommonMfc.h.

void CopyTo ( const CStringA &  s,
VARIANT *  v 
) [inline]

Definition at line 16 of file CommonMfc.h.

void CopyTo ( const CStringA &  s,
CComBstrObj a 
) [inline]

Definition at line 17 of file CommonMfc.h.

void CopyTo ( const CStringW &  s,
CComBstrObj a 
) [inline]

Definition at line 18 of file CommonMfc.h.

void CopyTo ( const CStringW &  s,
CComBSTR &  a 
) [inline]

Definition at line 19 of file CommonMfc.h.

void CopyTo ( const CStringA &  s,
CComVariant &  a 
) [inline]

Definition at line 20 of file CommonMfc.h.

void CopyTo ( BSTR  b,
CStringA &  s 
) [inline]

Definition at line 22 of file CommonMfc.h.

void CopyTo ( const CComBstrObj b,
CStringW &  s 
) [inline]

Definition at line 37 of file CommonMfc.h.

void CopyTo ( const CComBSTR &  b,
CStringW &  s 
) [inline]

Definition at line 42 of file CommonMfc.h.

void CopyTo ( VARIANT &  v,
CStringA &  s 
) [inline]

Definition at line 47 of file CommonMfc.h.

void CopyTo ( const CStringA &  s,
CComBSTR &  b 
) [inline]

Definition at line 54 of file CommonMfc.h.

template<class COLL , class ELEM >
void CopyTo ( COLL *  coll,
CComObjPtrArray< ELEM > &  array 
)

Definition at line 122 of file CommonMfc.h.

template<class COLL , class ELEM >
void CopyTo ( const CComObjPtr< COLL > &  coll,
CComObjPtrArray< ELEM > &  array 
)

Definition at line 137 of file CommonMfc.h.

template<class COLL , class ELEM >
void CopyTo ( const CComPtr< COLL > &  coll,
CComObjPtrArray< ELEM > &  array 
)

Definition at line 143 of file CommonMfc.h.

void CopyTo ( const VARIANT &  p,
CComBstrObjArray array 
) [inline]

Definition at line 181 of file CommonMfc.h.

void CopyTo ( const CComBstrObjArray array,
VARIANT *  p 
) [inline]

Definition at line 196 of file CommonMfc.h.

void CopyTo ( VARIANT  p,
CStringArray &  array 
) [inline]

Definition at line 205 of file CommonMfc.h.

void CopyTo ( const CStringArray &  array,
VARIANT *  p 
) [inline]

Definition at line 218 of file CommonMfc.h.

void DisplayError ( const TCHAR *  msg,
HRESULT  hr 
)

Definition at line 8 of file CommonMfc.cpp.

static void GetFullPathName ( const CString &  path,
CString &  filename,
CString &  dirname 
) [static]

Definition at line 248 of file CommonMfc.h.

void MoveTo ( VARIANT *  p,
CComBstrObjArray array 
) [inline]

Definition at line 171 of file CommonMfc.h.

void MoveTo ( CComVariant &  v,
CComBstrObjArray array 
) [inline]

Definition at line 179 of file CommonMfc.h.

void MoveTo ( CComBstrObjArray array,
VARIANT *  p 
) [inline]

Definition at line 189 of file CommonMfc.h.

PutOutCString<char> PutOut ( CStringA &  s) [inline]

Definition at line 87 of file CommonMfc.h.

PutOutCString<wchar_t> PutOut ( CStringW &  s) [inline]

Definition at line 92 of file CommonMfc.h.

template<class COLL , class ELEM >
PutOutArrayObj<COLL, ELEM> PutOut ( CComObjPtrArray< ELEM > &  coll)

Definition at line 162 of file CommonMfc.h.