08-31-2007 02:48 PM
09-02-2007 08:21 PM
09-02-2007 08:31 PM
09-04-2007 08:45 AM
Hi Kari,
The way I set up the example was to print the hexadecimal value of each pixel - 0 is black and FF is white. If you want to see values from 0-1, then change the appropriate line to sprintf(startOfData + strlen(startOfData), "%f ", (unsigned char)(array[col + cols * row]) / 255.0);
What you are struggling with is trying to have an application that is both a GUI app and a console app. When you switched the linker flag, you made a console app; however, you are using MFC for your GUI, which doesn't work unless you link to build a GUI app.
Your two best options are to (1) make a dialog box with a text control on it or (2) allocate and associate a console into your GUI app. The MFC examples should have some examples on how to make a dialog box with a text control and how to use it. If you want to allocate a console, I'd suggest reading http://www.halcyon.com/~ast/dload/guicon.htm
Good Luck
-Jeff
11-04-2007 07:47 PM
11-06-2007 12:37 PM