I need to send a two dimensional array from a vb asp to a dll. How?? The dll is one i'm going to write myself. The asp has an array GraphSeries(5,10) which stores dataset and value for a series of graph points. I need to pass this data to the dll, which then goes off and draws the graph as a jpg and sends it back to the client. I currently achieve this by using a nested loop in the asp, which means calling the dll 50 times (for each seperate point). I'd like to add a function to the dll that accepts the whole array, so I only need to call it once. I've read that if you pass the first element of the array by reference, the dll can access the rest of it as numeric arrays are stored sequentially in memory, but I can't get it to work. I either get a type-mismatch or a subscript out of bounds error.