LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Directory selection dialog missing the 'Done' button

I have built an application using LabWindows/CVi V5.0.1 (and Windows 2000) and sent it to some colleagues in France who use Windows XP. The distribution kit was made using the standard process and included the runtime engine.

Some, but not all of them have reported that the 'Done' button is missing in the directory selection dialog (invoked by the library function 'DirSelectPopup()' with allow cancel set and allow make directory, not set.)

Any ideas why this might have happened and what I can do about it? (and why only some XP machines, not all)

Thanks, Brian
0 Kudos
Message 1 of 28
(6,328 Views)
LabWindows/CVI V5.0.1 has not been tested on Windows XP. The earliest version supported on XP is 6.0. Since the application was built on Windows 2000 with an outdated LW/CVI, it may be a compatability issue. This random occurence with the 'Done' button is a good sign of this. It would be helpful if you attached your code, so that I can see if i encounter the problem. I would reccomend an upgrade to the latest version of LW/CVI; its probably a good idea anyways.

Derek

Message 2 of 28
(6,324 Views)
Thank you Derek, you may well be right, but sadly I have no budget to upgrade my copy of LW/CVi. There is nothing complicated about the code. The line in question is:

if (VAL_DIRECTORY_SELECTED == DirSelectPopup(ifilepath, "Select Directory", 1, 0, filepath))
{
...

I actually have two programs showing the same problem. In the one case the call is made from a menu callback in the other it is from a control callback, so I don't think that is relevant.

Since some versions of WinXP seem to be OK I was wondering if anyone knew which dll(s) are involved in producing this dialogue so that we could check the versions on the different machines and hopefully update the ones that show the problem...

Anyone?

Thanks again, Brian
0 Kudos
Message 3 of 28
(6,332 Views)
Hi! I have the same problem with LW/CVI 8.5 and winXP on two different PC's. On one PC the "Done" button is present, on the other - not. So, it's really seems to be the windows problem...
0 Kudos
Message 4 of 28
(6,117 Views)
Brian -

    This reminds me to a very (very) similar issue described by a customer creating installation kits and sending to customers in Korea.

    This was reported to R&D (# 1SFBAB8M) and was fixed in LabWindows/CVI 5.5.

Sir -

    Help me to understand your issue a little better: is this the case that you literally don't see the "Done" button (you see the gray parent background behind the button), or does the button exist, but seems to be displayed incorrectly. If the first case is happening, posting a screenshot would be very helpful!

       Also, some additional information would be quite helpful:
        -Is one machine the development machine, or are both running distributions?
        -If both are distributions, are you using the same distribution of the CVI Run-Time Engine (RTE) on both machines?
        -Are these RTEs installed from the distribution created to distribute the program, or is one (or both) downloaded from ni.com?
        -Are there similar service packs for Windows installed on your machines?
        -And finally! (thanks for your patience) are both these mentioned instances running the same program, or two different programmings both happening to call DirSelectPopup()?

Thanks!



Evan Prothro
RF Systems Engineer | NI

0 Kudos
Message 5 of 28
(6,089 Views)
-Is one machine the development machine, or are both running distributions? > Both of them using for development, but the version history of NI-DAQ and LabWindows is different. One of them is clear Ni-DAQ 8.5 & LW8.1 installation (on this machine all work fine), the other is LW5->LW6->LW8.1 -If both are distributions, are you using the same distribution of the CVI Run-Time Engine (RTE) on both machines? > I hope yes, it shoud be the latest RTE version came with LabWindows 8.1 -Are these RTEs installed from the distribution created to distribute the program, or is one (or both) downloaded from ni.com? > This RTE is included in LabWindows distribution -Are there similar service packs for Windows installed on your machines? > Not shure. One of them is a clear installation of WXP, but the oter was W2000->WXP. Both of them have SP2 istalled, but with the different numbers of updates.... -And finally! (thanks for your patience) are both these mentioned instances running the same program, or two different programmings both happening to call DirSelectPopup()? > This is the same program.
0 Kudos
Message 6 of 28
(6,075 Views)
Hey Sir,

It appears that there is some conflict on the computer that has been upgraded from CVI 5 to 8.1.  Could you download and install the CVI 8.1 Run-Time Engine from here, and see if that affects the file dialog box?  I look forward to hearing how this works.  Have a great day!
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 7 of 28
(6,040 Views)
I download and try it. And got this:

Installation Summary
No software will be installed or removed.
0 Kudos
Message 8 of 28
(6,029 Views)
Hi Sir,

I'm back from vacation in Denver -- thanks for the suggestion Jett; I agree it sounds like your RTE version may be the culprit.


Sir, I would recommend that you navigate to c:\windows\system32\ and check the version of your cvirte.dll (select properties from the right-click menu of the file and click the version tab). I would suspect that the version on the working system is later than that of the system displaying the buggy behavior. If this is the case, you should upgrade the buggy system to the same version of the RTE as the working system. These can be found here.

Please let me know if they are exactly the same versions and I will hunt down the calls we make to the Windows SDK so that we can ensure your system .DLLs are the same since the upgrade to XP from 2000 occurred.



Evan Prothro
RF Systems Engineer | NI

0 Kudos
Message 9 of 28
(5,965 Views)
Hi Evanp.
I check the versions you ask, so:
On well-working machine have the cvirte.dll version 8.1.0.271
On the "No Done" machine the version is 8.1.1.361
0 Kudos
Message 10 of 28
(5,955 Views)