Search:
Type: Posts; User: tgreaves
Search:
Search took 0.02 seconds.
-
January 14th, 2009, 10:01 AM
I know the .manifest file is for dependensies for my program.. Is this to make sure that the "version" of the msvc dll's that is uses are the same as the "version" of the dll's that my program was...
-
December 10th, 2008, 03:22 PM
Grr, cant seem to get this to work..
I have a class that has
The header has
int* puzzle;
The constructor has
puzzle = new int[81];
-
August 21st, 2008, 11:10 AM
I have a char array, char cCallProgram[8];
After running some code I need to see if the array is == spaces..
I am trying to do
memcmp(cCallProgram, ' ', sizeof(cCallProgram))
Its complaining...
-
August 14th, 2008, 03:32 PM
so printf will dereference a pointer then? From what I gather here printf only gets memory addresses, is that correct?
meaning:
1. printf("abc123") means printf will get a memory address , and...
-
August 14th, 2008, 03:01 PM
Right but suppose you passed a string to printf, it would print the value of the string.. But suppose you passed a pointer to a string, what would it print then?
-
August 14th, 2008, 02:40 PM
So depending on how you use it, a char* can be a memory address or the value in the memory address?
-
August 14th, 2008, 02:27 PM
#include <stdio.h>
char* arrayReturner()
{
static char arr[20] = "Hello World";
printf("%s \n", arr);
return(arr);
}
main()
-
July 31st, 2008, 09:56 AM
I thought "if (!memcmp(szKeyName,szUp,2))" was testing for not zero???
-
July 31st, 2008, 09:35 AM
Very strange.. This code below works..
iMyInt = memcmp(szKeyName, szUp, 2);
if (iMyInt == 0) {
s_selected[mapSudokuBoard[hwnd]] = 0 ;
SetFocus...
-
July 31st, 2008, 09:28 AM
I havent checked the values as of yet.. My boss is a c++ programmer and thats just what he told me to use.. Ill check out strcmp also..
-
July 31st, 2008, 09:18 AM
Im new to c++ so bare with me.. This code compiles but it doesnt stop when they are equal.. Whats my problem?
static TCHAR * szUp = TEXT ("Up")
TCHAR szKeyName[32];
if...
-
July 29th, 2008, 04:13 PM
Oh yeah, forgot about that one..
-
July 29th, 2008, 01:43 PM
Ahh, so invalidating the entire program would cause 81 different paint messages to come up then, correct? (there are 81 different windows for the game)..
-
July 29th, 2008, 01:20 PM
Web browsers dont have this feature either.. ;)
-
July 29th, 2008, 01:19 PM
Yeaaaa.. Works now.. Only thing I see is that its just a slow as before.. Im guess thats because im drawing each window individually, correct?
Would it be better to invalidateRect the entire...
-
July 29th, 2008, 01:16 PM
Ok, I fixed the FillRect.. Was still using rect instead of rectPage..
Problem im seeing now is then when the window is selected.. The number isnt selected.. Very strange..
if...
-
July 29th, 2008, 12:59 PM
rect was the old "rect" that I was using.. I changed all of them to rectPage now..
I changed the focus code that you gave me but it cant find GetSysMetrics.. Is there another include file that I...
-
July 29th, 2008, 10:52 AM
It doesnt seem to work correctly.. Here is my paint area..
case WM_PAINT :
hdc = BeginPaint (hwnd, &ps) ;
RECT rectPage;
GetClientRect(hwnd, &rectPage);
...
-
July 29th, 2008, 09:54 AM
Yes, can you send me an example of buffered painting..
-
July 28th, 2008, 02:05 PM
Awesome.. Thanks..
Im going to use a for() loop for creating the windows.. Was just thinking about that actually..
-
July 28th, 2008, 10:27 AM
Well what I came up with is just a int array of 81 elements that im using as a switch to say if the window is selected or not.. If a user click on one of the windows then I go to my map (HWND, int)...
-
July 25th, 2008, 12:40 PM
Crap.. Spoke too soon... So I do a GetClientRect() to get the current Window size, then use a FillRect to fill it in and then do an InvalidateRect() to repaint the number thats in the window all...
-
July 25th, 2008, 12:38 PM
Its best to go for the gut when learning something new.. :)
My problem is that the only way I know to change the background (without using WM_ERASEBKGND) is to begin and end paint which I should...
-
July 25th, 2008, 09:44 AM
I have heard that you only paint the screen during a WM_PAINT message..
Suppose I want to change the background color of window when a user click on it.. Is it ok to do a BeginPaint and EndPaint...
-
July 23rd, 2008, 01:47 PM
So an iterator is a pointer to the key then?
Ahh.. hehe, ok.. Will all the new things that im learning in c++ I think that everything has to do with c++..
|
Click Here to Expand Forum to Full Width
|