Solved

Adding an entry to hostfile..

Posted on 1998-08-26
2
151 Views
Last Modified: 2013-11-20
Hi guys,
   I want to add/delete an entry from the HOSTS file
under "C:\windows\"...
  the entry is a typical
 XXX.XXX.XXX.XXX   www.XXX.com

How should I go about doiung this?
Can I open/edit it just like a usual text file
using CFile?

Thanks...

David Chong
0
Comment
Question by:Haho
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1321340
Yes, that is a plain text file. Use CStdioFile to access it.
0
 
LVL 1

Author Comment

by:Haho
ID: 1321341
thanks..
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now