Using an unmanaged external DLL



I'm moving outside my fairly limited .Net experience here so this may
be a question with a simple, even obvious, answer but if someone would
be kind enough to indulge me...

I want to use a 3rd party DLL to get some data from a set of sensors -
the DLL is effectively an API to the sensor circuitry via a serial
port.

I've got a simple prototype program working so I know that I can
access and use the DLL OK (via ComInterop), but what I'm not clear
about is where the target DLL should be located and how to deploy it.

I'm presuming that this is an unmanaged DLL - if I browse to it from
within the project and try to 'Add Reference' I get an error saying
effectively that it's not recognised as a COM object, which puzzles me
a bit since it's obviously accessible OK to my sample program. But
anyhow, I'm guessing that all I do is to manually place the DLL in an
appropriate folder - perhaps /bin/debug (during development) and /bin/
release (for the final version)?

And then for deployment presumably I manually add the DLL to the
deployment package and allow it to be installed to the main
executables folder of the installed program?

Any comments/clarification much appreciated.

.



Relevant Pages

  • Re: Need GT Gina.dll For XP upgrade ASAP
    ... Error message "A recently installed program has disabled the Welcome screen and Fast ... User Switching" while turning on the Welcome Screen ... | that says "The Logon User Interface DLL GT Gina.dll failed to load. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Using an unmanaged external DLL
    ... I want to use a 3rd party DLL to get some data from a set of sensors - ... the DLL is effectively an API to the sensor circuitry via a serial ... deployment package and allow it to be installed to the main ... executables folder of the installed program? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Missing Assembly Microsoft.SqlServer.ConnectionInfo while using ClickOnce deployment
    ... the deployment package and all works fine now. ... Then delete any references your project has that point to the ... SQLServer.ConnectionInfo dll, and re-add them, but do it by browsing to ... Recheck "use deploy file extensions". ...
    (microsoft.public.dotnet.framework)
  • Deployment of a dll on a targer machine
    ... I created a dll and deployment package for VB by using comtool. ... Matlab help says that this is because the Matlab is not on the ... before it tries to register. ...
    (comp.soft-sys.matlab)
  • Re: Deployment of a dll on a targer machine
    ... I created a dll and deployment package for VB by using comtool. ... Matlab help says that this is because the Matlab is not on the ... before it tries to register. ...
    (comp.soft-sys.matlab)