General information
Category:
Coding, syntax & commands
>Do you see any array in my sample code? :)
>
>Basically, you cannot use arrays to pass them to DLL functions. When you need an array as param for a DLL function, it's supposed that the array is stored in a contigous memory area. Can you be sure that your VFP array is stored contigous in memory? No. And it's not. This is why it doesn't work in the way you want to do it and this is why you need to use a string instead of an array.
>
>More: your array contains integers. How can you be sure these integers are stored on 2 bytes each? You cannot and they are not. This is the second reason to use a string and not an array.
>
>I don't know VB, so I can't help you translate that code. Anyway, I don't believe it will work if you translate it "mechanically".
>
>Vlad
>
Thanks Vlad for clearing things for me!!!
So one question is it correct to pass the string by value or by reference??
Per
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only