사진과 같이 콘솔응용 프로젝트 만들고,

// test.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
//

#include "stdafx.h"
#include "test.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// 유일한 응용 프로그램 개체입니다.

CWinApp theApp;

using namespace std;

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
 int nRetCode = 0;

 HMODULE hModule = ::GetModuleHandle(NULL);

 if (hModule != NULL)
 {
  // MFC를 초기화합니다. 초기화하지 못한 경우 오류를 인쇄합니다.
  if (!AfxWinInit(hModule, NULL, ::GetCommandLine(), 0))
  {
   // TODO: 오류 코드를 필요에 따라 수정합니다.
   _tprintf(_T("심각한 오류: MFC를 초기화하지 못했습니다.\n"));
   nRetCode = 1;
  }
   else
  {
   // TODO: 응용 프로그램의 동작은 여기에서 코딩합니다.
   CString str;
   str="안녕하세요.";
   cout<<(LPCTSTR)str<<endl;
   cout<<str<<endl;
  }

 }
 else
 {
  // TODO: 오류 코드를 필요에 따라 수정합니다.
  _tprintf(_T("심각한 오류: GetModuleHandle 실패\n"));
  nRetCode = 1;
 }

 return nRetCode;
}

///////////////////////

음영처리한 부분 책에는

안녕하세요.

003844BC(주소값??)

이렇게 출력하도록 되있는데

내 비쥬얼2010쓰는데 안래 자꾸 둘다 주소값 나오는데 내가 MFC완전 처음이란말야ㅠ 좀 알려줘 형들 ㅠ