|
c++code101 wrote: 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.
Have you seen this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
yes, very much so. The Dnscache service doesn't work very well with a large hosts file because it loads the whole hosts file in memory. It is different from computer to computer on what size of hosts file will crash it. I have seen 300+ kb size files run fine before.
|
|
|
|
|
hi all,
can u please help me ?
For the below code,
CString csFileString(_T(""));
if(oChunk.m_oEvntMsg.message == WM_LBUTTONDOWN)
{
csFileString.Format (_T("Message LBUTTONDOWN (%d) recieved from '%s'\r\n"),oChunk.m_oEvntMsg.message,oClass.szClassName );
}
else if(oChunk.m_oEvntMsg.message == WM_LBUTTONUP)
{
csFileString.Format (_T("Message LBUTTONUP (%d) recieved from '%s'\r\n"),oChunk.m_oEvntMsg.message,oClass.szClassName );
}
else
{
csFileString.Format (_T("UnknownMessage (%d)' recieved from '%s'\r\n"),oChunk.m_oEvntMsg.message,oClass.szClassName );
}
output is,
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
UnknownMessage (516)' recieved from 'Internet Explorer_Server'
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
UnknownMessage (517)' recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
if u look at out put....
Message LBUTTONDOWN (513) recieved from 'Internet Explorer_Server'
Message LBUTTONUP (514) recieved from 'Internet Explorer_Server'
LBUTTONDOWN (513) and LBUTTONUP (514) from same class that is...'Internet Explorer_Server'.
i want to bring up that as below,
LBUTTONDOWN (513) and LBUTTONUP (514) from 'Internet Explorer_Server'.
can u please give me tip..?
iam greatful to you..
best regards,
tirucapricorn.
tirucapricorn.
|
|
|
|
|
...what exactly do you want to ... bring up ?
SkyWalker
|
|
|
|
|
Mircea Puiu wrote: bring up ?
Internet explorer_Server , Enough kiddin...
I Believe he want to capture the Mouse movement happening on Internet Explorer.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
...or he wants actually to show together the two strings, in which case he should use some boolean flags within those if blocks and at the end, show up some messages depending on the flags.
Is this what you are after, tirucapricorn?
SkyWalker
-- modified at 4:05 Monday 31st October, 2005
|
|
|
|
|
Mircea Puiu wrote: Is this what you are after, tirucapricorn?
Now that wiil answer by tirucapricorn ... Have nice day ... I am taking week off from CP..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks Alok, the same to you. See you back next week at CP
SkyWalker
|
|
|
|
|
hi thats allok,
yes , i want to capture the mouse movements from Internet Explorer.i captured some events like WM_LBUTTONDOWN,WM_LBUTTONUP...
and the thing is,
both events are displaying separately from same class....like
WM_LBTTDOWN from 'InternetExplorer'
WM_LBTTUP from 'InternetExplorer'
these two events have different ids...like 102,103...
i want to display both events which has different ids...from that same class...like..
eventmessages WM_LBUTDOWN(102) and WM_LBUTTONUP from 'Internet Explorer'...
bestregards,
tirucapricorn.
tirucapricorn.
|
|
|
|
|
Hello, everyone!
I encounter a strange problem, who can help me? Thanks a lot.
I define a class, in this class, has two maps , the form is like
this: std::map<std::string, aaa*="">, "AAA" is a struct.
But when the class's constructor is called, when compiler new the map,
it will failed. Why , I feel too strange, Please help me!
|
|
|
|
|
What's the error message ? Can your class see the struct definition, that is, does it #include the file it's in in the cpp file, assuming the map is only added to in the cpp file ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thank you for your replay and I am sorry I didn't described it clearly.
Compile is ok , when the program run , it will throw "Memory error",
I use the debugger to track , and I found in class constructor, when
new the map, it will throw error.
|
|
|
|
|
Ah...
What does the struct look like ? What's the code that adds them look like ? Have you run it in debug mode ? Does it blow up when you add the first item ? Can you post some code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes, I had debug it in debug mode. It seems like memory not enough.
In What condition a program can finish up all memory?
what tool can check this memory problem?
Please help !
|
|
|
|
|
Be so kind and provide us with some piece of code, so that we can help you
SkyWalker
|
|
|
|
|
Sorry, I want to get your help, but I couldn't provide the code.
Because I work for some company and the code should be keep in
secret. I hope you can understand.
|
|
|
|
|
Then we hope you understand it's a little bit difficult for us to ... help you ...;)
SkyWalker
|
|
|
|
|
chenxiujie wrote: but I couldn't provide the code.
Ok... You under NDA... But what about showing defination of structure AAA...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Struct AAA is inherit from struct BBB, structs AAA and BBB are very simple, only had data member, six "Unsigned Long" type data.
I think there is some memory error in my program, but I cann't find it.
Vc's debugger is no use.
|
|
|
|
|
chenxiujie wrote: I think there is some memory error in my program, but I cann't find it.
Vc's debugger is no use.
Thats cannot be answer without seeing codes... I believe you have to ask your seniors on this matter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 4:45 Monday 31st October, 2005
|
|
|
|
|
I guarentee you that your companies security will not be compromised by such a small code snippet, and no-one is going to steal code that is broken.
You could at least answer my question - does it break the first time you go through the loop, or after lots of times ?
Perhaps you could write a similar piece of code in your own time, and see if it works or not. If it does, work out what is different, if it does not, post it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
When I am creating ImageList for the listctrl which i am trying to implement in dll is throwing some strange error .
m_cImageList.Create(IDB_BITMAP1, 16, 3, RGB(255, 0, 255));
It is throwing error that IDD_Bitmap1 is undeclared.
please help
|| ART OF LIVING ||
|| ART OF LIVING ||
|
|
|
|
|
|
What makes you sure that IDB_BITMAP1 is not undeclared ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Compiling...
YatinList.cpp
C:\VC6book\Copy of Copy of OilHomeFinal3092005FINAl\JCALIST\YatinList.cpp(20) : error C2065: 'IDB_BITMAP1' : undeclared identifier
Error executing cl.exe.
JCALIST.dll - 1 error(s), 0 warning(s)
|| ART OF LIVING ||
|
|
|
|