01-28-2009 03:57 AM
01-28-2009 07:40 AM
01-28-2009 11:13 AM
Actually, that is a LabWindows/CVI dialog. It is the dialog that CVI used in Windows 3.1.
In the CVI environment, that dialog can appear, as a fall-back option, if an error happens when launching the standard dialog.
In a CVI program, when calling FileSelectPopup, that dialog is displayed, if CVI thinks that the program is running in an old OS, which should not be the case.
Simon: you mentioned that it appears "sometimes". Have you been able to detect any pattern for when it does and does not appear? Try adding the following code to your program:
Please confirm that the value printed is greater than 4.#include <windows.h>
OSVERSIONINFO osInfo;
osInfo.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
GetVersionEx (&osInfo); // check the return value here. It should not be 0.DebugPrintf ("OS version: %d\n", osInfo.dwMajorVersion);
01-29-2009 01:57 AM
01-29-2009 10:47 AM
You can't really set the OS version, so far as I know. And the CVI runtime does check the OS version, not just for the purpose of displaying this dialog, but also in other situations.
I would expect that the version returned by XP Embedded would be the same as with normal XP. But it's possible that it might depend on which specific components your customer included in his particular configuration, which might result in it not even being possible to get the version at all.
One thing you can do is to add some form of the code that I included in the previous post to your program, then send it to your customer, and see what you get back. The two possibilities are that GetVersionEx returns 0, or that the version returned is less than 4 (unlikely). Knowing which might help us. Another helpful thing would be to ask your customer if he can qualify a bit what he means by "sometimes". Is there any pattern at all to when this does or does not happen, or is it really completely random?
Luis
10-18-2012 11:26 PM - edited 10-18-2012 11:27 PM
Do you have solved this problem?
I have the same problem.
At my case, FileSelectPopup changes between normal and different popup when communicating with my PLC, LS GM6 with Ethernet port.
We use the same source for 3~4 years, but it's first time this happens.
If you have solved the problem, please Let me know solution.. ^^;
10-22-2012 12:12 PM
Just to add some more info about this problem. I have also seen it with a CVI v7 release mode executable when it was run using the Windows Remote Desktop. It was a Windows XP Media Center PC remoted to a Windows 7 computer which was remoted to a Windows XP computer. The same executable ran fine on the same XP computer when it was using it's local display, keyboard and mouse.
Jim