Hello:
I'm trying to accomplish a "One-Shot-Hook" on a WM_LBUTTONUP. When I mean one-shot, I mean I just want to hook the WM_LBUTTONUP ONCE and attain the x- and y-coordinates of the click. After the button is up on a specific window, I want the hook to be removed. I've completed an...
Is it possible to allocate memory for a function? I'm running a program that consumes massive amounts of memory. I'm also interfacing with this program and checking various states of the program. After the program reaches a specific state, I exit my message loop and destroy my interfacing...
I'm not really sure what you're trying to do, but here's a suggestion. I'm not sure if you're familiar with PGM and PBM files. You could look into these if you'd like. PGM has a range of 256 black and white colors, while PBM black or white. If you import from the PGM or PBM, you can put it...
It just means that you have made a change to a file, which the program you created is dependent upon. It's not really an error. It's just instructing you that you have to update the program because you've changed a file. If you acknowledge it and say, "Yes." It will recompile your code. If...
Well, there's a couple of ways you can accomplish this.
First, create an array of a large size that you know will not be exceeded.
char largearray[100000];
Another approach, you can use a character pointer. The only problem with this is that if the string is REALLY large, you might...
Well, I solved the problem. One must note that a variant was passed into the function, and the type (data.vt = 8204). Well, while looking at the types, I determined that VT_ARRAY (8192) accompanied a bit-wise OR with VT_VARIANT (12), yields 8204, which is data.vt.
In all, it's an ARRAY of...
The code looks good, but the only discrepancy that I can see is that you should make currPtr a pointer...
bool LinkedList::deleteFirstN(int N)
{
nodePtr* currPtr; // Not nodePtr currPtr;
...
}
That is to say, when I try to acquire the value in the following fashion...
float x;
x = data.fltVal;
or
float x;
x = (float)data.fltVal;
*shrugs* I thought casting it might help. It doesn't. Any help would be much appreciated. Thank you, all.
Hello:
I've a question about VARIANT. I'm calling an ActiveX method called GetData().
VARIANT data;
Client->GetData(1, 1, 1, 1, &data);
The arguments in the .tli are as follows...
inline enum ReturnValue Server::GetData(short Address, short Parameter, short StartIndex, short NumValues...
Hello:
I was trying to obtain some information from a control on a custom application. It seemed like I could GetWindowText(...) on the window, but it returned "". After using Spy++, I determined that the control was actually using WM_PAINT to display the information I needed. I contacted...
Hello:
I'm trying to interact with another application running on the computer. It has some buttons that need to be sent some WM_LBUTTONUP. I'm using Spy++ to determine the buttons; however, I have twenty-five buttons on the window, they all are of the same class, and they all have a caption...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.