|
-
Apr 26th, 2001, 01:37 PM
#1
Thread Starter
Lively Member
Type Casting
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???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|