Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: type cast a CString to a LPTSTR Pin
Jose Cruz4-Jul-01 11:02
Jose Cruz4-Jul-01 11:02 
GeneralRe: type cast a CString to a LPTSTR Pin
Carlos Antollini4-Jul-01 11:22
Carlos Antollini4-Jul-01 11:22 
GeneralRe: type cast a CString to a LPTSTR Pin
Oscar Londono4-Jul-01 11:42
Oscar Londono4-Jul-01 11:42 
GeneralRe: type cast a CString to a LPTSTR Pin
Jose Cruz4-Jul-01 12:05
Jose Cruz4-Jul-01 12:05 
GeneralRe: type cast a CString to a LPTSTR Pin
Oscar Londono4-Jul-01 12:30
Oscar Londono4-Jul-01 12:30 
GeneralRe: type cast a CString to a LPTSTR Pin
Jose Cruz4-Jul-01 12:38
Jose Cruz4-Jul-01 12:38 
GeneralRe: type cast a CString to a LPTSTR Pin
Jose Cruz4-Jul-01 12:15
Jose Cruz4-Jul-01 12:15 
GeneralRe: type cast a CString to a LPTSTR Pin
Carlos Antollini5-Jul-01 4:35
Carlos Antollini5-Jul-01 4:35 
Usa wsprintf.

LPTSTR str = NULL;
int n = 1000;
malloc((LPTSTR)str, 256); //or the size that you want

wsprintf(str, "%d", n); //int -> LPTSTR

Check the documentatión about wsprintf for other types.

Carlos Antollini.
GeneralRe: type cast a CString to a LPTSTR Pin
Carlos Antollini5-Jul-01 4:43
Carlos Antollini5-Jul-01 4:43 
GeneralN-ary Tree Pin
sniper4-Jul-01 8:45
sniper4-Jul-01 8:45 
GeneralRe: N-ary Tree Pin
Ghazi H. Wadi4-Jul-01 11:38
Ghazi H. Wadi4-Jul-01 11:38 
GeneralRe: N-ary Tree Pin
Nick Blumhardt4-Jul-01 21:25
Nick Blumhardt4-Jul-01 21:25 
GeneralRe: N-ary Tree Pin
Ghazi H. Wadi5-Jul-01 7:56
Ghazi H. Wadi5-Jul-01 7:56 
GeneralUsing of classes from LIB ... Pin
Hadi Rezaee4-Jul-01 8:00
Hadi Rezaee4-Jul-01 8:00 
GeneralRe: Using of classes from LIB ... Pin
Michael P Butler4-Jul-01 9:11
Michael P Butler4-Jul-01 9:11 
GeneralRe: Using of classes from LIB ... Pin
Hadi Rezaee4-Jul-01 11:11
Hadi Rezaee4-Jul-01 11:11 
GeneralRe: Using of classes from LIB ... Pin
l a u r e n4-Jul-01 11:07
l a u r e n4-Jul-01 11:07 
GeneralRe: Using of classes from LIB ... Pin
Hadi Rezaee4-Jul-01 11:16
Hadi Rezaee4-Jul-01 11:16 
GeneralRe: Using of classes from LIB ... Pin
l a u r e n5-Jul-01 0:28
l a u r e n5-Jul-01 0:28 
GeneralHelp with Hooks or window messages PLEASE! Pin
Alex Waag4-Jul-01 7:34
Alex Waag4-Jul-01 7:34 
GeneralRe: Help with Hooks or window messages PLEASE! Pin
Oscar Londono4-Jul-01 11:17
Oscar Londono4-Jul-01 11:17 
GeneralGet a pointer from another function Pin
4-Jul-01 6:37
suss4-Jul-01 6:37 
GeneralRe: Get a pointer from another function Pin
Paolo Messina4-Jul-01 6:57
professionalPaolo Messina4-Jul-01 6:57 
GeneralRe: Get a pointer from another function Pin
Oscar Londono4-Jul-01 7:07
Oscar Londono4-Jul-01 7:07 
GeneralRe: Get a pointer from another function Pin
Mike Burston4-Jul-01 12:41
Mike Burston4-Jul-01 12:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.