02-22-2023 09:54 PM
Can LabWindows™/CVI generate COM dll?
02-26-2023 04:05 PM - edited 02-26-2023 04:07 PM
In theory yes. A (D)COM DLL is simply a DLL that exposes a ClassFactory entry point and a Register and Unregister entry point. And the COM interface has a strict ABI that can be implemented even in Standard C.
But a COM implementation is significantly easier to do in C++ than C. And while doing all from hand is possible, it’s tedious, time consuming and error prone to do so. You would want to have an environment that has tools and maybe even wizards that help you with setting up the framework for your DLL. LabWindows/CVI never had that and most would have never used it even if it had existed, as LabWindows/CVI always was ANSI C only.
In addition is COM/ActiveX really legacy technology nowadays. Microsoft rather would like COM/ActiveX to be dead yesterday than today and they removed any support for it from all recent Visual Studio versions.