Click here to Skip to main content
15,903,854 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
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 
The problem is CComVariant - that uses SysAllocString to copy the BSTR. The signature of SysAllocString is BSTR SysAllocString(const OLECHAR * sz); - it assumes that the input BSTR is null-terminated.

If you create your VARIANT manually, you shouldn't have a problem:

VARIANT v;
V_VT(v) = VT_BSTR;
V_BSTR(v) = pData;



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 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 
GeneralRe: Browser Helper Object Pin
Nicholas Cardi1-Apr-05 4:00
Nicholas Cardi1-Apr-05 4:00 
GeneralProblem while Persisting Image into Control Pin
ajalilqarshi30-Mar-05 3:58
ajalilqarshi30-Mar-05 3:58 

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.