Список форумов   Список форумов  

Не загружается .EXE на Pocket PC(нет файла WS2.dll)

Обсуждение работы в LabVIEW с оборудованием

Модераторы: Техподдержка NI, Robert, Модератор

Не загружается .EXE на Pocket PC(нет файла WS2.dll)

Сообщение Nat » Ср сен 03, 2008 12:39 am

Добрый день! Очень надеюсь на помощь.
Конечная цель: подключить Toshiba Pocket PC e750 через USB-интерфейс к устройству с платой USB-6008.

Проблема: не запускается на Pocket PC пример-проект(PDA Tutorial-Pocket PC.exe). Каким образом установить недостающий файл WS2.dll?
Появляется информация на Pocket PC: Cannot find "PDA Tutorial-Pocket PC"(or one of its components). Make sure the path and filename are correct and the required libraries are available.

Порядок установленных приложений:
1) LABVIEW 8.5.1;
2) LABVIEW PDA Module 8.5;
3) ActiveSync 4.2
4) DAQmx 3.1
5) В командной строке проверяла наличие(отсутствие) следующих файлов:
- aygshell.dll = (проверен -> Unable to open Windows CE file)
- commctrl.dll = (проверен -> Unable to open Windows CE file)
- commdlg.dll = (проверен -> Unable to open Windows CE file)
- COREDLL.dll = (проверен -> Unable to open Windows CE file)
- ole32.dll = (проверен -> Unable to open Windows CE file)
- WINSOCK.dll = (проверен -> Unable to open Windows CE file)
- WS2.dll = (проверен -> Windows CE file does not exist)
6) eMbedded Visual C++ 4.0 с Standart SDK for Windows CE при соединении с Pocket PC.

Проблема осталась той же: не запускается на Pocket PC пример-проект(PDA Tutorial-Pocket PC.exe) и файл WS2.dll = (Windows CE file does not exist) отсутствует как и прежде.
Заранее благодарна.
Nat
 
Сообщений: 1
Зарегистрирован: Вт сен 02, 2008 11:22 pm
Откуда: Зеленоград

Сообщение Denis » Ср окт 22, 2008 3:18 pm

The device is missing one or more required files.

LabVIEW assumes that the device supports (at a minimum) the Windows CE Standard SDK. In particular, LabVIEW references the following system DLLs:
AYGSHELL.dll
commctrl.dll
commdlg.dll
COREDLL.dll
ole32.dll
WINSOCK.dll
WS2.dll
If one of the above files is missing, you will likely get an error similar to the following:

Can't find 'APP_NAME' (or one of its components). Make sure the path and filename are correct and that all the required libraries are available.

In this case, APP_NAME represents the actual name of the LabVIEW executable. Unfortunately, it's not as simple as looking for the above files using a file browser (e.g. via ActiveSync) because many system files are hidden, even if the folder view is configured to show system files. To determine which one(s) are missing, use the attached utility, "pget.exe" to do the following:
Save the attached utility, "pget.exe" to a temporary directory.
Connect your device to ActiveSync prior to running pget.
Open a command windows and navigate to the directory that contains pget.
Enter the following command: "pget \Windows\aygshell.dll c:\temp\aygshell.dll"
If the file exists, pget displays "Unable to open Windows CE file." or "Error !!! Reading Windows CE file". If it does not exist, pget displays "Windows CE file does not exist."

Repeat step 4 for each of the files listed above to determine which component(s) are missing.

Except for commdlg.dll as explained below, if the PDA is missing any of the SDK DLLs, the PDA is not compatible with LabVIEW PDA.

If commdlg.dll is the only missing file, there is a somewhat drastic workaround that may solve the problem. This is not generally recommended, so please contact the LabVIEW PDA PSE for permission before suggesting the following workaround. This will effectively remove references to commdlg.dll in the LabVIEW application. This DLL is used by graphs and charts to set plot colors, so these may not function properly after the change.
Create a VI with no graphs/charts.
Make a backup copy of the following files in <LabVIEW Directory>\PDA\Utilities\ and then edit the originals by deleting any occurences of "commdlg.lib":
BuildPocketPC40ARM.bat
BuildPocketPC40x86.bat
BuildPocketPCARM2003.bat
BuildPocketPCARM2005.bat
Make a backup copy of <LabVIEW Directory>\PDA\Utilities\LVPocketPCProject\Src\lvCEPDAMain.c and then replace it with the attached file of the same name.
At this point, PDA applications built from LabVIEW will no longer reference commdlg.dll.
Вложения
Pget.rar
(16.59 KiB) Скачиваний: 666
Denis
Site Admin
 
Сообщений: 3
Зарегистрирован: Пн мар 31, 2008 12:01 pm


Вернуться в LabVIEW и оборудование National Instruments

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

cron