Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralA2WBSTR Pin
George_George3-Apr-08 4:40
George_George3-Apr-08 4:40 
GeneralRe: A2WBSTR Pin
James R. Twine3-Apr-08 4:54
James R. Twine3-Apr-08 4:54 
GeneralRe: A2WBSTR Pin
George_George3-Apr-08 21:29
George_George3-Apr-08 21:29 
GeneralRe: A2WBSTR Pin
CPallini3-Apr-08 5:47
mveCPallini3-Apr-08 5:47 
GeneralRe: A2WBSTR Pin
George_George3-Apr-08 21:27
George_George3-Apr-08 21:27 
GeneralRe: A2WBSTR Pin
CPallini3-Apr-08 22:38
mveCPallini3-Apr-08 22:38 
GeneralRe: A2WBSTR Pin
George_George3-Apr-08 23:04
George_George3-Apr-08 23:04 
GeneralRe: A2WBSTR Pin
CPallini3-Apr-08 23:15
mveCPallini3-Apr-08 23:15 
You analysis is wrong.
A2BSTR do no more and no less then calling A2WBSTR, i.e. their effect is identical (there is even no difference in involved stack levels, since A2BSTR it is declared inline).

BTW all BSTR must have a length field (this is the reason why you typically call SysAllocString to alloc a BSTR rather than doing it directly).
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: A2WBSTR Pin
George_George3-Apr-08 23:18
George_George3-Apr-08 23:18 
GeneralRe: A2WBSTR Pin
CPallini3-Apr-08 23:29
mveCPallini3-Apr-08 23:29 
GeneralRe: A2WBSTR Pin
George_George3-Apr-08 23:32
George_George3-Apr-08 23:32 
Generalesoteric use of the "new" keyword Pin
Dave Calkins3-Apr-08 4:12
Dave Calkins3-Apr-08 4:12 
GeneralRe: esoteric use of the "new" keyword Pin
James R. Twine3-Apr-08 4:51
James R. Twine3-Apr-08 4:51 
QuestionRe: esoteric use of the "new" keyword Pin
David Crow3-Apr-08 4:56
David Crow3-Apr-08 4:56 
GeneralRe: esoteric use of the "new" keyword Pin
James R. Twine3-Apr-08 5:05
James R. Twine3-Apr-08 5:05 
GeneralRe: esoteric use of the "new" keyword Pin
Cedric Moonen3-Apr-08 5:10
Cedric Moonen3-Apr-08 5:10 
GeneralRe: esoteric use of the "new" keyword Pin
James R. Twine3-Apr-08 5:41
James R. Twine3-Apr-08 5:41 
GeneralRe: esoteric use of the "new" keyword Pin
Mark Salsbery3-Apr-08 6:10
Mark Salsbery3-Apr-08 6:10 
GeneralRe: esoteric use of the "new" keyword Pin
Dave Calkins3-Apr-08 11:18
Dave Calkins3-Apr-08 11:18 
GeneralRegCreateKeyEx failed in Vista Pin
dharani3-Apr-08 2:52
dharani3-Apr-08 2:52 
QuestionRe: RegCreateKeyEx failed in Vista Pin
Rajesh R Subramanian3-Apr-08 3:02
professionalRajesh R Subramanian3-Apr-08 3:02 
GeneralRe: RegCreateKeyEx failed in Vista Pin
Cedric Moonen3-Apr-08 3:14
Cedric Moonen3-Apr-08 3:14 
GeneralRe: RegCreateKeyEx failed in Vista Pin
David Crow3-Apr-08 3:18
David Crow3-Apr-08 3:18 
RantRe: RegCreateKeyEx failed in Vista Pin
James R. Twine3-Apr-08 5:43
James R. Twine3-Apr-08 5:43 
GeneralRe: RegCreateKeyEx failed in Vista Pin
Hamid_RT7-Apr-08 4:26
Hamid_RT7-Apr-08 4:26 

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.