artefaktur
software engineer &        architecture

 
 
 
 

CoSys_h

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

CoSys.h File Reference

#include <acdk.h>
#include <acdk/lang/String.h>
#include <acdk/lang/dmi/ScriptVar.h>
#include Config.h
#include <malloc.h>
#include <windows.h>


Namespaces

namespace  acdkx
namespace  acdkx::com

Defines

#define CS2W(s)   ((s == 0) ? 0 : (_clength = strlen(s) + 1), convertAnsi2Unicode(s, (wchar_t*)core_alloca(_clength * 2), _clength))
#define S2W(s)   ((s == Nil) ? 0 : (uc2char*)s->uc2c_str())
#define W2CS(ws)   ((ws == 0) ? 0 : (_clength = lstrlenW(ws) + 1), convertUnicode2Ansi(ws, (char*)core_alloca(_clength), _clength))
#define W2S(ws)   new String(ws)
#define S2OLE(s)   ((OLECHAR*)S2W(s))
#define SC2OLE(s)   SC2W(s)
#define OLE2S(bstr)   W2S(bstr)
#define OLE2CS(bstr)   W2CS(bstr)

Functions

wchar_t * convertAnsi2Unicode (const char *from, wchar_t *to, int len)
char * convertUnicode2Ansi (const wchar_t *from, char *to, int len)
BSTR CS2BSTR (const char *cstr)
BSTR String2BSTR (IN(::acdk::lang::RString) str)
RString BSTR2S (BSTR ws)

Define Documentation

#define CS2W  )     ((s == 0) ? 0 : (_clength = strlen(s) + 1), convertAnsi2Unicode(s, (wchar_t*)core_alloca(_clength * 2), _clength))
 

#define OLE2CS bstr   )     W2CS(bstr)
 

#define OLE2S bstr   )     W2S(bstr)
 

#define S2OLE  )     ((OLECHAR*)S2W(s))
 

#define S2W  )     ((s == Nil) ? 0 : (uc2char*)s->uc2c_str())
 

#define SC2OLE  )     SC2W(s)
 

#define W2CS ws   )     ((ws == 0) ? 0 : (_clength = lstrlenW(ws) + 1), convertUnicode2Ansi(ws, (char*)core_alloca(_clength), _clength))
 

#define W2S ws   )     new String(ws)
 


Function Documentation

RString BSTR2S BSTR  ws  )  [inline]
 

wchar_t* convertAnsi2Unicode const char *  from,
wchar_t *  to,
int  len
[inline]
 

char* convertUnicode2Ansi const wchar_t *  from,
char *  to,
int  len
[inline]
 

BSTR CS2BSTR const char *  cstr  )  [inline]
 

BSTR String2BSTR IN(::acdk::lang::RString str  )  [inline]
 

 
Last modified 2005-05-08 18:38 by SYSTEM By Artefaktur, Ing. Bureau Kommer