Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: The length of text in pixels Pin
David Crow31-Oct-05 3:15
David Crow31-Oct-05 3:15 
QuestionHelp with CScrollView or CMetaFileDC pls Pin
teli198230-Oct-05 20:56
teli198230-Oct-05 20:56 
AnswerRe: Help with CScrollView or CMetaFileDC pls Pin
Mircea Puiu31-Oct-05 8:48
Mircea Puiu31-Oct-05 8:48 
GeneralRe: Help with CScrollView or CMetaFileDC pls Pin
teli19823-Nov-05 21:30
teli19823-Nov-05 21:30 
QuestionMessageBox results in deadlock Pin
andreaswimmer30-Oct-05 19:18
andreaswimmer30-Oct-05 19:18 
AnswerRe: MessageBox results in deadlock Pin
Mircea Puiu30-Oct-05 20:02
Mircea Puiu30-Oct-05 20:02 
GeneralRe: MessageBox results in deadlock Pin
andreaswimmer30-Oct-05 20:34
andreaswimmer30-Oct-05 20:34 
QuestionDNS Caching issue Pin
c++code10130-Oct-05 18:55
c++code10130-Oct-05 18:55 
Hello,

I need some help. I’m working on a project with some schools that involve Windows and “hosts” file work. The network I’m working on requires several pre defined domains that need to be assigned to a different IP address which is achieved through using the hosts file.

The problem that I’m running into is that a hosts file over 150K will start to crash the Dnscache service under Windows 2000 and XP. I have to disable this service in order to have everything work. The problem with doing this is that resolving a host without Dnscache has considerable latency issues and an overall slow connection time without the Dnscache service running. It doesn’t matter if the hosts file is 1K or 300K, without DNS caching, it is very slow.

I would very much appreciate it if someone could assist me or even just write a small C or C++ win32 console app that can be run and installed as a service through the command line using the “sc config” and “net start” commands. It would need to be able to replace the Dnscache “dnsrslvr.dll” service. This service is nice but not very robust when it comes to actually using the hosts file for what it was designed for.

Really, it doesn’t have to load the whole hosts file into memory like the Dnscache “dnsrslvr.dll” service does. All this program would need to do is pre allocate a small chunk of memory and then just monitor domain name requests. When the IP address is returned from the DNS server out on the web or from the hosts file, it would just need to cache it into memory. The initial connection would still be the time required to ask the DNS server or hosts file for the IP address but after that, the site would load faster because all of the graphics, applets and so on would already be pointing to the IP address.

I would even be willing to compensate a bit for the time spent doing this. I know time is valuable. Please contact me at jamie@unitedcomputerservice.com

I will also keep checking the post here. Thank you in advance for anyone who could help me in this effort. I write code but this one is a bit out of my area to be comfortable.



QuestionRe: DNS Caching issue Pin
David Crow31-Oct-05 3:21
David Crow31-Oct-05 3:21 
AnswerRe: DNS Caching issue Pin
c++code10131-Oct-05 6:52
c++code10131-Oct-05 6:52 
Questionsimple string problem.... Pin
tirucapricorn30-Oct-05 18:51
tirucapricorn30-Oct-05 18:51 
AnswerRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 20:53
Mircea Puiu30-Oct-05 20:53 
GeneralRe: simple string problem.... Pin
ThatsAlok30-Oct-05 21:38
ThatsAlok30-Oct-05 21:38 
GeneralRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 22:03
Mircea Puiu30-Oct-05 22:03 
GeneralRe: simple string problem.... Pin
ThatsAlok30-Oct-05 22:25
ThatsAlok30-Oct-05 22:25 
GeneralRe: simple string problem.... Pin
Mircea Puiu30-Oct-05 22:39
Mircea Puiu30-Oct-05 22:39 
GeneralRe: simple string problem.... Pin
tirucapricorn31-Oct-05 0:21
tirucapricorn31-Oct-05 0:21 
QuestionStrang problem, ask for help ! Pin
chenxiujie30-Oct-05 16:53
chenxiujie30-Oct-05 16:53 
AnswerRe: Strang problem, ask for help ! Pin
Christian Graus30-Oct-05 17:37
protectorChristian Graus30-Oct-05 17:37 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 18:06
chenxiujie30-Oct-05 18:06 
GeneralRe: Strang problem, ask for help ! Pin
Christian Graus30-Oct-05 18:08
protectorChristian Graus30-Oct-05 18:08 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 19:05
chenxiujie30-Oct-05 19:05 
GeneralRe: Strang problem, ask for help ! Pin
Mircea Puiu30-Oct-05 20:55
Mircea Puiu30-Oct-05 20:55 
GeneralRe: Strang problem, ask for help ! Pin
chenxiujie30-Oct-05 21:06
chenxiujie30-Oct-05 21:06 
GeneralRe: Strang problem, ask for help ! Pin
Mircea Puiu30-Oct-05 21:13
Mircea Puiu30-Oct-05 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.