dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to send array defined as someType?

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    How to send array defined as someType?

    [Originally posted by Tomas]

    Hello,
    can someone tell me how to send from DLL project array defined as someType to Another project(i.e. EXE) and then send back to DLL project? This data I'd like to keep in secret from external use so beter do not use public TYPE ... if it is possible.
    Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:How to send array defined as someType

    [Originally posted by Greg DeBacker]

    You could try playing around with the CopyMemory API. It will copy a chunk of data from one memory address to another. I have used it to copy a sinlge type structure but never an array.

    When trying this be sure to try passing your arrays as both ByVal and ByRef to see which works. You could try searching microsoft.com, you may find an example.

    Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
    hpvDest As Any, _
    ByVal hpvSource As Any, _
    ByVal cbCopy As Long)


    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center