Type: Posts; User: olivthill2
Search took 0.02 seconds.
December 22nd, 2011, 04:35 AM
I guess the problem is with the date (DOB column), because the conversion, or lack of conversion, is a common problem with that kind of fields.
Could you try without the date?
December 19th, 2011, 10:46 AM
Increase the values for GL_SPECULAR.
December 6th, 2011, 06:05 AM
In Windows, transparency of bitmaps is managed with the alpha channel.
The alpha channel did not exist when I started to learn Windows programming, so I relied on something else which is a method...
December 6th, 2011, 05:56 AM
Detecting collisions is time consuming, but it is not very difficult.
You simply look if there is a wall in front of you and look at the altitude of the ground below your feet. You might also look...
December 2nd, 2011, 06:12 AM
what is -lhpdf?
-l means, you use a library
hpdf is the name of the library where its extension (characters after the ".") and its first three characters "lib" have been removed, in order to...
December 2nd, 2011, 06:03 AM
Brightness of a surface is mainly caused by the specular reflection.
See the second column of spheres at http://glprogramming.com/red/appendixi.html#plate16
A sumary of the differents lights is...
December 2nd, 2011, 05:22 AM
Try, by first compiling your cpp file to produce an object file, then by linking you object file with the object files included in the libraries:
g++ -c pdf.cpp -o pdf.o
October 18th, 2011, 09:33 AM
Try using using ordinary quotes (') instead of backquotes (`).
September 12th, 2011, 09:11 AM
Try EnumDisplaySettingsEx with ENUM_CURRENT_SETTINGS
See also a previous discussion at http://www.codeguru.com/forum/showthread.php?t=348483
September 12th, 2011, 09:05 AM
The command line window stores characters and their colors in a big array.
See http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_23/CH23-1.html or search google with "color b800...
September 12th, 2011, 08:57 AM
If this is a program working in a DOS box (also called "command line", "console window"), then see the answers previously given at http://www.codeguru.com/forum/archive/index.php/t-363635.html
September 2nd, 2011, 10:32 AM
Maybe, a right parenthesis is missing in:
N.B. Please, place your lines of code between
September 1st, 2011, 05:44 AM
strcspn() works with null terminated strings.
But, there is no guarantee your strings are null terminated.
memset(p, 0, strlen(data) );
memcpy(p, data, strlen(data));Let's suppose data is a...
August 30th, 2011, 05:56 AM
So stay away from MDI.
MDI was a kind of template for Windows 3.1. It is very old, and it was not designed for the kind of things you want to do. MDI is almost never used anymore. Instead, manage...
August 30th, 2011, 04:25 AM
I prefer to pass in, out, in/out variables as arguments, and return an error code, which would be 0 if everything went well, or some value if something went wrong.
//example 3 (ByRef in...
August 29th, 2011, 04:47 AM
and tags around your lines of code. They will show nicely like this:
m_rich.SetWindowText (cadena); Where does m_rich come from?
Anyway, I have used successfully Rich Edit...
August 29th, 2011, 04:37 AM
TransparentBlt() is a standard API function, see http://msdn.microsoft.com/en-us/library/dd145141(v=vs.85).aspx. So, you should be able to use in the same way you use BitBlt(), GetDC(), or other API....
August 24th, 2011, 04:43 AM
If you take two pictures of a wheel, how do you know if it is rolling clockwise or counterclockwise?
Suppose the first picture shows a spot at 12 o'clock, and the second picture shows that spot at...
August 10th, 2011, 03:27 AM
chooseFont_.hwndOwner = NULL;
chooseFont_.Flags = 0;
August 10th, 2011, 02:48 AM
I, too, was wondering whether I should write a BOM header or not.
Eventually, I decided to follow what Notepad (under Windows 7 home edition 32-bit) is doing.
And what is Notepad doing when it...
July 29th, 2011, 05:16 AM
DWORD-aligned bytes is needed.
#define TJPAD(p) (((p)+3)&(~3))
int paddedRow = TJPAD(bitmap.bmWidth*bitmap.bmBitsPixel/8);
#define TJPAD(bits) ((((bits) + 31) & ~31) >> 3)
July 27th, 2011, 10:23 AM
Interesting. I had in mind the following lines of C code where I thought that i was passed by reference:
int plus_one(int *n)
*n += 1;
int main(int argc, char *argv)
July 27th, 2011, 06:03 AM
To me, the difficulty is not about the theory, it is about concrete situations, and I guess it is the same for you. My solution is to learn examples, without triying to understand them.
In C and...
July 21st, 2011, 03:38 AM
First, I would use numerical ID for every entity, and that ID would be the first field in each table:
1) Entity name: Movie
MovieID (primary key)
July 19th, 2011, 04:19 AM
The definition looks correct to me for your tables of recipes, images and ingredients.
I have a doubt about the definition of your table of categories because I don't know very well what you mean by...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.