I have solved this. Although this problem was completely application specific, in case anyone ever comes across a problem similar to this one, the function the application used was SetWindowOrgEx,...
Type: Posts; User: abraham2119
I have solved this. Although this problem was completely application specific, in case anyone ever comes across a problem similar to this one, the function the application used was SetWindowOrgEx,...
Because the application is third-party software.
Why would I want to invalidate anything other than the client area..That's pointless, the rendering is occurring in the client area. Regardless,...
Yeah, I was guessing that. Now, recall that I invalidate the whole window right after I hook this function, so it does perform a full paint.
The reason I want to hook BitBlt is because I'm trying...
I know that..
I think you completely missed the point. The BitBlt calls aren't originating from my window, they are originating from a window pertaining to an external process which I injected a...
Hello,
I have a program that loads a DLL into a remote process and hooks the "BitBlt" function. Now the problem's as follows; I'm attempting to get the coordinates of where a certain device...
My "code" basically consists of the structure above, only that instead of void *, they are <other_struct> *.
My mistake everybody. I don't allocate 65535 bytes, I allocate 65535 structures. Some of them contain 10 bytes per structure, some of the sections more and some less.
Is this simply stating that...
Not the compiler, but the program spits a runtime error. I know malloc() fails since it returns NULL.
I have 2GB RAM.
I don't think malloc() fails due to an inability to find available memory, since there obviously is; it just fails after allocating a specific amount of memory.
I have a generic application which basically reads a file following a specific format. This requires me to allocate memory depending on the file's attributes, and such. The maximum memory the file...
On mine it doesn't :(
I am running Windows XP
Hello,
In my application I am making a call to GetGUIThreadInfo() but it returns 0. After making a call to GetLastError() I see that it's returning 87; which hints to the fact that I am passing an...
I'm assuming your question is a doubt concerning the other thread you posted.
Basically, when doing:
int *p = arr;
The pointer 'p' is pointing to the array's first element's address. When...
When referencing an array object directly, like you do with 'p=arr+3', it returns a pointer to the first element in the array. When summing 3 to it, it is returning the 4th element in the array.
...
An enter key-press is equivalent to a newline character (\n). You can simply revise the received character from the user's input and check if it equals '\n'.
Note: If you are using a function such...
This is a huge waste of memory. Why not have an array per event which contains the connections that are awaiting the specific event?
For example, if your connections need to pass through 3...
No. During compile time, the compiler allocates the exact memory the program needs as of that time. The memory is allocated before-hand. When allocating memory dynamically, the application goes...
Isn't there a way of doing this by using the carriage return character (\r on Windows)?
I'm pretty sure the escape character stood for "replace line" or something among those lines.
Bitmap Format.
Start reading!
The problem was client-sided, actually. I just finished fixing it. I did not intend to treat the received byte(s) as characters, I simply wanted to read from the stream line-per-line. I did not know...
@Cactus_Hugger: On my windows XP OS, it printed a question mark.
Anyways, as to the thread, it is as Zlatko described it. The internal string conversions were causing the problem. Turns out to...
I wrote a sample application that illustrates my problem.
Run the server and then the client, and the client will print out a question mark character, which has the value of 63.
Here is the...
I doubt it is a bug of either the receiving or sending code since when the client writes either one of the bytes (-112, -113, -115) the server receives it as 63, and the same happens vice versa...
Hello,
I have a simple networking application. Everything runs perfectly well. The server is programmed in C, while the client is programmed in Java.
The only thing is that when the server...
Sebastiani, thank you for your response. That was not my specific question, but no matter, your reply helped me come up with a simplistic idea. My problem was that my character was attached to a...