error - Unhandled Exception: System.IO.FileNotFoundException: File not found: commslib.dll

  • Thread starter Thread starter cally_kalpana
  • Start date Start date
C

cally_kalpana

Guest
Hi,

I have a got a sensor that I need to write a program for. The sensor manufacturer has provided the Active X controls that I can use for my project.

I first added a reference to the ocx file in visual studio project and I managed to run some command to get the version number, however, I need to go beyond that, I need to write code to point to the data folder and so on.




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IMLtools;


namespace ConsoleApp12
{
class Program
{

static void Main(string[] args)
{


var x = "";
int check;

string IMSfilespec = "c:\\windmill\\Gtt.IMS";
var IMSname = "G&D.IMS";



IMLtoolsv6 newsd = new IMLtoolsv6();

newsd.IMLOpen();
newsd.IMSLoadFile(IMSfilespec, IMSname);
Console.WriteLine("Check this ");








}
}
}


This is the error

Unhandled Exception: System.IO.FileNotFoundException: File not found: commslib.dll
at IMLtools._IMLtoolsv6.getWindmillpath()
at ConsoleApp12.Program.Main(String[] args) in C:\Users\gdmal\source\repos\ConsoleApp12\ConsoleApp12\Program.cs:line 29

I tried specifying all the path and the filename as suggested by the document, yet I fail to get it right. The original manual is located here - https://www.windmill.co.uk/help/imltools.pdf

My dlls are located here - C:\Windmill.

Continue reading...
 
Back
Top