Click here to Skip to main content
15,939,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printing your source code Pin
BlackDice2-Mar-04 6:58
BlackDice2-Mar-04 6:58 
GeneralRe: printing your source code Pin
John M. Drescher2-Mar-04 8:08
John M. Drescher2-Mar-04 8:08 
GeneralRe: printing your source code Pin
John M. Drescher2-Mar-04 8:20
John M. Drescher2-Mar-04 8:20 
GeneralPassing Data between threads Pin
Tom Wright2-Mar-04 4:19
Tom Wright2-Mar-04 4:19 
GeneralRe: Passing Data between threads Pin
Prakash Nadar2-Mar-04 4:25
Prakash Nadar2-Mar-04 4:25 
GeneralRe: Passing Data between threads Pin
Tom Wright2-Mar-04 4:33
Tom Wright2-Mar-04 4:33 
GeneralRe: Passing Data between threads Pin
RobJones2-Mar-04 4:40
RobJones2-Mar-04 4:40 
GeneralRe: Passing Data between threads Pin
jhwurmbach2-Mar-04 4:43
jhwurmbach2-Mar-04 4:43 
Tom Wright wrote:
PS I know this is a totally different subject but if I created a variable like CString holdBuf is this a char pointer or is char holdbuf[] a char pointer. I'm not sure how I would say that I want to pass a pointer to CString holdBuf.

CString has a operator(LPCTSTR) that is able to transparently cast the CString into a Long-Pointer-to-Constant-T_STRing, which is what LPCTSTR means. In non-unicode environments this is indeed a const char*.

When you need a non-const char*, you have to use CStrings GetBuffer()-function (and don't forget to call ReleaseBuffer() after use!), which gives you a char*.


"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralString pointer questions Pin
Tom Wright2-Mar-04 4:51
Tom Wright2-Mar-04 4:51 
GeneralRe: String pointer questions Pin
jhwurmbach2-Mar-04 4:58
jhwurmbach2-Mar-04 4:58 
QuestionWhy cannot add new database record? Pin
siew hoon2-Mar-04 3:17
siew hoon2-Mar-04 3:17 
GeneralProblems with MFC Extensions DLLs Pin
SashaTis2-Mar-04 3:12
SashaTis2-Mar-04 3:12 
GeneralRe: Problems with MFC Extensions DLLs Pin
John M. Drescher2-Mar-04 3:39
John M. Drescher2-Mar-04 3:39 
GeneralRe: Problems with MFC Extensions DLLs Pin
SashaTis2-Mar-04 5:03
SashaTis2-Mar-04 5:03 
GeneralRe: Problems with MFC Extensions DLLs Pin
John M. Drescher2-Mar-04 6:02
John M. Drescher2-Mar-04 6:02 
GeneralRe: Problems with MFC Extensions DLLs Pin
SashaTis3-Mar-04 4:51
SashaTis3-Mar-04 4:51 
GeneralRe: Problems with MFC Extensions DLLs Pin
John M. Drescher3-Mar-04 5:43
John M. Drescher3-Mar-04 5:43 
QuestionHow to move CDailog child window under other it's child window? Pin
vgrigor2-Mar-04 2:44
vgrigor2-Mar-04 2:44 
AnswerRe: How to move CDailog child window under other it's child window? Pin
Prakash Nadar2-Mar-04 3:59
Prakash Nadar2-Mar-04 3:59 
GeneralRe: How to move CDailog child window under other it's child window? Pin
vgrigor2-Mar-04 4:21
vgrigor2-Mar-04 4:21 
AnswerRe: How to move CDailog child window under other it's child window? Pin
Prakash Nadar2-Mar-04 5:54
Prakash Nadar2-Mar-04 5:54 
GeneralRe: How to move CDailog child window under other it's child window? Pin
vgrigor2-Mar-04 20:32
vgrigor2-Mar-04 20:32 
GeneralUnload Shell Extension Pin
afj6662-Mar-04 2:14
afj6662-Mar-04 2:14 
GeneralRe: Unload Shell Extension Pin
Prakash Nadar2-Mar-04 2:29
Prakash Nadar2-Mar-04 2:29 
GeneralRe: Unload Shell Extension Pin
Rickard Andersson202-Mar-04 3:28
Rickard Andersson202-Mar-04 3:28 

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.