728x90

자료를 잘못 지웠다거나 바이러스 때문에 포맷을 했는데 중요한 자료가 있었다는 사실이 문득 기억날 때 하드디스크를 복구시키고 싶은 생각이 간절하다. (난 울면서 바로 외장하드를 질렀었다.) 그런데 하드디스크를 복구 시키려면 꽤 비싼 비용을 지불해야 한다. 보통 PC수리점에서 하면 비용이 상당하면서도 특별히 더 뛰어난 복구를 시켜주진 않는다. 

그러다 복구 프로그램 중 꽤 괜찮은 녀석을 찾았다. 무료 프로그램이며 dll파일을 포함해봐야 400K가 고작이다. mfc로 뚝닥 만든 이 프로그램은 설치도 하지 않고 특정기간에 복구점을 정해두지도 않는다. 그러니까 프로그램을 설치하기 전에 삭제 된 파일들도 복구가 가능하다는 이야기.

섹터를 돌면서 날아간 index를 복구시키는 프로그램으로 보인다. 복구 프로그램을 돌려도 이것 이상의 기능이 나올 것 같지 않다. (물론 하드디스크의 섹터를 직접 돌고 페이지 링크를 직접 조합해서 파일을 복구시키면 조금 더 많은 양이 복구될 수 있겠지만 그런 프로그램은 만들기 너무 어려운데 비해 성능은 거의 같을 것이기 때문에 개발되지 않을 것 같다)

참.. data를 날려서 복구하고 싶으면 아무것도 하지말고(심지어 부팅마저 하지말고) 다른 컴퓨터에 하드디스크를 연결해서 복구 프로그램을 돌리자. 그리고 용량이 적은 text문서들(source code등)이 먼저 다른 data로 대체되므로 정말 중요한 파일들은 주기적으로 여러곳에 백업해두는 것이 필요하다. 그리고 프로젝트 전체를 압축파일로 백업해두자.(물론 압축 헤더가 날라가면 다 못쓰니까 원본파일도 같이 백업해야겠지.)
728x90
728x90

WPF : Windows Presentation Foundation으로 C#에서 XAML을 사용한다.
XAML : eXtensible Application Markup Language

실버라이트가 C#의 UI를 플레쉬처럼 보이게 만들어 준다면 WPF는 요즘 유행하는 XML활용 프로그램과 비슷한 것 같다. 사실 WPF란게 있다는 것도 이제야 알았다.
한국에선 아직 많이 사용되고있진 않은 듯 보이지만 외국에선 인기가 치솟고 있는 듯.
http://www.wpftutorial.net/
728x90
728x90
얼마 전까지 QT가 뭐하는 녀석인지도 몰랐다.
알고보니 꽤 대단한 녀석인 것 같다. trolltech에서 개발한 개발언어인데 C++을 기반으로 만들었다.
Visual Studio처럼 디자인, 컴파일, 디버그, 실행까지 합쳐진 툴은 아직 없지만
잘만 사용하면 엄청 강력한 프로그램을 만들 수있다.

최대 장점은 Open Source로 되어 있으며 다양한 컴파일러 버젼으로 실행파일을 만들 수 있어서 임베디드용 응용프로그램을 만들 때 유용하다는 점이다.
728x90
728x90

Follow these steps to install g++ (the GNU C++ compiler) for Windows. There is no room for creativity here; you must follow the directions exactly.

  1. Pick the drive and a folder in which you want to install g++. I'll assume that it is C:, but you can choose a different one. If you choose a different drive or a different folder, you'll need to adapt the directions below accordingly.

  2. Download full.exe, an about 14 megabyte executable, to C:\full.exe by right-clicking on the link. Use Save Link As... or Save Target As... Be sure the browser saves the file as C:\full.exe.

  3. Run the downloaded executable. This will install g++ (and a lot of other things that you don't really need) on your hard drive. Go to the C: drive using Windows Explorer and double-click on full.exe. Or, open a DOS window (Start > Programs > Command Prompt), connect to the C: drive using the cd command, and type full.

  4. Locate where the bin folder was created for the g++ installation. On my Windows XP machine, it was created in the following path:
    C:\cygnus\cygwin-b20\H-i586-cygwin32\bin
    
    You now should add it to the PATH environment variable. You do that by following:
       Start -> Control Panel -> System -> Advanced -> Environment Variables
    
    At this point you can see the PATH variable either in the User Variables or in the System Variables. Add the g++ path into the PATH variable. You add it to the end of the existing value separated by a semicolon (';'). Make sure that you do not lose the original value. You are just appending more to the end separated by a semicolon.

  5. Restart your computer. A Cygnus Solutions entry will appear in your Programs menu, and an icon may appear on your desktop. Don't use them! You will use it using the g++ command on a DOS prompt as explained below.

You should now be able to run g++ from a DOS (Command Prompt) window. For example, to compile a file called C:\mine\hello.cpp, connect to the C:\mine folder and enter

       g++ -g hello.cpp -o hello -lm
You'll then be able to run the compiled program by entering hello in the DOS window.

If you've installed Emacs as described here, you will also be able to run g++ from Emacs. If, when you do this, Emacs tries to compile with the command make -k, you made a mistake during the Emacs installation. If you want to learn how to run g++ on emacs, see here.

If you'd like to learn more about where this free compiler came from, we downloaded it from an older site of http://sourceware.org/cygwin/.

If you wish to clean up a little, you may delete the file: full.exe at this point. Your g++ compiler is installed under C:\cygnus.

======================================================================================
사실 위에서 말하는대로 하지 않아도 상관없다.
파일을 받고 더블클릭하면 알아서 설치된다.
설치가 끝나고 나면 환경변수를 등록하도록 하자.

내컴퓨터 오른쪽클릭 -> 속성 -> 고급 -> 환경변수
지정된 PATH + ;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin

728x90

'Programming > C++은객체지향언어다' 카테고리의 다른 글

error C2220: warning treated as error - no object file generated  (0) 2011.07.29
집합(차집합, 교집합, 합집합) - cpp  (0) 2008.04.02
ADT array 구현  (0) 2008.03.04
C++ (OOP개념들)  (0) 2008.02.26
C++ (객체)  (0) 2008.02.26
C++ (OOP개념)  (0) 2008.02.26
C++ (개요)  (0) 2008.02.26

+ Recent posts