Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What function is equavalent to CString::AllocSysString() ? Pin
Le centriste6-Jun-02 6:48
Le centriste6-Jun-02 6:48 
GeneralMail Program Pin
Atlence6-Jun-02 6:20
Atlence6-Jun-02 6:20 
GeneralRe: Mail Program Pin
Ed Gadziemski6-Jun-02 14:35
professionalEd Gadziemski6-Jun-02 14:35 
GeneralWord Application Pin
6-Jun-02 6:23
suss6-Jun-02 6:23 
GeneralRe: Word Application Pin
moredip6-Jun-02 7:27
moredip6-Jun-02 7:27 
GeneralA2W Pin
6-Jun-02 6:11
suss6-Jun-02 6:11 
GeneralRe: A2W Pin
6-Jun-02 6:16
suss6-Jun-02 6:16 
GeneralRe: A2W Pin
Le centriste6-Jun-02 6:51
Le centriste6-Jun-02 6:51 
A2W allocates memory on the stack, so it may be a problem if you convert very large strings.

SysAllocString allocates memory for BSTR string, not w strings, although the code sees them as equivalent. The difference is that a BSTR has 4 bytes preceding the address of the string that tells the length (in bytes) of the string.

Michel

It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.

- TreeBeard
GeneralRe: A2W Pin
Anders Molin6-Jun-02 8:55
professionalAnders Molin6-Jun-02 8:55 
GeneralCreate an exe script in C++ Pin
youssef6-Jun-02 5:56
youssef6-Jun-02 5:56 
GeneralRe: Create an exe script in C++ Pin
Rage6-Jun-02 6:00
professionalRage6-Jun-02 6:00 
GeneralRe: Create an exe script in C++ Pin
youssef6-Jun-02 6:11
youssef6-Jun-02 6:11 
GeneralRe: Create an exe script in C++ Pin
Rage6-Jun-02 6:15
professionalRage6-Jun-02 6:15 
QuestionHow do i use a CString in a non-MFC app? Pin
redeemer6-Jun-02 5:51
redeemer6-Jun-02 5:51 
AnswerRe: How do i use a CString in a non-MFC app? Pin
Rage6-Jun-02 5:51
professionalRage6-Jun-02 5:51 
GeneralI think the file to include got lost due to HTML formatting... Pin
redeemer6-Jun-02 6:13
redeemer6-Jun-02 6:13 
AnswerRe: How do i use a CString in a non-MFC app? Pin
John M. Drescher6-Jun-02 6:08
John M. Drescher6-Jun-02 6:08 
AnswerRe: How do i use a CString in a non-MFC app? Pin
Ramon Casellas6-Jun-02 6:20
Ramon Casellas6-Jun-02 6:20 
GeneralRe: How do i use a CString in a non-MFC app? Pin
Rage6-Jun-02 6:21
professionalRage6-Jun-02 6:21 
GeneralRe: How do i use a CString in a non-MFC app? Pin
6-Jun-02 7:17
suss6-Jun-02 7:17 
Generalupdate controls based on other inputs Pin
jimNLX6-Jun-02 5:33
jimNLX6-Jun-02 5:33 
GeneralRe: update controls based on other inputs Pin
Rage6-Jun-02 6:16
professionalRage6-Jun-02 6:16 
GeneralRe: update controls based on other inputs Pin
jimNLX6-Jun-02 7:54
jimNLX6-Jun-02 7:54 
GeneralRe: update controls based on other inputs Pin
Rage6-Jun-02 8:21
professionalRage6-Jun-02 8:21 
QuestionHow do i use IShellFolder::ParseDisplayName correctly? Pin
redeemer6-Jun-02 5:25
redeemer6-Jun-02 5:25 

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.