Type: Posts; User: kolkoo
Search took 0.02 seconds.
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...
January 20th, 2010, 01:43 AM
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...
January 19th, 2010, 04:30 PM
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...
January 18th, 2010, 04:22 AM
map<string, string>::iterator iter;
for(iter = map.begin();iter!=map.end();++iter)
where print is your own printing function.
December 13th, 2009, 12:15 PM
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...
November 30th, 2009, 03:56 PM
Haha! Seriously I am so grateful! Thank you, sir! :)
August 7th, 2009, 04:19 AM
then you should call it this way:
funct1_addr("String parameter here!");
August 7th, 2009, 03:16 AM
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).
August 7th, 2009, 03:08 AM
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...
August 7th, 2009, 02:51 AM
Why are you enclosing the parameters in quotes? That is not needed! The function calls should look as follows:
funct1_addr (arg1, arg2);
August 4th, 2009, 09:41 AM
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 :)
August 4th, 2009, 08:40 AM
You need to call SetFocus right after you connect the threads in order for the SendInput to take place in the Notepad app:
if(AttachThreadInput( GetCurrentThreadId(), threadID,true))
August 3rd, 2009, 08:54 AM
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...
August 3rd, 2009, 06:51 AM
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...
August 3rd, 2009, 06:39 AM
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...
August 2nd, 2009, 05:22 PM
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...
August 2nd, 2009, 05:05 PM
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:
I would ask that you post the project, or some similar one to reproduce it here so we can test on our own PCs and see whats cooking :)
April 27th, 2009, 06:25 AM
a simple union would also do ;)
setting the correct bytes in b in the correct order ( according to the endianess of the machine ofc)
you can the...
April 11th, 2009, 09:32 AM
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...
April 10th, 2009, 04:37 AM
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
April 10th, 2009, 04:17 AM
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...
April 6th, 2009, 01:17 PM
if you have a pointer to a std:string
e.g. string * Name
you can either use (*Name).size() or Name->size() to call the function, provided you have already initialized that pointer with a new...
April 6th, 2009, 01:13 PM
Your sorting algorithm is wrong. Take a look at these:
Mainly the topics from Bubble sort to Selection sort since they are the simplest.
April 6th, 2009, 01:10 PM
You can check the IP, if you need a local address you can check whether your ip is:
Class A: 10.*.*.*
Class B: 172.*.*.*
Class C: 192.*.*.*
All of these Classes are LAN IP address types,...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.