Using a third party DLL

J

John Dann

I'd like to talk to a (serial port linked) external instrument from
within a .Net project. The makers supply a Win32 compatible DLL
(written in C and not an ActiveX DLL I think) that handles the low
level communication to and from the instrument. So by using the
available DLL, hopefully I can achieve what I need to. Trouble is that
I'm not familiar with working with third party DLLs from within .Net.
But I have documentation summarising the behaviour of the DLL so
fingers crossed it won't be too difficult.

I know that no-one here can advise me in detail on using this
particular DLL, but is it possible to offer any generic guidance on
how to get this going or maybe suggest any web links that might deal
with this topic in outline?

Many thanks if anyone can help.
John Dann
 
J

Jay B. Harlow [MVP - Outlook]

John,
In addition to Philip's links.

If you don't have it you may want to consider purchasing ".NET and COM - The
Complete Interoperability Guide" by Adam Nathan from MS Press. He has a
couple of sections on getting unmanaged Win32 APIs and C DLL calls to work
with .NET.

Hope this helps
Jay
 
Ó

ÓñÁúѩɽ

DLL is just a file extention, what is inside the file really matters.Can u
tell me if the DLL u mentioned is a COM Component ?

If that is a COM component, u can transform it into a .NET compatible class
using a command line tool.

VB.NET is good in all aspect, except on using old Com components, since on
..NET, COM is obsolete.

Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top