반응형 IT-개발,DB729 [VC++] VC++ 문자 Encoding 방식 싱글바이트캐릭터 SBCS (Single-byte character set) 한 문자 표현에 1Byte를 사용하는 방식이다. 예로 ASCII 코드가 있으며, 한글이나 일본어표현은 불가능하다. 멀티바이트캐릭터 MBCS (Multi-byte character set) 한 문자 표현에 1Byte 이상을 사용하는 방식으로 Windows에서 MBCS에는 딱 두종류가 있다. SBCS와 DBCS( Double-byte character set) 결국 많아봐야 최대 2Byte라는 얘기다. 한글이나 일본어가 처리되는 기본 방식이다. 즉, printf( “안녕하삼” ); std::cout Data type SBCS/MBCS char : 일반적인 1Byte 문자형 char를 사용해서 표현 Unicode wchar_t : wi.. 2010. 9. 30. [VC++] C++ 모든 자료형 정리( 문자열 ) LPSTR : char * LPCSTR : const char * LPCTSTR : const char * 또는 const WCHAR * WORD : 보통 2바이트의 부호없는 정수형 (*.word형을 string형으로 바꾸기 string := IntToStr(word); ) DWORD : 4바이트의 부호없는 정수형 DWORD unsigned long 그럼, WORD와, int의 차이점은... WORD는 4글자 int는 3글자 typedef unsigned short WORD; //WORD는 예약어가 아니죠 (typedef는 변수부분) (cf.define은 전처리 부분) *.단순참고 char, unsigned char, signed char : 1 byte short, unsigned short : 2 b.. 2010. 9. 30. [VC++/MFC] CString to char * 와 char * to CString CString -> char * CString str; str = "Hello"; char* ss = LPSTR(LPCTSTR(str)); char * --> CString char ss[] = "Hello"; CString str; str.Format("%s", ss); (Format대신에 GetBuffer()를 써도 됩니다.) 지식인! Environment: Compiled using VC6.0 Sp3 and tested using Win95/98 WinNT4.0 and Win 2000 Here are a few data Conversions with small examples :- PART ONE :- DECIMAL CONVERSIONS Decimal To Hexa :- Use _itoa( ) fu.. 2010. 9. 30. [VC++] ATL에서 MFC사용, COM관련 확장, MDAC, ADSI사용 1. stdafx.h 파일에 #include 위에 아래와 같이 include 하면 됩니다. 2. 필요에 따라 프로젝트 속성 - 링커 - 입력에 comsvcs.lib activeds.lib adsiid.lib wininet.lib 를 추가합니다. ///////////////////////////////////////////////////////////////////////////// // EOCS_ADD ///////////////////////////////////////////////////////////////////////////// // - MFC 지원 #include // MFC 자동화 클래스입니다. - 코어 및 표준 컴포넌트 #include // MFC 자동화 클래스입니다. - 확장 #incl.. 2010. 9. 29. [ASP.NET] 한글이 포함된 URL로 이동하기 펌 - 데브피아 한글이 포함된 URL로 이동하기 위해 애쓴 경험이 있어 이렇게 써 봅니다. 허접하지만, 도움이 되었으면 하네요~ ^-^; 고민은 했었지만 의외로 쉽게 해결했습니다. 한글이 들어있는 부분만 인코딩 해서 HttpWebRequest 객체에 연결을 했죠. 그냥 전체 URL을 인코딩 한 후 연결할 경우 '.'과 '/' 때문에 예외가 발생하더군요. 예) http://www.test.com/test/test.aspx?param1=이름¶m2=주소¶m3=전화번호 string url = "http://www.test.com/test/test.aspx?param1=이름¶m2=주소¶m3=전화번호"; int p = url.IndexOf('?'); string url = url.Sub.. 2010. 9. 29. [VC++] Search Provider Extensibility in Internet Explorer IE 검색공급자 확장성 Search Provider Extensibility in Internet Explorer Starting with Windows Internet Explorer 7, the Instant Search box provides an AutoComplete feature so users can search for similar search terms used in previous searches. Internet Explorer 7 also enables users to add multiple search providers. Search improvements in Internet Explorer 8 focus on helping users search by significantly .. 2010. 9. 28. [VC++] Installing a Search Provider and Setting the Default IE에서 검색공급자 설치하기 Installing a Search Provider and Setting the Default Windows Internet Explorer 8 extends a rich searching experience by offering users the option to install multiple search providers. As a user installs search providers, each provider has a chance to set itself as the default provider. Internet Explorer 8 has a new mandatory Search Provider Default user experience that keeps the .. 2010. 9. 28. [VC++] Toolbar Button Style Guide Toolbar Button Style Guide This guide will help you design icons for toolbar buttons that you add to the Windows Internet Explorer user interface. Sizes Colors Design Tips Placing Icons Related Topics Overview Tutorial Sizes The Internet Explorer toolbar requires two sizes for all toolbar icons: 20x20 pixel and 16x16 pixel. The following table shows the difference between the two icons. Dimensio.. 2010. 9. 28. [VC++] Adding Toolbar Buttons Adding Toolbar Buttons This tutorial explains how to add a toolbar button to the Windows Internet Explorer user interface. The toolbar button can either run a Microsoft Win32 application, run a script, or open an Explorer Bar. If you also want to create a menu item for the Win32 application or script, see the Adding Menu Items tutorial. Requirements and Dependencies General Steps Adding the Deta.. 2010. 9. 28. 이전 1 ··· 67 68 69 70 71 72 73 ··· 81 다음 반응형