We can call C++/ VC++ DLLs using the function $$CallDllFunction. Further $$CallDllFunction can be used to call any function which returns single value. For other DLLs and if the function returns an array of values, then it is advisable to use DLLCollection.
We suggest you to refer to the topic “Using External Plug-Ins as a Data Source for Collections” in TDL Reference Manual available in Tally.Developer9 Help.