Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to use UML in my VC++ project? Pin
Prakash Nadar1-Nov-05 15:41
Prakash Nadar1-Nov-05 15:41 
GeneralRe: how to use UML in my VC++ project? Pin
ewighell1-Nov-05 15:51
ewighell1-Nov-05 15:51 
GeneralRe: how to use UML in my VC++ project? Pin
Prakash Nadar1-Nov-05 16:11
Prakash Nadar1-Nov-05 16:11 
GeneralRe: how to use UML in my VC++ project? Pin
ewighell1-Nov-05 17:11
ewighell1-Nov-05 17:11 
QuestionLocalAlloc and LocalFree Pin
plowstar1-Nov-05 15:02
plowstar1-Nov-05 15:02 
AnswerRe: LocalAlloc and LocalFree Pin
Prakash Nadar1-Nov-05 15:44
Prakash Nadar1-Nov-05 15:44 
AnswerRe: LocalAlloc and LocalFree Pin
S. Senthil Kumar1-Nov-05 19:23
S. Senthil Kumar1-Nov-05 19:23 
QuestionC++ based system service Pin
c++code1011-Nov-05 14:50
c++code1011-Nov-05 14:50 
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. Is there any way that someone could help or at least point me in the right direction?

Thank you very much!!!

AnswerRe: C++ based system service Pin
__yb1-Nov-05 21:08
__yb1-Nov-05 21:08 
QuestionHow to use ExtractIcon or ExtractIconEx to get a handle for the small Icon? Pin
Tcpip20051-Nov-05 14:37
Tcpip20051-Nov-05 14:37 
AnswerRe: How to use ExtractIcon or ExtractIconEx to get a handle for the small Icon? Pin
Prakash Nadar1-Nov-05 15:49
Prakash Nadar1-Nov-05 15:49 
GeneralRe: How to use ExtractIcon or ExtractIconEx to get a handle for the small Icon? Pin
Tcpip20051-Nov-05 16:19
Tcpip20051-Nov-05 16:19 
GeneralRe: How to use ExtractIcon or ExtractIconEx to get a handle for the small Icon? Pin
Prakash Nadar1-Nov-05 16:37
Prakash Nadar1-Nov-05 16:37 
QuestionGSL & "error LNK2019: unresolved external symbol _finite" Pin
Lebesgue1-Nov-05 14:05
Lebesgue1-Nov-05 14:05 
AnswerRe: GSL & "error LNK2019: unresolved external symbol _finite" Pin
Prakash Nadar1-Nov-05 17:52
Prakash Nadar1-Nov-05 17:52 
GeneralRe: GSL & "error LNK2019: unresolved external symbol _finite" Pin
Lebesgue1-Nov-05 22:43
Lebesgue1-Nov-05 22:43 
GeneralRe: GSL & "error LNK2019: unresolved external symbol _finite" Pin
RaymondM6-Feb-10 23:58
RaymondM6-Feb-10 23:58 
QuestionEmergency Pin
Binary01101-Nov-05 11:04
Binary01101-Nov-05 11:04 
QuestionRe: Emergency Pin
Prakash Nadar1-Nov-05 16:17
Prakash Nadar1-Nov-05 16:17 
AnswerRe: Emergency Pin
normanS1-Nov-05 22:58
normanS1-Nov-05 22:58 
QuestionLPCWSTR Pin
samkook1-Nov-05 9:54
samkook1-Nov-05 9:54 
AnswerRe: LPCWSTR Pin
Wes Aday1-Nov-05 10:14
professionalWes Aday1-Nov-05 10:14 
GeneralRe: LPCWSTR Pin
samkook1-Nov-05 10:19
samkook1-Nov-05 10:19 
GeneralRe: LPCWSTR Pin
Wes Aday1-Nov-05 10:24
professionalWes Aday1-Nov-05 10:24 
GeneralRe: LPCWSTR Pin
samkook1-Nov-05 10:26
samkook1-Nov-05 10:26 

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.