Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Flicker free drawing in MFC... Pin
JamRoll12-Aug-04 10:48
JamRoll12-Aug-04 10:48 
GeneralRe: Flicker free drawing in MFC... Pin
Ryan Binns12-Aug-04 13:56
Ryan Binns12-Aug-04 13:56 
QuestionPlease Help me about Digital Map Help ?Help ?Help ?Help ? Please ? Pin
A_Fa6-Aug-04 21:06
A_Fa6-Aug-04 21:06 
Generalproblem with STL Vector Pin
Sivaji6-Aug-04 20:41
Sivaji6-Aug-04 20:41 
GeneralRe: problem with STL Vector Pin
DavidR_r7-Aug-04 1:26
DavidR_r7-Aug-04 1:26 
GeneralHey problem with STL Vector Pin
Sivaji6-Aug-04 20:39
Sivaji6-Aug-04 20:39 
Questionhow to change the shape of the SDI window Pin
n.srinukumar6-Aug-04 19:49
n.srinukumar6-Aug-04 19:49 
QuestionWhat is the difference between LPWSTR and WCHAR * Pin
ting6686-Aug-04 19:40
ting6686-Aug-04 19:40 
as title.

Can I do this?

WCHAR *strPtr1 = new WCHAR[10];
strPtr1 = L"123456";
LPWSTR strPtr2 = strPtr1;

if I do not delete strPtr1 and strPtr2 before redirect strPtr2 points to the other place, will it cause memory leakage?

e.g
strPtr2 = L"abcdef";

And there is any difference between
WCHAR *strPtr1 = new WCHAR[10];
and
LPWSTR *strPtr1 = new wchar_t[10];
?

Thanks
AnswerRe: What is the difference between LPWSTR and WCHAR * Pin
Gary R. Wheeler7-Aug-04 1:13
Gary R. Wheeler7-Aug-04 1:13 
GeneralRe: What is the difference between LPWSTR and WCHAR * Pin
ting6687-Aug-04 2:45
ting6687-Aug-04 2:45 
GeneralRe: What is the difference between LPWSTR and WCHAR * Pin
Tim Smith7-Aug-04 19:22
Tim Smith7-Aug-04 19:22 
GeneralVC6 IDE Bookmarks question Pin
Gammill6-Aug-04 19:02
Gammill6-Aug-04 19:02 
GeneralShell extension...help Pin
Member 12827896-Aug-04 18:34
Member 12827896-Aug-04 18:34 
GeneralRe: Shell extension...help Pin
Michael Dunn7-Aug-04 3:46
sitebuilderMichael Dunn7-Aug-04 3:46 
QuestionHow to set the entry point of an application. Pin
Jijo.Raj6-Aug-04 17:22
Jijo.Raj6-Aug-04 17:22 
AnswerRe: How to set the entry point of an application. Pin
bikram singh6-Aug-04 23:15
bikram singh6-Aug-04 23:15 
GeneralRe: How to set the entry point of an application. Pin
Jijo.Raj6-Aug-04 23:33
Jijo.Raj6-Aug-04 23:33 
GeneralRe: How to set the entry point of an application. Pin
ThatsAlok7-Aug-04 0:55
ThatsAlok7-Aug-04 0:55 
GeneralRe: How to set the entry point of an application. Pin
Gary R. Wheeler7-Aug-04 1:16
Gary R. Wheeler7-Aug-04 1:16 
Questioncombobox ? Pin
N.Byarley6-Aug-04 17:18
N.Byarley6-Aug-04 17:18 
AnswerRe: combobox ? Pin
N.Byarley7-Aug-04 5:36
N.Byarley7-Aug-04 5:36 
Questionhow to find a process CPU usage time. Pin
deep_george_zachariah6-Aug-04 16:46
sussdeep_george_zachariah6-Aug-04 16:46 
AnswerRe: how to find a process CPU usage time. Pin
A_Fa7-Aug-04 2:47
A_Fa7-Aug-04 2:47 
GeneralHi all, one question about IShellFolder Pin
johnny,Kim6-Aug-04 15:47
johnny,Kim6-Aug-04 15:47 
GeneralHelp Pin
Archer2826-Aug-04 15:46
Archer2826-Aug-04 15:46 

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.