okay im trying to typecast an int to a LPCTSTR as follows:

int betamount = 5;

SetDlgItemText(ID_BET,(LPCTSTR)betamount); // requires LPCTSR as a parameter

this will compile fine but it gives gives an application error of referencing illegal memory when i run the app.

what am I doing wrong???