kylabohon
14 years agoNew Contributor
Connect.Dll is null
I am using the following bit of C# code to try to define an array that I will then send to a method I am calling in a C# dll. But when the code executes Connect.Dll is null. I have verified the DLL Access plug-in is installed by looking at the File/Instal Extensions dialog and can see the plug-in is installed. Any ideas why Connect.Dll is null?
AutomatedQA.script.var arrayType = Connect.Dll["DefineType"]("tmpArrayType", (int)VarEnum.VT_UI1, "Value");
AutomatedQA.script.var byteArray = Connect.Dll["New"]("tmpArrayType", bufferSize);
for (int i = 0; i < bufferSize; i++)
{
byteArray["Item"](i)["Value"] = buffer;
}
AutomatedQA.script.var arrayType = Connect.Dll["DefineType"]("tmpArrayType", (int)VarEnum.VT_UI1, "Value");
AutomatedQA.script.var byteArray = Connect.Dll["New"]("tmpArrayType", bufferSize);
for (int i = 0; i < bufferSize; i++)
{
byteArray["Item"](i)["Value"] = buffer;
}