LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DDE.lib - External subroutine not found

Hello,

 

I have inherited LabVIEW code which worked on another computer but is throwing errors on this new setup.  I am unsure what version of LabVIEW was on the working computer (possibly 2018 professional) but it was windows 10.

 

The machine I am using is Windows 10, LabVIEW 2021 community.  I will have professional by next week - but I don't think this is the issue.

 

I have copied over the DDE.lib folder to the Addons folder as recommended here:

Archived: Dynamic Data Exchange (DDE) Functions Palette in LabVIEW - NI

 

However, this did not solve my problem.  The image below shows the hierarchy and the relevant DDE vi's.  Are they in the correct location?

Let me know if there is anymore information you need, I am still familiarizing myself with LabVIEW but will be going through core 1 next week.

 

RichardP_0-1655374098053.png

 

Errors thrown (they are all DDE related):

RichardP_0-1655377329277.png

 

 

Regards

Richard

 

0 Kudos
Message 1 of 7
(1,945 Views)

What's the problem precisely? Is the code broken or does it throws errors at runtime? What errors?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 7
(1,936 Views)

Hi Paolo I have updated the OP to show the errors

0 Kudos
Message 3 of 7
(1,882 Views)

Hi Paolo, I have updated the description.  I will also add that I am using 64bit version of LV

0 Kudos
Message 4 of 7
(1,919 Views)

The DDE.llb library makes internally use of a CIN. This CIN has never been recompiled for 64-bit. This means that all DDE functions are broken on 64-bit platforms (and of course on any non-Windows platform too).

 

Since DDE functions were depreciated in LabVIEW loooong before there was ever a 64-bit version of LabVIEW this is actually very understandable.

 

You need to install 32-bit LabVIEW to have any chance of using those DDE functions. It then usually works but if it doesn't you have exactly 0% chance of any support. This DDE functionality was developed more than 25 years ago and NI has never made any changes to it since about 1997 since by that time Microsoft has declared DDE to be obsolete technology that was replaced by the much more capable and secure ActiveX functionality (which by now is highly depreciated by Microsoft too in favor of .Net).

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 5 of 7
(1,912 Views)

Perfect, thanks for the detailed response, Rolf.  I had no idea it was that old!

 

Much appreciated.

 

Regards

Richard

 

 

0 Kudos
Message 6 of 7
(1,903 Views)

@Richard-P wrote:

Perfect, thanks for the detailed response, Rolf.  I had no idea it was that old!


It's even older than that. 😀

 

DDE was a Windows 3.x technology that was already depreciated as soon as Windows 95 was released. However Microsoft left it in there for backwards compatibility reason until today and the Windows Explorer still supports the old DDE interface that lets you control it from other applications. And it still is the default method for many applications to remotely invoke it from Explorer with parameters such as what file to open. But it is obscure and highly under documented by now to the point where nobody in his sane mind would ever consider implementing it in a new application if he would start today.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 7
(1,879 Views)