혹시나 하는 마음에
Eclipse IDE for C/C++ Developers (79 MB)
를 받고 실행했는데, 역시나 eclipse는 JRE나 JDK가 있어야 실행이 된다.

그래서 봤더니.. 자바 버전이 JDK6 update 14까지 나왔다 -ㅁ-!
아무튼 사랑하는 netbeans 포함 버전을 선택(그러고 보니.. JRE 외에는 전부 통합버전이다)
다운로드를 받고 설치 하려니 요구용량이 500M에 근접한다. ㄱ-

그리고 나서 실행했는데 이 먼가 허전한 느낌..
c와 c++ 프로젝트는 생성이 되는데, MFC 라던가 이런건 아무래도 무리인 듯..

그래서 검색을 해봤더니, class wizard나 project wizard 없이 사용하는건 실질적으로 불가능하다는 이야기가 나왔다.
[링크 : http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg01844.html]

Migrate Visual Studio C and C++ projects to Eclipse CDT
[링크 : http://www.ibm.com/developerworks/library/os-ecl-vscdt/]


솔찍히.. wizard없이 손으로 일일이 직접 mfc 코드들을 작성하기란 쉬운일은 아니다.
머.. 그래서 잠시 Visual studio express버전을 검색했는데..

일단 VB와 VC++은 존재한다.
마음에 걸리는건.. 2008 버전! ㄱ-
혹시.. .net을 강요하는건 아니겠지? 나중에 다른 pc에 설치나 해봐야겠다 쩝...

'프로그램 사용 > eclipse CDT & minGW' 카테고리의 다른 글

eclipse CDT plugin 설치하기  (2) 2012.01.29
eclipse에서 archive (*.a) 링크하기  (0) 2012.01.18
eclipse CDT 에서 include 경로 추가하기  (0) 2012.01.17
MinGW  (0) 2010.09.07
Eclipse IDE for C/C++ Developers  (0) 2009.07.06
Posted by 구차니
개소리 왈왈2009. 7. 13. 14:13

반정부적인 네이트온인가 -ㅁ-?
빨강색을 선택하다니!!!!



가끔 메일 보러 가신다는 선배 1인이 홈페이지는 이미 바뀌어있었다는 제보를 해주셨는데..
메일보러 가지도 않았던 지라.. 나에게는 오늘 처음 바뀐것이다 -ㅁ-!

'개소리 왈왈' 카테고리의 다른 글

티맥스 윈도우 상표?  (0) 2009.07.15
악마의 글!!!  (2) 2009.07.14
난 보스몹이 아니거덩?  (6) 2009.07.12
49.68km 4시간  (6) 2009.07.11
티월드 쇼핑은 SUN 이다?  (0) 2009.07.10
Posted by 구차니
Programming/C Win32 MFC2009. 7. 13. 12:28
CTreeCtrl은 탐색기의 디렉토리를 보여주는 녀석이다
트리컨트롤에 데이터를 넣는 방법은 InserItem 이라는 함수를 사용하면 되는데,
이 함수를 유심히 살펴보면 HTREEITEM hParen = TVI_ROOT 라는 것이 있다.

// afxcmn.h
// Operations
	HTREEITEM InsertItem(LPTVINSERTSTRUCT lpInsertStruct);
	HTREEITEM InsertItem(UINT nMask, LPCTSTR lpszItem, int nImage,
		int nSelectedImage, UINT nState, UINT nStateMask, LPARAM lParam,
		HTREEITEM hParent, HTREEITEM hInsertAfter);
	HTREEITEM InsertItem(LPCTSTR lpszItem, HTREEITEM hParent = TVI_ROOT,
		HTREEITEM hInsertAfter = TVI_LAST);
	HTREEITEM InsertItem(LPCTSTR lpszItem, int nImage, int nSelectedImage,
		HTREEITEM hParent = TVI_ROOT, HTREEITEM hInsertAfter = TVI_LAST);

// commctrl.h #define TVI_ROOT ((HTREEITEM)0xFFFF0000) #define TVI_FIRST ((HTREEITEM)0xFFFF0001) #define TVI_LAST ((HTREEITEM)0xFFFF0002) #define TVI_SORT ((HTREEITEM)0xFFFF0003)

별 다른 것은 없고, 이번에 추가하는 아이템은 Root 아이템으로 적용을 하라는 것인데,
Root 아이템은 위의 이미지에서 Expanded Node / Leaf 라는 두녀석이다.
아무튼 위와 같이 tree 구조로 넣기위해서는 InserItem 함수의 return 값을 유심히 봐야한다.

HTREEITEM InsertItem(LPCTSTR lpszItem, HTREEITEM hParent = TVI_ROOT, HTREEITEM hInsertAfter = TVI_LAST);

InsertItem은 리턴값으로 추가한 녀석의 핸들을 돌려준다.
그리고 입력으로 TVI_ROOT가 들어가거나 혹은 핸들이 들어간다.



위와 같은 구조로 하기 위해서는 아래와 같이 구현하면 된다.

HTREEITEM expand;
HTREEITEM expand_2nd;
HTREEITEM expand_3rd;

expand= InsertItem("Expanded Node", TVI_ROOT, TVI_LAST);
expand_2nd = InsertItem("Expanded Node", expand, TVI_LAST);
                            InsertItem("Leaf", expand_2nd, TVI_LAST);
                            InsertItem("Leaf", expand_2nd, TVI_LAST);
expand_3rd = InsertItem("Collapsed Node", expand, TVI_LAST);
                            InsertItem("Leaf", expand_3rd, TVI_LAST);
                            InsertItem("Leaf", expand_3rd, TVI_LAST);
InsertItem("Leaf", TVI_ROOT, TVI_LAST);


[링크 : http://msdn.microsoft.com/ko-kr/library/7w95665f%28VS.80%29.aspx] CTreeCtrl Members
[링크 : http://msdn.microsoft.com/ko-kr/library/cc468290%28VS.71%29.aspx]
Posted by 구차니
개소리 왈왈2009. 7. 12. 11:05
집안모임에 가게되면 내가 맡게 되는 역활은 항상 정해져있다.


"애보기" (라고 쓰고 애들에게 당해주기 라고 읽으시면 정확한겁니다)


이번에는.. 한 5넘이서 레이드 하는 식으로 베게싸움을 하다 보니..
정말.. 나 보스몹이었나? 라는 망상마저 -ㅁ-!

'개소리 왈왈' 카테고리의 다른 글

악마의 글!!!  (2) 2009.07.14
nateon 메신저 로고 변경!  (5) 2009.07.13
49.68km 4시간  (6) 2009.07.11
티월드 쇼핑은 SUN 이다?  (0) 2009.07.10
핸드폰 진동소리  (4) 2009.07.09
Posted by 구차니
개소리 왈왈2009. 7. 11. 00:28
63빌딩을 찍을려고 했는데..
결국에는 또 실패하고 이리저리 돌아다니다가 겨우겨우 돌아왔다.


음.. 북쪽으로 건너가기에는 잠실철교가 가장 무난한 듯 하다.

'개소리 왈왈' 카테고리의 다른 글

nateon 메신저 로고 변경!  (5) 2009.07.13
난 보스몹이 아니거덩?  (6) 2009.07.12
티월드 쇼핑은 SUN 이다?  (0) 2009.07.10
핸드폰 진동소리  (4) 2009.07.09
티맥스 실황중계  (2) 2009.07.07
Posted by 구차니
티맥스 솔찍히 기대도 하지 않았지만

티맥스의 티맥스 윈도우 발표를 기다렸다는 듯이
구글에서 구글OS 이야기가 나왔다.

어쩌면 너무나도 멋진 타이밍에 구글에서 OS이야기를 꺼낸건지는 알수가 없지만
리플들의 내용이 너무나도 다르고, 그로 인해서 슬프기까지 했다.



문득 드는 의문 "구글은 절대선인가?"

구글이 비록 지금까지 잘해왔고, 현재로서는 그래도 MS의 대항마로 선이라고 불리고는 있지만
기업이라는 특성상 선도, 악도 아닌 철저히 이윤을 추구하는 그룹일 뿐인데..

단지 "미국"산 기업이기 때문일까..
아니면 삼성보다 "기부"를 잘하고
아니면 삼성보다 "이미지 관리"를 잘하기 때문이었을까?



물론 개인적으로 티맥스의 티맥스 윈도우를 감싸주고 싶지는 않고
그렇다고 해서 구글빠는 절대아니다.

그럼에도 불구하고.. 절대적인 구글OS에 대한 기대와 구글에 대한 찬양
그에 상반되는 티맥스에 대한 폭언에 가까운 악플들은 어떻게 받아들여야 할까...
Posted by 구차니
프로그램 사용/libjpeg2009. 7. 10. 17:34
일단 해보니..
struct jpeg_decompress_struct 에
quantize_colors 항목을 TRUE로 설정해주면
colormap 에 팔레트가 생성이되고,
actual_number_of_colors 에는 실제 사용한 색상수 출력이 된다고 하는데..

팔레트가 어떻게 되는지 libjpeg.doc에 제대로 나와있지 않다..
아래의 링크를 조금은 유심히 보고 수정요망

After this call, the final output image dimensions, including any requested
scaling, are available in the JPEG object; so is the selected colormap, if
colormapped output has been requested.  Useful fields include

    output_width        image width and height, as scaled
    output_height
    out_color_components    # of color components in out_color_space
    output_components    # of color components returned per pixel
    colormap        the selected colormap, if any
    actual_number_of_colors        number of entries in colormap

output_components is 1 (a colormap index) when quantizing colors; otherwise it
equals out_color_components.  It is the number of JSAMPLE values that will be
emitted per pixel in the output arrays.

Typically you will need to allocate data buffers to hold the incoming image.
You will need output_width * output_components JSAMPLEs per scanline in your
output buffer, and a total of output_height scanlines will be returned.

Note: if you are using the JPEG library's internal memory manager to allocate
data buffers (as djpeg does), then the manager's protocol requires that you
request large buffers *before* calling jpeg_start_decompress().  This is a
little tricky since the output_XXX fields are not normally valid then.  You
can make them valid by calling jpeg_calc_output_dimensions() after setting the
relevant parameters (scaling, output color space, and quantization flag).

...

The decompression parameters that determine the basic properties of the
returned image are:

J_COLOR_SPACE out_color_space
    Output color space.  jpeg_read_header() sets an appropriate default
    based on jpeg_color_space; typically it will be RGB or grayscale.
    The application can change this field to request output in a different
    colorspace.  For example, set it to JCS_GRAYSCALE to get grayscale
    output from a color file.  (This is useful for previewing: grayscale
    output is faster than full color since the color components need not
    be processed.)  Note that not all possible color space transforms are
    currently implemented; you may need to extend jdcolor.c if you want an
    unusual conversion.

...

boolean quantize_colors
    If set TRUE, colormapped output will be delivered.  Default is FALSE,
    meaning that full-color output will be delivered.

...

When quantize_colors is TRUE, the target color map is described by the next
two fields.  colormap is set to NULL by jpeg_read_header().  The application
can supply a color map by setting colormap non-NULL and setting
actual_number_of_colors to the map size.  Otherwise, jpeg_start_decompress()
selects a suitable color map and sets these two fields itself.
[Implementation restriction: at present, an externally supplied colormap is
only accepted for 3-component output color spaces.]

JSAMPARRAY colormap
    The color map, represented as a 2-D pixel array of out_color_components
    rows and actual_number_of_colors columns.  Ignored if not quantizing.
    CAUTION: if the JPEG library creates its own colormap, the storage
    pointed to by this field is released by jpeg_finish_decompress().
    Copy the colormap somewhere else first, if you want to save it.

int actual_number_of_colors
    The number of colors in the color map.

...

int out_color_components    Number of color components in out_color_space.
int output_components        Number of color components returned.

[출처 : libjpeg.doc]





[링크 : http://svn.neurostechnology.com/filedetails.php]
[링크 : http://www.koders.com/c/fid95CCE6190079AB3FDDE3C71309BA75EB5BA943FC.aspx]
Posted by 구차니
개소리 왈왈2009. 7. 10. 12:36
그냥 요금제 잠시 보다가
1000원에 보상판매 핸드폰이 보이길래 먼가 해서 눌렀더니
파비콘이 이상하다 싶어서
한참을 보다가
IE8로도 들어 가봤는데.. 맞다.. 뭥미?



IE8에서 본 파비콘은 마비노기 같네 -ㅁ-


흐음.. SUN사의 로고는 그대로인데 파비콘이 바뀌어서 다행인가?!

'개소리 왈왈' 카테고리의 다른 글

난 보스몹이 아니거덩?  (6) 2009.07.12
49.68km 4시간  (6) 2009.07.11
핸드폰 진동소리  (4) 2009.07.09
티맥스 실황중계  (2) 2009.07.07
나는 무엇을 하고 있는걸까?  (2) 2009.07.03
Posted by 구차니
DDoS는 하도 많이 들었을테니 자세한 내용은 생략..


아무트 DDoS는 서버를 죽이는게 목적인데,
솔찍히 서버죽이는 것만으로는 기업의 신뢰도에 먹칠을 하기는 해도
뒷거래를 하는 것 보다는 서버가 죽는게 낫다고 생각을 한다.
물론 사용자의 불만은 감수해야 겠지만 말이다.



아무튼, 공격자도 IP도 못 찾은 상황에서 사이버테러니 머니 하면서 불안을 조장하는 정부를 보고 있으면
각종 게이트와 사건을 감추기 위해 또 다른 사건을 터트리는게 아닐까 싶기도 하고, 여러가지 의혹이 든다.

아무튼,
DDoS 공격은

1. 말그대로 서비스 중단시켜서 사용자의 불만을 발생시키고, 이를 두려워하는 서비스 업체를 협박하여 돈을 뜯어내거나
2. DDoS는 연막이고 실제로는 많아진 트래픽 속에 숨어 해킹을 하는게 목적인데..

뜬금없이 북한이 배후다 이러는 건 이래저래 안 맞다랄까..
사이버테러치고는 개인정보 유출이나 메일서버 다운, 옥션서버 다운 따위는 너무 유치하지 않나?

북한에서 메일을 못보내서 열받았나
아니면 옥션에서 싸게 못사서 열받았나?
그것도 아니라면 중국처럼 개인정보 팔아먹어서 외화벌어 들일려고 이런짓을 할까?
Posted by 구차니
프로그램 사용2009. 7. 10. 11:02

방문"기록" 저장안함이 "지록" 으로 오타가 났다.
흠.. 어느 경로를 통해서 알려줘야 하나?

흐음.. 이미 5월에 포스팅 된 내용이군..
[링크 : http://forums.mozilla.or.kr/viewtopic.php?f=2&t=11525&sid=1e8b2575b8473a2e6ca57f4af9c2dc1c#p39600]


그리고 3.5가 구동이 어~~~~~엄청 느린 문제가 요근래에 있었는데
C:\Documents and Settings\[userid]\Local Settings
아래의 History / Temp / Temporary Internet Files
디렉토리의 내용을 비워주면 날아다닌다. 경이로울 정도의 구동속도!!!

Posted by 구차니