Search

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
How do I add my domain name to my computers host file?
Posted by Support, Last modified by Support on 12 September 2013 01:44 PM

Windows

    • Open Notepad and then open the "Hosts" file on your computer. The location of the "Hosts" file is as follows:

      Windows 95/98/Me:  c:\windows\hosts 
      Windows NT/2000/XP Pro:  c:\winnt\system32\drivers\etc\hosts
      Windows XP Home: c:\windows\system32\drivers\etc\hosts
      Windows Vista/7/8: c:\windows\system32\drivers\etc\hosts

      You may need administrator access for Windows NT/2000/XP/Vista/7/8, you can gain this by logging in as an Administrator or by right clicking on Notepad in the start menu and then clicking on Run As Administrator. Then open the file listed above.

      NOTE: Hosts is the name of the hosts file and not another directory name. It does not have an file extension (extensions are the .exe, .txt, .doc, etc. endings to filenames) and so appears to be another directory in the example above.

      This file should be edited with a text editor, such as Notepad, and not a word processor, such as Microsoft Word.

    • Add this line to the Hosts file at the bottom where 0.0.0.0 is the IP address and your-domain-name.com is the domain name.
      0.0.0.0     your-domain-name.com

 

  • Save your changes.
  • Once you are done with this entry you can delete the line from your Hosts file and save it.

    NOTE: Windows users should verify that they are showing extensions for all file types. This will help verify that the Hosts file is named correctly. To reset Windows to show all file extensions, double click on My Computer. Go to View Menu (Win95/98/ME) or Tools Menu (Win2000/XP), and select Folder Options. Click the View tab. In the Files and Folders section, DESELECT (uncheck) the item named "Hide file extensions for known file types". Click Apply, and then click OK.



https://support.aiso.net/index.php?/Knowledgebase/Article/View/240/2/how-do-i-add-my-domain-name-to-my-computers-host-file

'Programming > C,CPP,CS' 카테고리의 다른 글

[CPP] Windows Service 간단하게 만들기  (0) 2017.10.17
WaitForMultipleObjects  (0) 2017.04.19
[VS2013] 힙이 손상되었습니다.  (0) 2017.04.05
Visual Studio 2013 갑자기 느려질때  (0) 2017.04.04
AES Block cipher modes  (0) 2017.03.29

[jsoncpp] getList Names

Programming/C,CPP,CS 2017. 2. 6. 17:07 Posted by TanSanC
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.


"List" : {

         "value1" : "10.1.1.1",

         "value2" : "0.0.0.0"

      }




위의 경우에서 "10.1.1.1" , "0,0,0,0" 을 얻을 때에는,




for (auto itr : configuration_value.get("List", ""))

{

char* buf = (char*)malloc(BUFSIZE);

try{

sprintf_s(buf, BUFSIZE, "%s", itr.asString().c_str());

}

   }




위의 경우에서 "value1" , "value2" 을 얻을 때에는,



for ( auto const& id : configuration_value.get("List", "").getMemberNames() ) {

std::cout << id << std::endl;

}

MFC Drag And Drop FileName 만 추출

Programming/MFC 2016. 8. 30. 11:38 Posted by TanSanC
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.


MFC Drag And Drop FileName 만 추출


	// TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
	int nFiles;


	char szPathName[MAX_PATH];  // 파일 경로명이 들어간다.
	
	// 드래그앤드롭된 파일의 갯수
	nFiles = ::DragQueryFile(hDropInfo, 0xFFFFFFFF, szPathName, MAX_PATH);







	for (int i = 0; i < nFiles; i++)
	{
		// 파일의 경로 얻어옴
		::DragQueryFile(hDropInfo, i, szPathName, MAX_PATH);
		MessageBox(szPathName, "DropAndDropFile");
		char* szFileName = szPathName;
		// FileName 만을 찾기위한 반복문
		for (int j = 0; j < strlen(szPathName); j++)
		{
			if (szPathName[j] == '\\')
			{
				szFileName = szPathName + j + 1;
			}
		}
		m_ListCtrl.AddString(szFileName);
		m_ListCtrl.SetHorizontalExtent(2600);
	}

'Programming > MFC' 카테고리의 다른 글

MFC Alert MessageBox2  (0) 2016.09.06
MFC Alert MessageBox  (0) 2016.09.06
MFC File Icon Drag and Drop  (0) 2016.08.30
MFC Dialog 가 이상한 위치에 배치, (0,0)에 배치  (0) 2016.08.24
MFC CTextProgressCtrl  (0) 2016.08.17