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

C / C++ / MFC

 
QuestionQuestion about controlling Windows Services Pin
softgrid5-Nov-06 21:30
softgrid5-Nov-06 21:30 
AnswerRe: Question about controlling Windows Services Pin
Nibu babu thomas5-Nov-06 21:35
Nibu babu thomas5-Nov-06 21:35 
AnswerRe: Question about controlling Windows Services Pin
Blake Miller9-Nov-06 11:47
Blake Miller9-Nov-06 11:47 
QuestionArchitecture Problem Pin
baerten5-Nov-06 21:10
baerten5-Nov-06 21:10 
AnswerRe: Architecture Problem Pin
Rage5-Nov-06 22:49
professionalRage5-Nov-06 22:49 
GeneralRe: Architecture Problem Pin
baerten6-Nov-06 1:06
baerten6-Nov-06 1:06 
QuestionLPCSTR Pin
vtalau5-Nov-06 20:58
vtalau5-Nov-06 20:58 
AnswerRe: LPCSTR Pin
Nibu babu thomas5-Nov-06 21:22
Nibu babu thomas5-Nov-06 21:22 
vtalau wrote:
CString name = "John";
LPCSTR test = TEXT ("hello" + name);


This should not be done.

Always use TCHAR types with TEXT and _T, else when you compile with _UNICODE defined it could lead to waste of time.

You can do likewise...

CString name = _T( "Nibu " );
name += _T( "Hello" );
LPCTSTR test = name;
There is no need to wrap name inside TEXT(). You should be careful when using statements like
LPCSTR test = name; // This will be fine till you do a unicode build.
So always adopt a generic approach. Try to use _T() or TEXT() wherever possible along with their counterparts like LPCTSTR.


Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: LPCSTR Pin
Rage5-Nov-06 21:31
professionalRage5-Nov-06 21:31 
GeneralRe: LPCSTR Pin
Nibu babu thomas5-Nov-06 21:32
Nibu babu thomas5-Nov-06 21:32 
AnswerRe: LPCSTR Pin
Rage5-Nov-06 21:29
professionalRage5-Nov-06 21:29 
QuestionThread problem Pin
mt_samiei5-Nov-06 20:48
mt_samiei5-Nov-06 20:48 
AnswerRe: Thread problem Pin
_tasleem6-Nov-06 2:01
_tasleem6-Nov-06 2:01 
AnswerRe: Thread problem Pin
Mark Salsbery6-Nov-06 7:49
Mark Salsbery6-Nov-06 7:49 
QuestionI don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 20:25
dharani5-Nov-06 20:25 
AnswerRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 21:03
Hamid_RT5-Nov-06 21:03 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 21:14
dharani5-Nov-06 21:14 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 21:24
Hamid_RT5-Nov-06 21:24 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 21:58
dharani5-Nov-06 21:58 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 23:59
Hamid_RT5-Nov-06 23:59 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani6-Nov-06 0:51
dharani6-Nov-06 0:51 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT6-Nov-06 8:15
Hamid_RT6-Nov-06 8:15 
Questionunresolved external symbol _wWinMain@16 Pin
Raghavendra Pise5-Nov-06 20:20
Raghavendra Pise5-Nov-06 20:20 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Nibu babu thomas5-Nov-06 20:53
Nibu babu thomas5-Nov-06 20:53 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 0:40
Raghavendra Pise6-Nov-06 0:40 

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.