Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I tell if I'm running as a service? Pin
Ryan Binns11-Aug-04 18:42
Ryan Binns11-Aug-04 18:42 
GeneralMemory problem in CSharedFile. Pin
Aditya_Palanki11-Aug-04 4:47
Aditya_Palanki11-Aug-04 4:47 
GeneralRe: Memory problem in CSharedFile. Pin
Johan Rosengren11-Aug-04 6:25
Johan Rosengren11-Aug-04 6:25 
GeneralRe: Memory problem in CSharedFile. Pin
Aditya_Palanki13-Aug-04 0:26
Aditya_Palanki13-Aug-04 0:26 
GeneralRe: Memory problem in CSharedFile. Pin
Johan Rosengren13-Aug-04 0:34
Johan Rosengren13-Aug-04 0:34 
GeneralESC And Enter key's Pin
Larsson11-Aug-04 4:31
Larsson11-Aug-04 4:31 
GeneralRe: ESC And Enter key's Pin
Antony M Kancidrowski11-Aug-04 4:48
Antony M Kancidrowski11-Aug-04 4:48 
GeneralRe: ESC And Enter key's Pin
Larsson11-Aug-04 4:55
Larsson11-Aug-04 4:55 
GeneralPassing Array of Strings as BSTR* Pin
arun140511-Aug-04 3:55
arun140511-Aug-04 3:55 
GeneralRe: Passing Array of Strings as BSTR* Pin
Antony M Kancidrowski11-Aug-04 4:34
Antony M Kancidrowski11-Aug-04 4:34 
GeneralRe: Passing Array of Strings as BSTR* Pin
eight22-Feb-10 15:59
eight22-Feb-10 15:59 
GeneralSyntax Error NOT! Pin
jerry0davis11-Aug-04 3:47
jerry0davis11-Aug-04 3:47 
GeneralRe: Syntax Error NOT! Pin
David Crow11-Aug-04 3:52
David Crow11-Aug-04 3:52 
GeneralRe: Syntax Error NOT! Pin
jerry0davis11-Aug-04 4:00
jerry0davis11-Aug-04 4:00 
GeneralRe: Syntax Error NOT! Pin
David Crow11-Aug-04 4:13
David Crow11-Aug-04 4:13 
GeneralRe: Syntax Error NOT! Pin
Tim Smith11-Aug-04 17:45
Tim Smith11-Aug-04 17:45 
GeneralRe: Syntax Error NOT! Pin
David Crow12-Aug-04 2:38
David Crow12-Aug-04 2:38 
Tim Smith wrote:
The standard specifically says that the strings will be concatenated.

They're not concatenated as there is nothing to concatenate. Concatenation implies two or more strings, whereas the snippet I showed only has one string. The fact that it breaks two lines, or has multiple sets of quotes, is irrelevant.

Tim Smith wrote:
If what you said was true, the strings would have a '\0' between them.

I don't know where you pulled this from. Confused | :confused:

Tim Smith wrote:
Also, there is nothing that says that strings are placed in the EXE in the same order they are found in the source files.

Uh, actually there is. While the preprocessor sees two separately quoted strings, once the extra quotes (and backslash) are removed, the compiler sees only one. Therefore, they are in memory in exactly the same way had they been written as one continuous string.


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: Syntax Error NOT! Pin
Tim Smith12-Aug-04 3:55
Tim Smith12-Aug-04 3:55 
GeneralRe: Syntax Error NOT! Pin
David Crow12-Aug-04 4:51
David Crow12-Aug-04 4:51 
GeneralRe: Syntax Error NOT! Pin
Tim Smith11-Aug-04 3:54
Tim Smith11-Aug-04 3:54 
GeneralProcess Injection Pin
Reza Shademani11-Aug-04 3:46
Reza Shademani11-Aug-04 3:46 
GeneralRe: Process Injection Pin
David Crow11-Aug-04 3:57
David Crow11-Aug-04 3:57 
GeneralSuggestions needed - CListCtrl problem Pin
BlackDice11-Aug-04 2:52
BlackDice11-Aug-04 2:52 
GeneralRe: Suggestions needed - CListCtrl problem Pin
V.11-Aug-04 3:08
professionalV.11-Aug-04 3:08 
GeneralRe: Suggestions needed - CListCtrl problem Pin
BlackDice11-Aug-04 3:16
BlackDice11-Aug-04 3:16 

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.