stl,mfc,atl 등에서 데이터 타입이 제각각인지라

어플 <-> 웹 간에 데이터를 주고 받을때 케스팅이 필요한 경우가 있더라~

com 의 경우도 마찬가지이고. ㅠㅠ

변환방법을 찾다가 얻은 링크들이다..



LPSTR,LPCSTR,LPTSTR,LPWSTR,LPCWSTR 정보링크 : http://blog.naver.com/kkan22/80050248215

BSTR 사용 정보 링크 : http://blog.naver.com/noforest/70028493852

char*, wchar_t*, _bstr_t, CComBSTR, CString, basic_string, System.String 변환 :

http://darkblitz.tistory.com/tag/_bstr_t

자주쓰지 않아서 인지
매번 찾게 된다.. 찾을때 마다 시간낭비.. ㅜㅜ


SELECT DATE_FORMAT(regist_date, '%Y-%m-%d'),count(id_or_ip)
FROM foo_tbl
WHERE regist_date > '2008-10-31 23:59:59' AND is_stop = 'Y'
GROUP BY DATE_FORMAT(regist_date, '%Y-%m-%d')
INTO OUTFILE '/tmp/foo.unl'
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n';


머리 나쁘면 개고생~~~
기본으로 리눅스를 설치하고 터미널을 xterm 으로 설정후

'ls' 를 날려보면

OTL

눈이 아플 정도로 디렉토리 색깔이 너무 파랗다~

그래서 설정을 변경해 보았다..

# cp /etc/DIR_COLORS.xterm ~/.dir_colors

복사후 vi 로 .dir_colors 파일을 편집해보자..

뚜껑을 열고 42라인 정도로 이동하면 아래와 같이 나온다..

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00   # global default, although everything should be something.
FILE 00     # normal file
#DIR 00;34   # directory   <--- 기본설정
DIR 01;31   # directory
LINK 00;36  # symbolic link
FIFO 40;33  # pipe
SOCK 00;35  # socket
BLK 40;33;01    # block device driver
CHR 40;33;01    # character device driver
ORPHAN 01;05;37;41  # orphaned syminks
MISSING 01;05;37;41 # ... and the files they point to

위와 같이 변경후 터미널을 재 접속하면.. .두둥...

당신의 눈은 훨씬편해져 있을 것이다~~ ^^

+ Recent posts