Click here to Skip to main content
15,906,625 members
Home / Discussions / COM
   

COM

 
GeneralRe: Multiple COM Objects Pin
User 21559716-Jan-07 4:27
User 21559716-Jan-07 4:27 
QuestionCreating Windows mail(outlook expr) account on Vista Pin
Sonani Prakash15-Jan-07 22:54
Sonani Prakash15-Jan-07 22:54 
AnswerRe: Creating Windows mail(outlook expr) account on Vista Pin
User 21559715-Jan-07 23:52
User 21559715-Jan-07 23:52 
GeneralRe: Creating Windows mail(outlook expr) account on Vista Pin
Sonani Prakash16-Jan-07 0:10
Sonani Prakash16-Jan-07 0:10 
GeneralRe: Creating Windows mail(outlook expr) account on Vista Pin
User 21559716-Jan-07 1:52
User 21559716-Jan-07 1:52 
GeneralRe: Creating Windows mail(outlook expr) account on Vista Pin
Sonani Prakash16-Jan-07 2:12
Sonani Prakash16-Jan-07 2:12 
GeneralRe: Creating Windows mail(outlook expr) account on Vista Pin
User 21559716-Jan-07 2:42
User 21559716-Jan-07 2:42 
QuestionVB.NET, SafeArray... Pin
Jeffrey Walton15-Jan-07 4:57
Jeffrey Walton15-Jan-07 4:57 
Hi All,

The following is giving me fits in VB.NET. Any ideas how to make it work?

'VB.NET

Dim rng as PseudoRNG
rng = new PseudoRNG()

dim a(10) as Long

rng.GenerateBlock( a )
...

What I've tried (and how it does not work is listed below). Following that are KB article references... KB314708 does not resolve (even though it is supposed to). It is also broken on VS2005/.NET 2.0.

Does anyone know how to pass an array? Obvioulsy, I do not.

Jeff

// System.Runtime.InteropServices.SafeArrayTypeMismatchException
HRESULT GenerateBlock([in, out] SAFEARRAY(VARIANT) * Block);<BR>

// System.Runtime.InteropServices.SafeArrayTypeMismatchException
HRESULT GenerateBlock([in, out] SAFEARRAY(VARIANT*) * Block);<BR>

// Compile Problem
HRESULT GenerateBlock([in, out] SAFEARRAY(VT_DISPATCH) * Block);<BR>

// System.Runtime.InteropServices.SafeArrayTypeMismatchException
// Warning: SAFEARRAY(interface pointer) doesn't work using midl generated proxy
HRESULT GenerateBlock([in, out] SAFEARRAY(IDispatch) * Block);<BR>

// System.Runtime.InteropServices.SafeArrayTypeMismatchException
// Warning: SAFEARRAY(interface pointer) doesn't work using midl generated proxy
HRESULT GenerateBlock([in, out] SAFEARRAY(IDispatch*) * Block);<BR>

// System.Runtime.InteropServices.SafeArrayTypeMismatchException
HRESULT GenerateBlock([in, out] SAFEARRAY(long) * Block);

SafeArrayTypeMismatchException Error Message When You Invoke a COM Method[^]

Using OLE Automation Marshaler for 16/16 & 16/32 COM Interface[^] (should not even apply)
AnswerRe: VB.NET, SafeArray... Pin
prasad_som15-Jan-07 17:21
prasad_som15-Jan-07 17:21 
Questionapplication Crashing while AddRef() Pin
helpcode15-Jan-07 4:12
helpcode15-Jan-07 4:12 
GeneralRe: application Crashing while AddRef() Pin
prasad_som15-Jan-07 17:16
prasad_som15-Jan-07 17:16 
AnswerRe: application Crashing while AddRef() Pin
Tim Paaschen15-Jan-07 19:35
Tim Paaschen15-Jan-07 19:35 
QuestionReturning a SafeArray (IDL/Automation) Pin
zaccheus12-Jan-07 23:45
zaccheus12-Jan-07 23:45 
AnswerRe: Returning a SafeArray (IDL/Automation) Pin
Phil Harding15-Jan-07 3:34
Phil Harding15-Jan-07 3:34 
QuestionHow to display a Web Content in an Explorer Bar Pin
georgekjolly11-Jan-07 19:25
georgekjolly11-Jan-07 19:25 
AnswerRe: How to display a Web Content in an Explorer Bar Pin
User 21559712-Jan-07 1:03
User 21559712-Jan-07 1:03 
QuestionRegistry Entry for an Explorer Bar Pin
georgekjolly11-Jan-07 3:45
georgekjolly11-Jan-07 3:45 
AnswerRe: Registry Entry for an Explorer Bar Pin
User 21559711-Jan-07 12:52
User 21559711-Jan-07 12:52 
QuestionI am converting a ActiveX(DSO Framer)control into .Net assembly Pin
indian14311-Jan-07 1:06
indian14311-Jan-07 1:06 
AnswerRe: I am converting a ActiveX(DSO Framer)control into .Net assembly Pin
Pete O'Hanlon11-Jan-07 3:10
mvePete O'Hanlon11-Jan-07 3:10 
GeneralRe: I am converting a ActiveX(DSO Framer)control into .Net assembly Pin
indian14311-Jan-07 4:24
indian14311-Jan-07 4:24 
QuestionNo Subject Pin
indian14311-Jan-07 0:57
indian14311-Jan-07 0:57 
AnswerRe: I tried to edit the .il file it is giving the following error Pin
Pete O'Hanlon11-Jan-07 0:13
mvePete O'Hanlon11-Jan-07 0:13 
Questionregistration and gac intallation Pin
indian14310-Jan-07 23:22
indian14310-Jan-07 23:22 
AnswerRe: registration and gac intallation Pin
Pete O'Hanlon11-Jan-07 0:13
mvePete O'Hanlon11-Jan-07 0:13 

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.