Re: Interop, Late Binding and Array of longs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Sam a écrit :

Yes you are rigth, but i have also tested Int32 (signed and unsigned)
C# type with no more success (i have the same exception)
How would you pass by reference an array (by ref) between C# and VB6
thru COM ?
thanx in advance
Sam

Maybe I should post this thread in Interop newsgroup....

.



Relevant Pages

  • Re: How can I pass a multidimensional array as a ref parameter in func
    ... static int ReadFile(ref ushortnArray, ... > Array variable is the pointer to the address. ... > No 'ref' is needed. ... Ref is needed if your variable is not a reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Autovivification by foreach
    ... FS> Can't use an undefined value as an ARRAY reference ... there is no exception anymore. ... undef and used where a ref should be. ... it seems to me that autovivification in this context is useful. ...
    (comp.lang.perl.misc)
  • Re: textbook authors: passing by ref is NOT more efficient!
    ... efficiency in terms of performance and we are talking reference objects. ... classic example (using int values, ... Console.WriteLine("Value after by ref routine ", ... reference to the array object even if you don't say "ref", ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: textbook authors: passing by ref is NOT more efficient!
    ... Ask them how long it takes to write a screen compared to the time difference in using 'ref' or not. ... reference to the array object even if you don't say "ref", ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: segfault w/ block, but not file scope
    ... While C's arrays *are* exceptional, this is not where the exception occurs. ... The gimmick is that the "value" of an array is a pointer to the array's ... memory value, even *if* you pass it by reference, "& buf". ...
    (comp.lang.c)