Beth,
You all might want to go have a look on my website at the SpyIn and DeQuote examples. They both have the C++ code that I used to modify a string passed from VFP to C++.
>I am using VFP6SP5 on a NT4.0 machine.
>
>I am calling a DLL created by another programmer in my company. The DLL function that I call modifies one of the strings that I pass to it by reference. As soon as it does the modification, I get the C0000005 error. I have padr() with " " to the lentgh needed and one beyond, trying to stop this error, but it does not work at the moment.
> I did a search both in FAQ and these threads back to the first of the year (maybe I should go back farther) and could not find anything like this. I found one thread close, but it had to do with an object, not a DLL call.
> Anyone have any idea?