I am trying to use Fanuc's WinOLPC Utilities library in a c# application to convert a Karel program to P-Code.
The commands available in the FRCKtransClass are:
get_SupportedArguments(short Arguments)
KTRANS(int Window, string KLFile, bool listSW, bool DispSW, bool RoutStack, bool AllEnv)
PresentEnv(string Version, string Bin, string Support)
Code
ktrans.PresetEnv("V640-1", "C:\Karel Creator\Karel Creator\bin\Debug\Versions\V640-1\bin", "C:\Karel Creator\Karel Creator\bin\Debug\Versions\V640-1\support");
try
{
ktrans.KTRANS(1, "C:\Karel Creator\Karel Creator\bin\Debug\f.kl", false, false, false, false);
}
catch (Exception e)
{
MessageBox.Show("Unable to find Version Libraries" + e.ToString());
}
Code results in an error:
QuoteSystem.Runtime.InteropServices.COMException (0x00000002): Unable to load version library
Right now the version files are in the debug directory. Do I need to reference these somewhere else somehow?