Depending on how the DLL in question exports the "single class", it is easy or hard to use it from Perl. If the DLL exports the "single class" as an OLE object it is very easy. To see if the DLL exports via OLE, see if you can use the class from Excel and Visual Basic. If the DLL exports the "single class" via COM or via a C pointer only, then you will have to write an XS wrapper, maybe using Inline::C, which can be hard or very hard.
If the DLL changes but the API doesn't, you don't have to worry. If the DLL changes and the API changes, you will have to recompile your XS wrapper too.
| [reply] |
Yes, it may be possible to use dll's in perl scripts. You'll
need Inline::C. With regard to your last two questions, it's
impossible to say - could be very hard or impossible... or
quite easy... Either way, this may be of interest to you:
How do I access Win32 DLL-s using Inline? | [reply] |