Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems receiving highspeed data using CAsyncSocket::OnReceive() Pin
Mark Salsbery26-Feb-08 8:54
Mark Salsbery26-Feb-08 8:54 
GeneralRe: Problems receiving highspeed data using CAsyncSocket::OnReceive() Pin
ramana.g26-Feb-08 17:20
ramana.g26-Feb-08 17:20 
GeneralContext Menu item Command identification Pin
Alberto Bar-Noy26-Feb-08 4:49
Alberto Bar-Noy26-Feb-08 4:49 
QuestionRe: Context Menu item Command identification Pin
David Crow26-Feb-08 4:58
David Crow26-Feb-08 4:58 
GeneralRe: Context Menu item Command identification Pin
Alberto Bar-Noy26-Feb-08 5:12
Alberto Bar-Noy26-Feb-08 5:12 
Generalstring conversion Pin
ginjikun26-Feb-08 4:41
ginjikun26-Feb-08 4:41 
GeneralRe: string conversion Pin
David Crow26-Feb-08 4:55
David Crow26-Feb-08 4:55 
GeneralRe: string conversion Pin
CPallini26-Feb-08 5:00
mveCPallini26-Feb-08 5:00 
1) one is OK.

2) is bad, since it will work only on UNICODE builds. it is better:
LPTSTR str = _T("something");
func(str);


BTW: The L prefix does the magic for wide character literals, for instance
LPWSTR str = L"something"

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: string conversion Pin
ginjikun26-Feb-08 6:28
ginjikun26-Feb-08 6:28 
GeneralRe: string conversion Pin
CPallini26-Feb-08 8:06
mveCPallini26-Feb-08 8:06 
GeneralRe: string conversion Pin
ginjikun27-Feb-08 1:07
ginjikun27-Feb-08 1:07 
GeneralRe: string conversion Pin
CPallini27-Feb-08 2:02
mveCPallini27-Feb-08 2:02 
AnswerRe: string conversion Pin
Rajkumar R26-Feb-08 5:00
Rajkumar R26-Feb-08 5:00 
GeneralRe: string conversion Pin
ginjikun26-Feb-08 5:24
ginjikun26-Feb-08 5:24 
GeneralRe: string conversion Pin
Rajkumar R26-Feb-08 8:19
Rajkumar R26-Feb-08 8:19 
GeneralRe: string conversion Pin
Hamid_RT26-Feb-08 19:27
Hamid_RT26-Feb-08 19:27 
GeneralImplementing 'Spell Check' option. Pin
Sanjay K26-Feb-08 4:32
Sanjay K26-Feb-08 4:32 
GeneralRe: Implementing 'Spell Check' option. Pin
led mike26-Feb-08 4:36
led mike26-Feb-08 4:36 
GeneralRe: Implementing 'Spell Check' option. Pin
Mark Salsbery26-Feb-08 5:27
Mark Salsbery26-Feb-08 5:27 
GeneralRe: Implementing 'Spell Check' option. Pin
David Crow26-Feb-08 4:54
David Crow26-Feb-08 4:54 
GeneralImplementing Bookmarks option. Pin
Sanjay K26-Feb-08 4:27
Sanjay K26-Feb-08 4:27 
GeneralRe: Implementing Bookmarks option. Pin
led mike26-Feb-08 4:35
led mike26-Feb-08 4:35 
GeneralRe: Implementing Bookmarks option. Pin
David Crow26-Feb-08 4:52
David Crow26-Feb-08 4:52 
GeneralDestroyWindow not working Pin
krishnan.s26-Feb-08 3:58
krishnan.s26-Feb-08 3:58 
GeneralRe: DestroyWindow not working Pin
David Crow26-Feb-08 4:15
David Crow26-Feb-08 4:15 

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.