|
I dont have the programs source code.
Libcap can also drop packets before they rech the client ?
|
|
|
|
|
Kobi_Z wrote: Libcap can also drop packets before they rech the client ?
Probably not but there's lots of clues in their documentation how they get at the underlying
protocol layer.
|
|
|
|
|
Hi,
I have a static control derived from CStatic class. When user clicks on it I want that the static control should look like as it is pressed. The control is not a button, so I cannot do this directly. How can I achive this?
Regards,
Hemant
|
|
|
|
|
Set a recessed border and change the background color to a shade darker?
onwards and upwards...
|
|
|
|
|
if you derived CStatic you can use of WM_MOUSE* and WM_PAINT for change color when user click on that static.
|
|
|
|
|
I am working on a project involving huge amount of data. The memory space is alomst exhausted. My program terminates abnormally when the remaining mem is about 100M(indicated in Task Manager). The error message is
"abnornal program termination".
My problem is that I am not sure if the shortage of mem space OR bugs in my program caused the abnormal termination.
Anybody can help me diagnose this probelm by your experiences.
I wonder what is the best way to deal with huge amount of data. I do not have experiences with huge amount of data before.
I wonder if 'virtual mem' actually means some space on hard disk?
How to set the size of virtual memory. Can I use virtaul mem in my VC++ program. Can I set the size of virtual memory in my visual C++ program.
Is it true that the access speed for virtual mem is much slow than that for main memory?
by the way, wm PC (DELL Openlex GX620) has 1G main memory, running Windows 2000.
|
|
|
|
|
|
First of all , Problem could be memory leak or anything related with memory management.Your application may be trying to access a memory area that it's not allowed to.
Virtual memory is usage of hard-drive(or similar devices) space as memory area.Simply data is kept in drive as specified file.There are many virtual memory management algorithms that decides how,when and what to fetch.But it's performance is never as good as accessing real memory.Virtual Management is a trade-off between memory size and memory speed.
Also if you are programming a WIN32 application , memory allocation functions calls a specified system function that automatically allocates real or virtual memory.
[AGP]
|
|
|
|
|
thank you Gokalp Peker.
My appication is MFC based work instead of a Win32 application. In MFC, is virtual memory avaiable for storage?
|
|
|
|
|
If your progam is running under Windows, then it uses virtual memory. Virtual memory is handled by the operating system, it doesn't depend on what language or what toolkits you use in your program.
|
|
|
|
|
cy163@hotmail.com wrote: I wonder if 'virtual mem' actually means some space on hard disk?
How to set the size of virtual memory. Can I use virtaul mem in my VC++ program. Can I set the size of virtual memory in my visual C++ program.
This is all handled automatically by Windows.
cy163@hotmail.com wrote: Is it true that the access speed for virtual mem is much slow than that for main memory?
Of course, unless you have very slow RAM and a very fast HDD!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm not sure if this is in play but do you know the default maximum size of a block of memory that you can allocate in 32 bit windows is around 1.2GB?
John
|
|
|
|
|
When ever I create a control variable for any item on a dialog it seems to take forever.
However when I disconnect from the LAN it seems to work much faster.
My question is how/where do I set the options to allow faster access to the IDE stuff.
I have under Options set the Visual Studio references to my C: drive,it was accessing a Network drive, but it still takes a long time to create a single control variable!
Help please, its diving me mad!
Andy
|
|
|
|
|
How can i create a global desktop and use it from all the user accounts?
Any help is appreciated.
Thanks.
~ Selva
|
|
|
|
|
I think you might get a quicker answer if you posted this question in the Operating Systems / SysAdmin forum.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
i think he says that he wants to do this programmatically, so its the correct forum to ask (if he does this in C/C++)
|
|
|
|
|
You are a better mind reader than I am! Thanks for pointing that out.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi Guys,
U r right. I m doing this in VC++...
any idea to get it ???
Thanks
~ Selva
|
|
|
|
|
Unfortunately, I don't know how or I don't understand what you mean by global desktop?
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Is there any way to count digits from the string?
Thanks in Advance..
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
Mahesh KulkarniIs there any way to count digits from the string?
What exactly do you mean by this? Are you wanting the length of the string, or the actual count of numeric digits (0-9) within the string?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yes, but there is no direct way.
How, in pseudocode, would you do it ? if you can do it, then translating it to C/C++ would be simple.
|
|
|
|
|
Maximilien wrote: yes, but there is no direct way.
Yes this is right...
I got the solution..
U need to check the each and every charatcter to get the total number of digits in the string.
Thanks for ur HELP...
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
a simple for() loop can accomplish this by counting from variable[0] - variable[?], waiting until you find the '/0' character.
I win because I have the most fun in life...
|
|
|
|
|
use std::count_if()
refer the msdn for more infos on that algorithm...
|
|
|
|