I keep getting pretty bad errors on this...like protection faults.

here is the code in my button:

PHP Code:
int thenumber;
                
char pc;
                
itoa(thenumberpcthenumber);
                
                
srand(time(NULL));
                
num1 rand() % 3;
                
num2 rand() % 3;
                
num3 rand() % 3;
                
                
SendMessage(ghWnd_Slot1WM_SETTEXT0, (LPARAM) (LPCTSTRitoa(num1pc10));
                
SendMessage(ghWnd_Slot2WM_SETTEXT0, (LPARAM) (LPCTSTRitoa(num2pc10));
                
SendMessage(ghWnd_Slot3WM_SETTEXT0, (LPARAM) (LPCTSTRitoa(num3pc10));