Click here to Skip to main content
15,888,521 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Jonathan Davies21-Apr-10 0:26
Jonathan Davies21-Apr-10 0:26 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
«_Superman_»21-Apr-10 6:21
professional«_Superman_»21-Apr-10 6:21 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt21-Apr-10 13:45
Stephen Hewitt21-Apr-10 13:45 
QuestionIConnectionPoint Advise Return with error code 0x80040202 Pin
ANURAG VISHNOI20-Apr-10 20:20
ANURAG VISHNOI20-Apr-10 20:20 
AnswerRe: IConnectionPoint Advise Return with error code 0x80040202 Pin
Jonathan Davies21-Apr-10 0:23
Jonathan Davies21-Apr-10 0:23 
GeneralRe: IConnectionPoint Advise Return with error code 0x80040202 Pin
ANURAG VISHNOI21-Apr-10 0:27
ANURAG VISHNOI21-Apr-10 0:27 
QuestionFire Event BSTR with NULL character Pin
chetanjoshi99-Apr-10 0:17
chetanjoshi99-Apr-10 0:17 
AnswerRe: Fire Event BSTR with NULL character Pin
Stuart Dootson9-Apr-10 1:09
professionalStuart Dootson9-Apr-10 1:09 
Note: Without seeing any of your code, I'm just guessing...

It's probably because when you create the BSTR, you let it count characters to determine its length, rather than telling it what the length actually is. Any string length function in C/C++ will see a NULL as the end of string.

So, create your BSTR like this, telling it what its length is:

BST b = SysAllocStringLen(L"ABC\0XYZ", 7);

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

CodeProject MVP for 2010 - who'd'a thunk it!

GeneralRe: Fire Event BSTR with NULL character Pin
chetanjoshi99-Apr-10 3:13
chetanjoshi99-Apr-10 3:13 
GeneralRe: Fire Event BSTR with NULL character Pin
Stephen Hewitt13-Apr-10 14:08
Stephen Hewitt13-Apr-10 14:08 
AnswerRe: Fire Event BSTR with NULL character Pin
Jonathan Davies9-Apr-10 4:58
Jonathan Davies9-Apr-10 4:58 
AnswerRe: Fire Event BSTR with NULL character Pin
Richard MacCutchan18-Apr-10 21:30
mveRichard MacCutchan18-Apr-10 21:30 
QuestionCOM and DOM Pin
002comp6-Apr-10 20:56
002comp6-Apr-10 20:56 
AnswerRe: COM and DOM Pin
KarstenK6-Apr-10 21:22
mveKarstenK6-Apr-10 21:22 
QuestionOutlook Plugin problem Pin
dinesh babu5-Apr-10 22:41
dinesh babu5-Apr-10 22:41 
AnswerRe: Outlook Plugin problem Pin
Cool_Dev5-Apr-10 23:41
Cool_Dev5-Apr-10 23:41 
GeneralRe: Outlook Plugin problem Pin
dinesh babu5-Apr-10 23:58
dinesh babu5-Apr-10 23:58 
GeneralRe: Outlook Plugin problem Pin
Cool_Dev6-Apr-10 19:36
Cool_Dev6-Apr-10 19:36 
GeneralRe: Outlook Plugin problem Pin
dinesh babu6-Apr-10 21:17
dinesh babu6-Apr-10 21:17 
QuestionFFDShow in my project... Pin
R@jeev K R4-Apr-10 23:25
R@jeev K R4-Apr-10 23:25 
QuestionRe: FFDShow in my project... Pin
Cool_Dev5-Apr-10 19:13
Cool_Dev5-Apr-10 19:13 
AnswerRe: FFDShow in my project... Pin
R@jeev K R5-Apr-10 19:55
R@jeev K R5-Apr-10 19:55 
QuestionWhy this Method save the same bitmap every times called? Pin
bicphuong2-Apr-10 20:48
bicphuong2-Apr-10 20:48 
AnswerRe: Why this Method save the same bitmap every times called? Pin
Baltoro14-Apr-10 14:08
Baltoro14-Apr-10 14:08 
QuestionUnable to register simpleui5.ocx in system32 Pin
Hunzian31-Mar-10 23:55
Hunzian31-Mar-10 23:55 

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.