Click here to Skip to main content
15,887,435 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: check whether user logged in to Local system/domain Pin
David Crow23-Jan-07 3:03
David Crow23-Jan-07 3:03 
GeneralRe: check whether user logged in to Local system/domain Pin
sach!!23-Jan-07 3:17
sach!!23-Jan-07 3:17 
QuestionRe: check whether user logged in to Local system/domain Pin
David Crow23-Jan-07 3:40
David Crow23-Jan-07 3:40 
AnswerRe: check whether user logged in to Local system/domain Pin
James R. Twine23-Jan-07 4:06
James R. Twine23-Jan-07 4:06 
QuestionProperty Sheets and OnInitialize() Pin
Like2Byte23-Jan-07 2:31
Like2Byte23-Jan-07 2:31 
AnswerRe: Property Sheets and OnInitialize() Pin
David Crow23-Jan-07 3:06
David Crow23-Jan-07 3:06 
QuestionCString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 1:25
uday kiran janaswamy23-Jan-07 1:25 
AnswerRe: CString to LPCSTR. Pin
Mass Nerder23-Jan-07 1:47
Mass Nerder23-Jan-07 1:47 
uday kiran janaswamy wrote:
CString str = "Hellow this is a Text";
LPCSTR result[150];

-->how we get the str value in result ?.

i.e result = "Hellow this is a Text".


You can't use LPCSTR here because of the constantness. But how about this:

LPTSTR result[150];<br />
_tcsncpy(result, str.GetString(), 150);<br />

hth,
Christof
GeneralRe: CString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 1:56
uday kiran janaswamy23-Jan-07 1:56 
GeneralRe: CString to LPCSTR. Pin
James R. Twine23-Jan-07 2:49
James R. Twine23-Jan-07 2:49 
GeneralRe: CString to LPCSTR. Pin
David Crow23-Jan-07 3:09
David Crow23-Jan-07 3:09 
AnswerRe: CString to LPCSTR. Pin
Anilkumar K V23-Jan-07 1:56
Anilkumar K V23-Jan-07 1:56 
AnswerRe: CString to LPCSTR. Pin
Abris23-Jan-07 2:09
Abris23-Jan-07 2:09 
AnswerRe: CString to LPCSTR. Pin
toxcct23-Jan-07 2:21
toxcct23-Jan-07 2:21 
GeneralRe: CString to LPCSTR. Pin
uday kiran janaswamy23-Jan-07 3:05
uday kiran janaswamy23-Jan-07 3:05 
Questionmain() Pin
Anilkumar K V23-Jan-07 1:18
Anilkumar K V23-Jan-07 1:18 
AnswerRe: main() Pin
toxcct23-Jan-07 2:18
toxcct23-Jan-07 2:18 
GeneralRe: main() Pin
David Crow23-Jan-07 3:15
David Crow23-Jan-07 3:15 
GeneralRe: main() Pin
toxcct23-Jan-07 3:16
toxcct23-Jan-07 3:16 
AnswerRe: main() Pin
Waldermort23-Jan-07 2:23
Waldermort23-Jan-07 2:23 
QuestionMicrosoft Outlook: &amp;quot;A Program is trying to send email..&amp;quot; [modified] Pin
Abris23-Jan-07 0:48
Abris23-Jan-07 0:48 
AnswerRe: Microsoft Outlook: &quot;A Program is trying to send email..&quot; Pin
toxcct23-Jan-07 0:51
toxcct23-Jan-07 0:51 
GeneralRe: Microsoft Outlook: &amp;amp;quot;A Program is trying to send email..&amp;amp;quot; Pin
Abris23-Jan-07 0:59
Abris23-Jan-07 0:59 
GeneralRe: Microsoft Outlook: &amp;amp;quot;A Program is trying to send email..&amp;amp;quot; Pin
toxcct23-Jan-07 1:04
toxcct23-Jan-07 1:04 
GeneralRe: Microsoft Outlook: &amp;amp;quot;A Program is trying to send email..&amp;amp;quot; Pin
Abris23-Jan-07 1:10
Abris23-Jan-07 1:10 

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.