Click here to Skip to main content
15,905,148 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralCCommandBarCtrl menu appears as a toolbar button Pin
Paper#6-Apr-05 13:16
Paper#6-Apr-05 13:16 
GeneralProblem using ATL Object in other ATL Server Pin
andreasf5-Apr-05 20:22
andreasf5-Apr-05 20:22 
GeneralImmediate repainting of a listctrl Pin
Franz Klein5-Apr-05 0:17
Franz Klein5-Apr-05 0:17 
GeneralRe: Immediate repainting of a listctrl Pin
Michael Dunn5-Apr-05 7:14
sitebuilderMichael Dunn5-Apr-05 7:14 
QuestionCan a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn4-Apr-05 16:36
samfromcn4-Apr-05 16:36 
AnswerRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Michael Dunn4-Apr-05 20:12
sitebuilderMichael Dunn4-Apr-05 20:12 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn4-Apr-05 21:39
samfromcn4-Apr-05 21:39 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Stuart Dootson4-Apr-05 21:52
professionalStuart Dootson4-Apr-05 21:52 
Don't treat the BSTR as a null-terminated string!

Use SysAllocStringByteLen to allocate the space.

Cast the BSTR to BYTE* and use SysStringByteLen to get the byte count.

Free the string as normal with SysFreeString.


MSDN does say that a SAFEARRAY with element type VT_UI1 is preferred, in order that you don't get translations on 16/32-bit borders...but a) who uses 16-bit OLE now?, and b) BSTR is a lot easier in C++ Big Grin | :-D

Stuart Dootson

'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn4-Apr-05 22:27
samfromcn4-Apr-05 22:27 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Stuart Dootson4-Apr-05 23:05
professionalStuart Dootson4-Apr-05 23:05 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn4-Apr-05 23:28
samfromcn4-Apr-05 23:28 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Stuart Dootson4-Apr-05 23:43
professionalStuart Dootson4-Apr-05 23:43 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn5-Apr-05 16:14
samfromcn5-Apr-05 16:14 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Stuart Dootson5-Apr-05 22:17
professionalStuart Dootson5-Apr-05 22:17 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
samfromcn6-Apr-05 15:57
samfromcn6-Apr-05 15:57 
GeneralRe: Can a ConnectionPoint Object have function like "HRESULT Test([in, out] Byte* pData)" Pin
Stuart Dootson6-Apr-05 21:02
professionalStuart Dootson6-Apr-05 21:02 
GeneralSerializing objects using XLM Pin
Ernesto D.4-Apr-05 15:01
Ernesto D.4-Apr-05 15:01 
GeneralRe: Serializing objects using XLM Pin
Christian Graus4-Apr-05 15:53
protectorChristian Graus4-Apr-05 15:53 
GeneralRe: Serializing objects using XLM Pin
Michael Dunn4-Apr-05 20:15
sitebuilderMichael Dunn4-Apr-05 20:15 
GeneralRe: Serializing objects using XLM Pin
Ernesto D.4-Apr-05 20:20
Ernesto D.4-Apr-05 20:20 
GeneralRe: Serializing objects using XLM Pin
Andrew Walker4-Apr-05 21:13
Andrew Walker4-Apr-05 21:13 
GeneralRe: Serializing objects using XLM Pin
Ernesto D.5-Apr-05 2:34
Ernesto D.5-Apr-05 2:34 
GeneralSmart Tag for Rich Edit of Outlook email viewer Pin
Rajeev K Srivastava3-Apr-05 9:35
Rajeev K Srivastava3-Apr-05 9:35 
GeneralCan't get data from my vector. Help!!! Pin
Larry Mills Sr2-Apr-05 9:42
Larry Mills Sr2-Apr-05 9:42 
GeneralBrowser Helper Object Pin
nmhuy30-Mar-05 21:42
nmhuy30-Mar-05 21:42 

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.