Results 1 to 5 of 5

Thread: delphi dll stream / bytes

  1. #1
    Reader
    Join Date
    May 2002
    Location
    Holland
    Posts
    3,382

    delphi dll stream / bytes

    Wat is de beste manier om een array of byte terug te geven (of een stream of zo) vanuit een DLL?
    En dan zo, dat het snel en makkelijk uit te lezen is met een ander programma die deze DLL aanroept (bijv C#)

  2. #2
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    Pointer en size.

  3. #3
    Reader
    Join Date
    May 2002
    Location
    Holland
    Posts
    3,382
    kan C# met rauwe pointers (naar een zooi bytes) werken?
    Vast wel, alleen unmanaged warnings vermoed ik

  4. #4
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    Interop wel.

  5. #5
    Stijn Sanders develyoy's Avatar
    Join Date
    Jun 2008
    Location
    GentBrugge, Belgi?½
    Posts
    1,046
    bwa, als je COM interop gebruikt (en COM interfaces?) kan je nog altijd VarArrayCreate([0,x],varByte) doen en als variant doorgeven, dan is het in C# ook echt een byte-array

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •