Click here to Skip to main content
15,913,570 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminate sqlservr.exe process Pin
Tim Smith12-Oct-05 3:54
Tim Smith12-Oct-05 3:54 
QuestionIncrease Text speed in CBanner class ? Pin
Amarelia12-Oct-05 2:13
Amarelia12-Oct-05 2:13 
AnswerRe: Increase Text speed in CBanner class ? Pin
Cedric Moonen12-Oct-05 2:16
Cedric Moonen12-Oct-05 2:16 
GeneralRe: Increase Text speed in CBanner class ? Pin
Amarelia12-Oct-05 2:17
Amarelia12-Oct-05 2:17 
AnswerRe: Increase Text speed in CBanner class ? Pin
toxcct12-Oct-05 2:20
toxcct12-Oct-05 2:20 
QuestionConvert CString to LPCTSTR Pin
karmendra_js12-Oct-05 1:47
karmendra_js12-Oct-05 1:47 
Answer[Msg Deleted] Pin
toxcct12-Oct-05 1:53
toxcct12-Oct-05 1:53 
GeneralRe: Convert CString to LPCTSTR Pin
David Crow12-Oct-05 3:17
David Crow12-Oct-05 3:17 
toxcct wrote:
CString str = "Hello World";
char* pc;
strcpy(pc, (LPCTSTR)str);


While I understand the intent of your code, there are two things wrong with it. First is that no memory has been allocated to pc. Second, the cast in strcpy() is not needed.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: [Msg Deleted] Pin
karmendra_js12-Oct-05 4:49
karmendra_js12-Oct-05 4:49 
GeneralRe: [Msg Deleted] Pin
toxcct12-Oct-05 5:06
toxcct12-Oct-05 5:06 
AnswerRe: Convert CString to LPCTSTR Pin
Maximilien12-Oct-05 1:58
Maximilien12-Oct-05 1:58 
GeneralRe: Convert CString to LPCTSTR Pin
toxcct12-Oct-05 2:12
toxcct12-Oct-05 2:12 
GeneralRe: Convert CString to LPCTSTR Pin
Roger Stoltz12-Oct-05 2:26
Roger Stoltz12-Oct-05 2:26 
GeneralRe: Convert CString to LPCTSTR Pin
toxcct12-Oct-05 2:31
toxcct12-Oct-05 2:31 
GeneralRe: Convert CString to LPCTSTR Pin
icabod12-Oct-05 3:27
icabod12-Oct-05 3:27 
GeneralRe: Convert CString to LPCTSTR Pin
toxcct12-Oct-05 3:36
toxcct12-Oct-05 3:36 
QuestionHow to activate OnFileNew()? Pin
ryuki12-Oct-05 1:20
ryuki12-Oct-05 1:20 
AnswerRe: How to activate OnFileNew()? Pin
karmendra_js12-Oct-05 1:46
karmendra_js12-Oct-05 1:46 
GeneralRe: How to activate OnFileNew()? Pin
ryuki12-Oct-05 3:10
ryuki12-Oct-05 3:10 
AnswerRe: How to activate OnFileNew()? Pin
Roger Stoltz12-Oct-05 3:05
Roger Stoltz12-Oct-05 3:05 
GeneralRe: How to activate OnFileNew()? Pin
ryuki12-Oct-05 3:51
ryuki12-Oct-05 3:51 
QuestionPlease advice VOIP library ? Pin
vgrigor112-Oct-05 0:56
vgrigor112-Oct-05 0:56 
QuestionHow to solve windows getting distorted after pushing up DPI settings Pin
atsharma12-Oct-05 0:37
atsharma12-Oct-05 0:37 
QuestionMouse control funny Pin
Anonymous12-Oct-05 0:07
Anonymous12-Oct-05 0:07 
AnswerRe: Mouse control funny Pin
Anonymous12-Oct-05 23:22
Anonymous12-Oct-05 23:22 

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.