You are using blocking sockets (the default ones) which means operations like accept and recv will block until they get something. If you don't that you can set the sockets to non-blocking. Anyway...
Well let me clarify this. My injected DLL has a console ( AllocConsole-ed), now the original application has its own window. I want my hotkey to be active whether the console has focus or the main...
Well here's the situation I have injected a dll into a process, I want for example when I press F5 something to happen. I could use GetAsyncKeyState without a problem for that but that is system-wide...
I have this problem. Have an application ( Warcraft III ) that uses udp broadcasts for lan management , usually when you run the application two times and join the LAN with one you can't join with...
What you are doing in the bold line is assigning a pointer which as you mentioned may be invalid after some point, what you need to do is copy the dialogstring into the ofn.lpstrTitle( e.g. strcpy).
GCDEF is right suit should be just a string not an array :) Also you have some other errors that have not been mentioned so far in your code:
in getcards() your for loop condition is wrong should be...
Because that is not the correct way to send keystrokes :) There can be many situations in which it won't work, also you cannot send keys like SHIFT,CTRL, etc :)
There we go fixed in previous post for your viewing pleasure :)
I just fixed it because he wanted to see how it would look while using realloc and his original snippet didnt bother with freeing...
That is not entirely true. There are several types of hooking and API Hooking is one of them but not the only one. You can successfully hook other applications' functions but this would require dll...
Well just for fun I decided to fix your reallocating issue and give you a few pointers ( hopefully valid :) ) First of all you have no need of the static variable and no need to save the length of...
The only way I can think of is if the menu's owner-draw flag is set and you handle drawing and measuring manually. Altho maybe a menu HWND can be obtained through ::FindWindow("#32768",NULL) for MFC...
Well there is not much you can do if it is a standard win32 console - you cant remove the sysmenu ( not 100% sure on this but almost :P ). The best thing you can do is disable the buttons this way:
...
This was exactly my problem, when u click the left button hold it move the mouse away from the button the tooltip wont receive the WM_MOUSEMOVE message. The way i worked around it was in the...
I am not sure if there is such an API however if you want to change the file's creating time you can always use GetFileInformationByHandle combined with
SetFileInformationByHandle
If you can post a sample project I can help you, I had similar problems with my custom irregular shaped rollover button tooltips, sometimes after clicking the buttons CToolTipCtrl doesnt receive the...
Your sorting algorithm is wrong. Take a look at these:
http://mathbits.com/MathBits/CompSci/Arrays/Arrays1.htm
Mainly the topics from Bubble sort to Selection sort since they are the simplest.