Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Size of the Message loop Pin
CPallini23-Dec-09 23:50
mveCPallini23-Dec-09 23:50 
GeneralRe: Size of the Message loop Pin
Richard MacCutchan24-Dec-09 0:01
mveRichard MacCutchan24-Dec-09 0:01 
GeneralRe: Size of the Message loop Pin
CPallini24-Dec-09 0:19
mveCPallini24-Dec-09 0:19 
GeneralRe: Size of the Message loop Pin
Richard MacCutchan24-Dec-09 0:59
mveRichard MacCutchan24-Dec-09 0:59 
GeneralRe: Size of the Message loop Pin
Chris Meech24-Dec-09 2:16
Chris Meech24-Dec-09 2:16 
GeneralRe: Size of the Message loop Pin
Rajesh R Subramanian24-Dec-09 2:33
professionalRajesh R Subramanian24-Dec-09 2:33 
GeneralRe: Size of the Message loop Pin
Chris Meech24-Dec-09 2:47
Chris Meech24-Dec-09 2:47 
AnswerRe: Size of the Message loop Pin
Richard MacCutchan23-Dec-09 23:59
mveRichard MacCutchan23-Dec-09 23:59 
AnswerRe: Size of the Message loop Pin
Rajesh R Subramanian24-Dec-09 2:21
professionalRajesh R Subramanian24-Dec-09 2:21 
Questionerror "a required resource was unavailable". Pin
Le@rner23-Dec-09 22:41
Le@rner23-Dec-09 22:41 
Questionpassing a variable inside thread Pin
Le@rner23-Dec-09 18:46
Le@rner23-Dec-09 18:46 
AnswerRe: passing a variable inside thread Pin
Adam Roderick J23-Dec-09 18:59
Adam Roderick J23-Dec-09 18:59 
GeneralRe: passing a variable inside thread Pin
Rajesh R Subramanian23-Dec-09 21:57
professionalRajesh R Subramanian23-Dec-09 21:57 
Adam Roderick J 09 wrote:
Change Allocation to Heap if scope of thread is unknown
pass the TCHAR*.
CString csTemp( "Sample data" );
LPTSTR lpszData = new TCHAR[csTemp.GetLength()+1];
_tcscpy(lpszData , csTemp)


While a pointer to the CString object on the heap itself can be passed to the thread, why bother creating a character array on the heap and deal with allocation size manually? Smile | :)


Adam Roderick J 09 wrote:
LPTSTR lpszData = new TCHAR[csTemp.GetLength()+1];


That won't work as expected with Unicode strings.


“Follow your bliss.” – Joseph Campbell

QuestionRe: passing a variable inside thread Pin
CPallini23-Dec-09 22:25
mveCPallini23-Dec-09 22:25 
AnswerRe: passing a variable inside thread Pin
Rajesh R Subramanian23-Dec-09 22:32
professionalRajesh R Subramanian23-Dec-09 22:32 
GeneralRe: passing a variable inside thread Pin
Adam Roderick J23-Dec-09 22:39
Adam Roderick J23-Dec-09 22:39 
GeneralRe: passing a variable inside thread Pin
CPallini23-Dec-09 23:05
mveCPallini23-Dec-09 23:05 
GeneralRe: passing a variable inside thread Pin
Adam Roderick J23-Dec-09 22:34
Adam Roderick J23-Dec-09 22:34 
GeneralRe: passing a variable inside thread Pin
Rajesh R Subramanian24-Dec-09 1:38
professionalRajesh R Subramanian24-Dec-09 1:38 
AnswerRe: passing a variable inside thread Pin
Rajesh R Subramanian23-Dec-09 21:49
professionalRajesh R Subramanian23-Dec-09 21:49 
Questionupload larger file using Ftp in c+ Builder problem Pin
raj157623-Dec-09 18:37
raj157623-Dec-09 18:37 
QuestionI want to attach my window to the parent window so that on resizing or minimizing the parent window, the child window should be resized and moved appropriately Pin
manoharbalu23-Dec-09 18:30
manoharbalu23-Dec-09 18:30 
AnswerRe: I want to attach my window to the parent window so that on resizing or minimizing the parent window, the child window should be resized and moved appropriately Pin
Richard MacCutchan23-Dec-09 22:20
mveRichard MacCutchan23-Dec-09 22:20 
Questionhow to disable keyboard accelerators temporarily in a mdi application Pin
Prasann Mayekar23-Dec-09 17:04
Prasann Mayekar23-Dec-09 17:04 
AnswerRe: how to disable keyboard accelerators temporarily in a mdi application Pin
Adam Roderick J23-Dec-09 17:23
Adam Roderick J23-Dec-09 17:23 

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.