Type: Posts; User: Coder Dave
Search took 0.01 seconds.
March 20th, 2013, 12:23 AM
Why are you copying 2048 bytes when the input buffer is only 1024 bytes?
So your application is basically displaying the output of a black and white digital camera in a window. You are receiving...
March 19th, 2013, 11:39 PM
If Vec contains a pointer to some some structure, then eax is assigned a copy of the first attribute of that structure. To assign a copy of the second attribute of that same structure to ebx, follow...
March 19th, 2013, 02:44 AM
Other processes running would also affect the speed of your program.
I am just wondering if one line of data (1024 bytes) will be drawn to one line of the display that was created in Draw Image...
March 19th, 2013, 12:43 AM
Hmmm, I could swear someone else just posted questions about this same assignment a little while ago ...
nested loops to streamlined code
And would you know it was from the same user? :wave:
March 19th, 2013, 12:13 AM
I am sure the term "procedure" is being used loosely. It just means a function that does not return a value, that is, the return type is void. Of course, a class method is also a function.
March 18th, 2013, 11:09 PM
What is CPP?
What is BitPlanes? This should be 1.
Unless CPP is 32, BMPInfo.bmiHeader.biSizeImage is miscalculated.
Why do you set BMPInfo.bmiHeader.biClrUsed to 24? This is saying that you want...
March 18th, 2013, 01:31 AM
The only way to learn to program is to actually write programs. If you have the source code for something, you still need to try it to see if it does what you think it does. A lot of times you may...
March 18th, 2013, 01:17 AM
A process is an instance of an executable or application. If you have multiple instances of the same executable running at the same time, each instance is its own process. The process includes all...
March 15th, 2013, 06:45 PM
GIFs are lossy too.
An uncompressed bitmap file would be the easiest to process.
March 15th, 2013, 05:36 PM
Optimizers are known for switching the order of instructions in order to make things run faster. However, this switching should only occur if it does not affect the outcome of the instructions. ...
March 15th, 2013, 05:10 PM
I have never used Python so I do not know anything about it. I mainly use C++. It is sort of in the middle in terms of programming languages. It is not tedious like assembly language, but at the...
March 14th, 2013, 01:02 AM
Any program that does anything will use more memory than the size of the executable file. First, that executable file is loaded into memory. Then any DLLs that the process uses are also loaded into...
March 14th, 2013, 12:08 AM
If you have Microsoft Visual Studio installed and an application crashes due to an access violation or invalid machine instruction, you will be asked if you want to start the debugger that comes with...
March 12th, 2013, 02:30 AM
Instead of using your iPhone to take pictures of your monitor, you could press Ctrl-Alt-Print Screen, which copies the contents of the current window into the clipboard. From there you can paste it...
March 12th, 2013, 01:05 AM
Should I assume that you just want to know how to do this for curiosity's sake? You do not want to steal anyone's code or do anything malicious, right? You just want to peak under the "hood"? All...
March 11th, 2013, 11:24 PM
If you want to learn C++, you need to understand the syntax of the language. These are simple errors that even a beginner should be able to find and fix easily.
By the way, the answer is 10.
March 11th, 2013, 11:07 PM
March 11th, 2013, 10:50 PM
If your compiler does not support an API function, you can always use LoadLibrary() and GetProcAddress() to get the address of the function dynamically. The following test program shows how this is...
March 9th, 2013, 11:21 PM
Here are some fixes to your code. Study it and my comments. :)
March 9th, 2013, 10:36 PM
Your while loop will be executed only one time at most, since you are breaking out of it under both conditions of the if statement. Breaking out of loops is also considered to be sloppy coding...
March 9th, 2013, 09:55 PM
Use the GetParent() function to get the window handle of the dialog box's parent. Then use the GetWindowLongPtrW() as before to get the pointer to your App instance. There is also a...
March 9th, 2013, 08:02 PM
From my experience, GetWindowRect() always sets the left and top members of the RECT structure variable to 0, so subtracting them would not be needed. If this assumption bothers you, then you can...
March 8th, 2013, 11:24 PM
Callback functions must be static, that is, they cannot be associated with any particular instance of a class.
static LRESULT CALLBACK App::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM...
March 8th, 2013, 09:47 PM
RECT is a structure. When you pass a structure variable to a function in C++, you need to pass a pointer/reference to that variable. GetWindowRect() takes two arguments, a window handle and a...
March 8th, 2013, 08:43 PM
On a side note, make sure you terminate the copy of the string.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.