>I'm trying to call an outside application (in this case, Minitab) from within FoxPro..I seem to be having a problem with the following RegEnumValue function:
>
>retval = RegEnumValue(hKey, xindex, valuename, valuelen, lpdwReserved, dataType, @indata, @datalen)
>
>With xindex, lpdwReserved and datatype equaling zero, and indata equal to a string of 255 blanks, I continually return a value of "1010" or "87" (retval = 1010 [87]), as opposed to "0" value returned for a sucessful completion. I have tried a number of different things, yet continue to have this problem
>
>Not being overly familiar with Registry calls and API's, any help would be appreciated.
>
>TW
Joe,
First, the values of all except the first two parameters must be passed by reference. Second, 87 means "the parameter is incorrect". Third, 1010 means "the configuration registry key is invalid".
George
Ubi caritas et amor, deus ibi est