Apologies for the duplicate post there was a timeout first time around and I didn't think it was posted! (Can't figure out how to delete it either!)
I'm need to do some VB.Net development on a pc that doesn't have PC-DMIS installed. My understanding is that I need to add a reference to PCDLRN.tlb but when I try that I get the following error:
---------------------------
Microsoft Visual Studio Express 2012 for Windows Desktop
---------------------------
A reference to 'C:\pcdlrn.tlb' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
I'm running VSE2012 on Windows 7 64bit. Any ideas what is going on here?
I can add reference to the same file in excel VBA on the pc with PC-DMIS installed without any issues.
Probably frowned upon. I would personally recommend using only early or late and not a mix to ease readability (if anyone else ever has to look at your code.) Late-binding is generally better for version independence; a good library programmer generally won't remove obsolete methods/properties from a library but will hide them. Late-bound code will continue to function, while early-bound will get compiler errors.
I use early-binding whenever possible because it's just so much easier
Probably frowned upon. I would personally recommend using only early or late and not a mix to ease readability (if anyone else ever has to look at your code.) Late-binding is generally better for version independence; a good library programmer generally won't remove obsolete methods/properties from a library but will hide them. Late-bound code will continue to function, while early-bound will get compiler errors.
I use early-binding whenever possible because it's just so much easier