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

C / C++ / MFC

 
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 
AnswerRe: What is the difference between LPWSTR and WCHAR * Pin
Gary R. Wheeler7-Aug-04 1:13
Gary R. Wheeler7-Aug-04 1:13 
WCHAR *strPtr1 = new WCHAR[10];
strPtr1 = L"123456";
LPWSTR strPtr2 = strPtr1;
Both pointers now point to the same array of 10 WCHAR's. If you delete either pointer, the memory is returned to the heap, and neither pointer may be used to access the memory.
LPWSTR *strPtr1 = new wchar_t[10];
This will not compile. LPWSTR, which can be read as Long Pointer to Wide STRing, is defined as
typedef WCHAR FAR * LPWSTR;
in the Windows headers. If you had written
LPWSTR strPtr1 = new wchar_t[10];
instead, this would work. Notice I removed the asterisk between LPWSTR and strPtr1. LPWSTR is already a pointer. WCHAR and wchar_t are essentially equivalent, in that they refer to a 16 bit value used as a wide character.



Software Zen: delete this;
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 
GeneralRe: Help Pin
PJ Arends6-Aug-04 16:21
professionalPJ Arends6-Aug-04 16:21 

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.