• 카테고리
    • 전체 글

    • 카테고리1
    • 카테고리2
    • 카테고리3
    • 카테고리4
  • 태그
  • 방명록

'2003/08'에 해당되는 글 19건

  • 2003.08.29 SetBkColor와 SetBkMode의 차이점. 4
  • 2003.08.29 지금 생각해보면 할것이 정말 많다.
  • 2003.08.27 몇일간의 인터넷 봉인. 2
  • 2003.08.25 윈도우에서 고용량 하드 인식하는 방법
  • 2003.08.20 시원한 여름이라...
  • 2003.08.18 블러스트라는 바이러스.
  • 2003.08.18 여기다가 아닌 블로그안에 소설을...
  • 2003.08.14 금연이란 말은... 이젠 자신있게 쓸 수 있을려나?

SetBkColor와 SetBkMode의 차이점.

기술자료/CPP 2003. 8. 29. 18:41
보통 텍스트를 쓸때, 배경 색과 텍스트의 배경색이 틀려지면,
이상하게 글자 주변에만 기묘한 색이 되어 배경색과 따로 논다.
즉 글자만 색이 달라야 하는데, 글자를 기준으로 글자 크기만한
사각형이 다른 색이라면 정마리지 보기 싫어지게 된다.

그래서 이를 방지하기 위해 SetBkMode라는 메소드를 이용해,
SetBkMode(TRANSPARENT)  를 호출한다.

그러나 이것을 OnCtrlColor에서 사용하면 기묘한 결과를 얻어 낸다.


HBRUSH CTextCtrl::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
        HBRUSH hbr = CWnd::OnCtlColor(pDC, pWnd, nCtlColor);
        if(pWnd == m_pEdit) {
                pDC->SetBkMode(TRANSPARENT);
                pDC->SetTextColor(m_fontColor);
                return (HBRUSH)m_brush;
        }
        return hbr;
}

위의 내용이 바로 그 내용인데, 이렇게 해도 일단은 원하는 기능은 얻기는 한다.
그러나 문제가 있다. 스크롤이 되거나 새로운 글자가 입력될때, 이전 글자가 지워지지 않고
계속 겹쳐져 그려지는 문제이다. 이는 위의 Mode가 TRANSPARENT 여서 계속 겹쳐져서
그려지는 것 같다.

이를....
pDC->SetBkMode(TRANSPARENT);
    ->
pDC->SetBkColor(m_backColor);

로 변경해 준다.
이렇게 하면 비록 투명은 아니지만 그와 같은 효과를 얻게 된다. 더욱이 이전에 발생한 문제가
해결된다.

이 문제는 글자를 새롭게 입력을 받는 에디트 컨트롤을 child로 잡게 된 경우에 발생하는 문제다.

728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

지금 생각해보면 할것이 정말 많다.

잡글 2003. 8. 29. 16:33
내가 지금까지 왜 이리 시간을 허비했는지..
물론 지금도 상당한 시간을 쏟아 붓고 있지만,
곰곰히 생각하면 시간을 낭비하고 있다는 생각을 다시 가지게 한다.

쉰다는 이유로, 각종 게임도 하고, 애니메이션 감상도 했다.
물론 그 덕에 머리속이 상당히 유연해져, 새로운 생각을 가질 수 있지만...
하지만, 지금은 만들고 싶은 것으로 가득차 버렸다.

일단, 작업 테이블을 만들어 내가 만들어야 할 것들을 적어봐야 겠다.

먼저 교수님과 하는 Flex Builder. 이것이 지금의 최우선순위.
그리고 쵸비츠의 마스코트 한글화. 사실 리빌드나 다름 없는 작업이다.  최하 순위
그리고 NAOKO. 이건.. 정말이지.. 빨리 만들고 싶다. 갑자기 떠올라 제안서 부터
적은 내용이지만... 어떻게 될지는 모르겠다.

일단.. 이 세가지를 근간으로 하나씩 정리하며 끝내야 겠다.
728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

몇일간의 인터넷 봉인.

잡글 2003. 8. 27. 12:48
저번 주 즈음 부터 블러스터라는 바이러스가 활성화 되기 시작했다.
원인은 개학.
개학후, 각종 컴퓨터들이 활성화 되면서 갑작스럽게 퍼지기 시작했다.
막아 보려 안간힘 이였지만, 어딘지 알 수없는 곳에서 터지듯 발생한 각종
문제들은 도무지 수습할 길이 없어지고,
그중 가장 문제점이 많다던 공학관 1관의 인터넷 폐쇠라는 극단적인
방법으로 해결해 버렸다. - -;
그덕에 이 곳은 인터넷 봉인 상태였고, 아무것도 안되었다.

솔직히 난 그 때 그다지 인터넷에대해서 갈망하지 않았다.
단지 이메일이 안될뿐 그 이상도 그 이하도 아니였다.
인터넷이 안되도 할것은 무지도 많았던 것이다.

하여간, 그덕에 내 컴퓨터에 접속해 다운을 받던 사람들이나...
내 홈피를 아주 가끔, 아주 가끔 방문하는 사람이나..
혹은 내 이메일 주소로 편지를 보낸 사람들은.. 약간의 문제가 있을 수도?

하여간, 그렇다.
이젠.. 좀 느리지만 그럭저럭 쓸만은 하다.
아직도 이 놈의 바이러스를 안고 생활하는 수많은 컴퓨터가 있다는 것이..
조금 두려울 뿐이다.
훗...무섭다.
728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

윈도우에서 고용량 하드 인식하는 방법

기술자료/OS 2003. 8. 25. 02:05

48-Bit LBA Support for ATAPI Disk Drives in Windows 2000

The information in this article applies to:
  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Professional SP1
  • Microsoft Windows 2000 Professional SP2
This article was previously published under Q305098

SYMPTOMS


Windows 2000 Service Pack 2 (SP2) and earlier versions of Windows 2000 do not support 48-bit Logical Block Addressing (LBA) as defined in the ATA/ATAPI 6.0 specification.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack




The English-language version of this fix should have the following file attributes or later:


Date Time Version Size File name
--------------------------------------------------------
10/19/2001 01:42 PM 5.0.2195.4529 86,768 Atapi.sys
04/19/2002 05:43 PM 214,938 Update.inf



The following conditions are necessary for the correct functioning of 48-bit LBA ATAPI support:

  • A computer with a 48-bit LBA-compatible Basic Input/Output System (BIOS) installed.
  • A computer with a hard disk that has a capacity of greater than 137 gigabytes (GB).
  • You must enable the support in the Windows registry by adding or changing the EnableBigLba registry value to 1 in the following registry subkey:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesatapiParameters



To enable 48-bit LBA large-disk support in the registry:

  1. Start Registry Editor (Regedt32.exe).
  2. Locate and then click the following key in the registry:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAtapiParameters

  3. On the Edit menu, click Add Value, and then add the following registry value:


    Value name: EnableBigLba

    Data type: REG_DWORD

    Value data: 0x1

  4. Quit Registry Editor.
NOTE: If you enable 48-bit LBA ATAPI support by editing the preceding registry key, but your system does not meet the minimum requirements, you may observe the following behaviors:

  • Operating systems that do not have 48-bit LBA support enabled by default (such as Microsoft Windows 98, Microsoft Windows Millennium Edition (Me), or Windows 2000) that are installed on a partition that spans beyond the 28-bit LBA boundary (137GB) will experience data corruption or data loss.
  • The installation of operating systems that do not have 48-bit LBA support enabled by default (such as Windows 98, Windows Me, or Windows 2000) on a partition that is beyond the 28-bit LBA boundary (137 GB) is unsuccessful and leaves behind a temporary installation folder.
  • If you install hotfixes that enable 48-bit LBA before you install Windows 2000 Service Pack 3 (SP3), the appropriate registry key will be automatically created during the installation of SP3 to preserve the data integrity of the hard disk.
  • After you enable 48-bit LBA support by adding the appropriate registry key, data corruption may occur if you remove the registry key or if you remove (uninstall) SP3 for Windows 2000.
  • If you install a copy of Windows 2000 that includes SP3 (SP3 integrated) on a large hard disk that has already been preformatted by using a 48-bit LBA-enabled operating system, the ATAPI subsystem may report hard-disk space greater than that which is addressable without the 48-bit LBA support (larger than approximately 137 GB) during the text-mode portion of Setup. In this case, the hard disk's partition table information has already been created. To fix the incorrect disk information, delete the partition by using either a disk partitioning utility or by deleting and then re-creating the partition during the text-mode portion of Setup. After you create the new partition, quit Setup by pressing F3, and then restart the Windows installation process. The ATAPI subsystem now correctly shows approximately 137 GB of hard disk space.
  • The EnableBigLba registry value is disabled:


    If you have a 48-bit compatible BIOS that can support a hard disk that has a capacity of more than 137 GB, only the first 137 GB of the hard disk is addressable. The remainder of the hard disk is not used.
  • The operating system must be installed on the first partition that is smaller or equal to 137 GB when the EnableBigLba registry value is enabled but when you do not have a 48-bit LBA compatible BIOS.


    If you enable the 48-bit LBA ATAPI support by editing the registry setting, but you lack both a 48-bit LBA compatible BIOS and a hard disk that has a capacity of more than 137 GB, the hard disk continues to function as a standard hard disk with an addressable limit of 137 GB.
  • The operating system must be installed on the first partition that is less than or equal to 137 GB and the rest of the hard disk divided into one or more remaining partitions when the EnableBigLba registry value is enabled on a computer without a 48-bit LBA compatible BIOS that has a hard disk with a capacity of more than 137 GB.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.Important Although support for 48-bit LBA is included in Windows 2000 Service Pack 3 (SP3) and later, it is still necessary to create the registry change that is described in the "Resolution" section of this article.

MORE INFORMATION

For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below
to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product


For additional information about how to install multiple hotfixes with only one reboot, click the following article number to view the article in the Microsoft Knowledge Base:

296861
How to Install Multiple Windows Updates or Hotfixes with Only One Reboot

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below
to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Last Reviewed:7/4/2003
Keywords:kbbug kbfix kbOSWin2000fix kbWin2000sp3fix KB305098
728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

시원한 여름이라...

잡글 2003. 8. 20. 17:15
이번에 기자재가 들어와 대거 업그레이드들이 되었다.
그 때 옆자리에 앉는 분은 TV 수신 셋을 받았는데,
그것을 통해 하루 종일 TV소리가 울려 퍼졌다
워낙 tV따윌 보지 않기 때문에, 그다지 신기한 느낌은 없지만...

TV속에서 이런저런 이야기가 나오는데, 그중 올해의 여름은 시원한 여름이 되었다고 한다.
예년에 비해 비가 자주와서 서늘한 날씨가 계속 되었고,
어떤곳은 에어컨 자체를 거의 안키거나 선풍기도 잘 안썼다고 한다.
흠.. 하긴 돌이켜 생각해 보면 확실히 이번 여름은 찜통이라는 느낌은 없었다.
서늘까지는 아니지만, 선선하긴 했다.
전에는 창문을 열고 문을 열고 환기한다는 생각조차 못갖게 할 만큼 후덥지근한 날씨의
연속이였는데, 이번에는 그런 느낌은 잦아들고 종종 문을 열어놓은 것이
더 시원함을 느끼기도 했다

하지만, 역시 내가 있는 곳은 비효율 전열기 같은 컴퓨터가 많은 곳이라...
상온이 상당하다. 그래서 서늘하게 하지 않으면 금새 열이 올라와 상쇄시켜 버린다.
이 서늘함덕에... 난.. 그럭저럭 산다.
거대해진 몸집만큼이나.. 땀이 많이 나서.. 이렇게 서늘하게 하지 않으면
금새 냄새가 난다.

뭐 ... 이젠 슬슬 여름도 지나간듯 싶고
다시 겨울이 올것이니깐..
아.. 그런데, 겨울이 오면.. 도데체 어떻게 따뜻하게 댑혀야 하나..
샤워하기도 싫어질텐데.. 흑...

728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

블러스트라는 바이러스.

잡글 2003. 8. 18. 21:06
코드레드 같은 바이러스와는 다르게 그나마 조기에 진압된 듯한 바이러스...
이 바이러스의 특징은 135번 포트를 사용하는 윈도우 업데이트를 중점적 공격을
한다고 한다.

그리고 그것을 칭하는 건지... 아니면 원래 그 기능이 있는건지...RPC 오버플로어
어택이라는 것이 있었다. 그것은 윈도우즈 업데이트라는 것을 못하고..
한술 더 떠 프로그램 자체의 설치가 아예 되지 않는 문제다.

처음에는 몰랐는데, 진철이 형이 이거 걸려서..
아주 황당한 상황까지..

하여간, 요즘 바이러스 참으로 집요하다고 생각된다.
더욱이 인터넷의 성장으로 인해 이런 전송이 단순히 디스켓을 주고 받는 형태로
걸리곤 했는데.. 좋아진건지... 훗..
하여간, 빠른 패치로 발빠르게 나서지 않으면..
단순히 자신만의 피해로 끝나느게 아니라, 남에게 까지 피해를 줄 수 있다는
사실을 알아야 겠다.
728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

여기다가 아닌 블로그안에 소설을...

잡글 2003. 8. 18. 16:26
소설을 갑자기 시작하기 시작했다.
제목은 갑자기 선정해 버린 미스릴.

내용은 당빠 환타지.
하지만 아직 진행이라든가 세세한 것은 정하지 못했다.
여기다 쓰려 했지만, 일단 자유롭게 쓸 수 잇는 공간이 더 좋으므로..
그 안에다 쓰려 한다.
설정집도 그 안에다가 비공개로 해서.. 하나씩 하나씩...
지인들에게만 그 주소 갈쳐주고 평가나 받을까?
훗훗..

뭐 일단 많이 쓰고 난뒤에 알려주어야징.
728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

금연이란 말은... 이젠 자신있게 쓸 수 있을려나?

잡글 2003. 8. 14. 09:54



6월 중순 무렵부터 시작해서, 7월 부터는 입에 담배를 대지를 않았다.
그전까지만 해도 뻐끔 담배 정도는 했는데,
오히려 그게 기폭제가 되서, 더 이상 담배를 손 대지 못하게 만들었다.
열받게 만들었다가 정답인가? ^^;

친구들과 이야기 하다 담배 안핀다는 이야기가 나오면,
잘 모르는 친구는 그래, 대단하네, 잘했네 정도지만,
친한 친구들은, 다들 기묘한 눈으로 날 처다본다.
미.친.놈 이라는 시선.

이 일기장을 쓸때 금연이라는 생각이 별로 안들만큼 평범하게 지내고
있다가, 성민이 홈피를 갔다가... 갑자기.. 생각나 버렸다.
그 녀석 아직도 금연 작심 3일 이라고 적은 글에.. 그러고 보니..라는 생각.

아직도 담배를 한번 펴보았으면 하는 욕심은 있다.
하지만, 그 때마다 헛기침을 하며 생각을 돌리고 있다.
다른 이에게는 이렇게 말한다. 헛기침을 하면 붕어처럼
담배에 대한 생각을 잊어 버린다고... 그래서 한다고.
뭐... 그렇기도 하지만, 나자신에게 주의를 준다고나 할까?

요즘은 다른 마약에 심취해 있다.
원두 커피.
이번엔 바닐라와 블루 마운틴을 섞은 작품인데.. 좀 느끼한게.. 실패의 느낌이 팍~
뭐.. 어쨌던 좋다. 맛도 좋다고 생각하면 좋고..
모르겠다....
하여간, 금연중. 계속..




728x90
블로그 이미지

하인도1

[하인드/하인도/인도짱 의 홈페이지] 저만의 공간입니다. 다양한 소재들을 나열하는 아주 단순 무식한 홈페이지 입니다. 다양한 문서 자료도 있겠지만, 저의 푸념들도 있답니다.

  • «
  • 1
  • 2
  • 3
  • »
250x250

블로그 내에 소스 코드 삽입 이사온 기념 스킨도... RSS 전문 기능 비활성화 관련. 스킨 바꾸어 보았습니다. 서버 파일 정리 좀 했습니다.

«   2003/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

좀 twi2me 친구 SharePoint 오류 Azure 지름신 me2dayzm moss 것 블로그 Google Apps Engine WSS me2sms java 비스킷 windows 매뉴얼 불만 인터파크 2010 협업 Buscuit 수 Tutorial me2photo e-book MOSS 2007 Visual Studio 개발환경

  • Total :
  • Today :
  • Yesterday :

Copyright © 2015-2025 Socialdev. All Rights Reserved.

Copyright © 2015-2025 Socialdev. All Rights Reserved.

티스토리툴바