public FreeFrame(String DLLDirectory, String DLLFile) { dllfile = DLLFile; dlldir = DLLDirectory; SetDllDirectory(DLLDirectory); dll = LoadLibrary(dllfile); plugMainAddr = GetProcAddress(dll, "plugMain"); initialise(); pif = getInfo(); peis = getExtendedInfo(); numParameters = getNumParameters(); parameterName = new String[numParameters]; parameterDefault = new float[numParameters]; parameterType = new uint[numParameters]; for (int i = 0; i < numParameters; i++) { parameterName[i] = getParameterName((uint)i); parameterDefault[i] = getParameterDefault((uint)i); parameterType[i] = getParameterType((uint)i); } }
public FreeFrame(String DLLDirectory, String DLLFile) { dllfile = DLLFile; dlldir = DLLDirectory; SetDllDirectory(DLLDirectory); dll = LoadLibrary(dllfile); plugMainAddr = GetProcAddress(dll, "plugMain"); initialise(); pif = getInfo(); peis = getExtendedInfo(); numParameters = getNumParameters(); parameterName = new String[numParameters]; parameterDefault = new float[numParameters]; parameterType = new uint[numParameters]; for (int i=0;i<numParameters;i++) { parameterName[i] = getParameterName((uint) i); parameterDefault[i] = getParameterDefault((uint) i); parameterType[i] = getParameterType((uint) i); } }