|
|
Hi,
I need to retrive a list from IP server.
Do you know how to do it by AsyncIO?
Even good referance will be great...
Thanks!
modified 29-Apr-12 9:07am.
|
|
|
|
|
Run, don't walk, to the Boost website (http://www.boost.org/)and grab yourself a copy of the complete libraries. Start compiling it and while you're waiting start looking at the documentation for the asio library - http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio.html.
Another option would be to go and have a look at ACE (http://www.cs.wustl.edu/~schmidt/ACE.html). It's a bit older code base with a clunkier interface but still worth a look.
Both of them do the job of asynchronous network I/O really well. I found the Boost library easier to use but then I've been programming C++ for a while now. I imagine if you were less experienced then ACE might be the better option as the interface is older from the time before C++ was so well understood and standardised.
Good luck!
Ash
|
|
|
|
|
Dear all everyone,
My project compiled out "exe file" but I want protect this exe file when click it(password requestion).Please help me! I created this project by DIALOG(MFC)in environment of visual studio 2005.
Thanks and Best regards,
LQLONG
|
|
|
|
|
If I'm not missing something, you just write code to ask for password.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
|
I help you with what exactly? Read point #2 in this post: How to ask a question[^]
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Dear Mr. Chris Maunder,
Thanks and Good health,
LQL
|
|
|
|
|
hey guys i have this
int main(void)
{
while (malloc(50));
return 0;
}
but after a couple of seconds it just asks to press any key to continue. what i would like it to do is just run till it crashes the program?
|
|
|
|
|
|
|
Wimdows, MacOSX, Linux, GCC, Visual Studio.....?
|
|
|
|
|
windows, using c-free 5. i just want it to keep running untill it crashes or slows my comp down heaps
|
|
|
|
|
malloc returns NULL when it can't allocate the requested memory. So your program simply allocates 50 bytes in a loop until memory runs out then exits (as NULL is treated as false by the while loop). Why would you expect a spectacular crash?
Steve
|
|
|
|
|
int main()
{
while(true)
malloc(50);
return 0;
}
The loop is now infinite, but the memory will sooner or later be exhausted.
At that point, malloc will not allocate anymore, but the loop will still cycle forever.
It will be very hard to stop it, having no more resource to create another process to kill the cycling one ...
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hello!
I am searching for an old artical that defines how to protect all the running processes from being modified by some other process or virus.
It articulate about: for most of the time it is required that we should be alerted when something tries to alter our running processes. The source code provided was also release as an separate free downloadable product on author personal website.
-- Waqar
|
|
|
|
|
|
Jeffrey Walton - Wow that guy sounds like one *real man* we talk about.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
You can find an answer to this in the Secure Coding Cookbook. There are some elegant macros that you wrap around the methods you want to watch. Even if a checkpoint is set, the checksum of the method will change.
Som compilers let you set the code segments to read only. You might want to read about that as well.
|
|
|
|
|
Hi
I have two modeless dialogs. One dialog is a member variable of a CWnd class and the Create function is called on this dialog member variable. This dialog displays correctly. There is another dialog which is created as a pointer using new operator and Create is called on this dialog. There are issues with the second dialog on Windows 2003 with one of our clients. Wanted to know if there is a difference when a modeless dialog is created as a member variable of a Wnd and using new operator.
Secondly, in both the cases the *pParent passed is NULL. Is there any known issue passing the parent window pointer as NULL, or it should be the applications main frame window or the Desktop window?
Thanks
|
|
|
|
|
vipin_nvk wrote: There are issues with the second dialog on Windows 2003 with one of our clients.
What kind of issues?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
Painting issues where the frame of the window is not getting painted properly
|
|
|
|
|
Of course i can only talk for myself, but personally i don't think generally there are problems with creating the dialog class dynamically or passing NULL for the parent, i think this issue could very well be a specific one.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
Try posting a screen capture of what you're referring to. The drawing of the frame is almost entirely handled by the framework, so it might just be a Windows bug.
|
|
|
|
|
Can you show some piece of code?
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|