FAQ Database Discussion Community


Cannot find file path

c#,path,windows-ce,c#-2.0,relative-path
I'm using Windows CE 6.0. I'm developping an application that needs to read a XML file (bar.xml) that is placed right next to my executable (foo.exe). I try to access it with the following method, called right after my Main() : private void ParseXmlFile(string _sFileName) { XmlDocument l_doc = new...

Missing assembly reference System.Data

c#,compact-framework,windows-ce
When I compile my project (in C#) for Windows CE (using .NET Compact Framework 3.5) it fail! Error: Add reference to System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 But there is!!! Any idea what I'm missing? Oh...the error is on the line where i try to use Excel Data Reader: IExcelDataReader excelReader =...

Why do I get “InvalidOperationException: No current row” with this code?

c#,sqlite,windows-ce,invalidoperationexception
I'm trying to retrieve a row from a table using the GetInventoryRecordForUPC() method below. I can retrieve the row fine in LINQPad by entering "SELECT invName, line_id, ref_no, upc_code, description, department, vendor_id, upc_pack_size, pack_size, id, unit_cost, unit_list, unit_qty, new_item FROM Inventory WHERE upc_code = '76145513'" (the value passed in "upc"...

Customize DataGrid for Win CE Device

c#,datagrid,windows-ce
I'm writing an application for windows ce, so I have to use VS 2008. I'm showing some Data in a dataGrid-Control (DataGridView NOT available!), and I want to customize it. things like grid.Columns[i].width etc are not working on these controls. I need to change the columns width and header texts,...

Motorola Mk3000 application development

java,c++,windows-ce,motorola-emdk
Does anyone have experience developing an application for Motorola MK3000, been reading the manuals and browing the web but can't seem to find a good guide. I feel like this is my last resort. I have a background in c++ and java, anyone can help me? or point me to...

Using Thread Moving Files from PC to Remote Device

vb.net,multithreading,windows-ce,rapi
Using RAPI2 to send file from PC to a Remote Device. When using the line without Threads, it works fine: RemoteFile.CopyFileToDevice(PdtRemoteDevice, "C:\sample.txt", "\test\sample.txt", True) But when I try to put that line above inside a Thread, it returns an error that the device is not connected. How do I use...

Issue in Bluetooth pairing

bluetooth,embedded,windows-ce,windows-embedded-compact,hci
We are testing Bluetooth in WEC2013 with a USB based dongle from generic vendor on iMx6 platform. We are using the default HCI Transport layer provided with WEC2013 BSP. BT is turned on and able to scan all the nearby devices. We have enabled following set of sysgen variables and...

winCE C# HttpWebresponse timeout

c#,http,httprequest,windows-ce,httpresponse
I'm programming a Windows CE 6 device and want to make a request on a local Server! The device and the Server are in the same Wireless Network. The device tries to perform a getresquest() on the Server. public int test() { string var1 = "whatever"; req = (HttpWebRequest)WebRequest.create("http://192.168.x.x/test.php?var1=" +...

Using nandflash with hardware ecc in Win CE6

embedded,windows-ce,windows-embedded-compact
Currently, I am adapting a Win CE6 device to a new nand flash chip. The new nand has higher ecc requirements (4 bit / 512 bytes) and supports on chip ecc calculation. Microsoft flash filesystem writes to sectors without erasing them. This happens when writing it's status information in SectorInfo->wReserved2....

Windows CE 6.0 (OEM 5.37) not displayed hourglass cursor

c#,cursor,windows-ce
I have a problem with displaying the hourglass and custom cursors in Windows CE applications on OEM 5 platform. Question is that the cursor does not display by default, and is displayed only when I click on the screen. Interestingly, the hourglass cursor spins correctly on OEM 4 platform. I...

How to Copy (and increment) Multiple Instances of a File Using Batch File

batch-file,copy,backup,windows-ce,increment
I need to create a batch file that copies a file and increments it upon placing it at the destination. Example. copy C:\TEMP\MyDoc.txt E:\MyData\ Essentially, I need this copy command to copy every time I start it (which it does now just fine). I would like it to increment the...

How can I remove more than one item from a listbox?

c#,listbox,datasource,windows-ce,invalidoperationexception
This is really getting annoying; or, to be honest, it became quite annoying a good while back. Programmatically removing items from a listbox should be pretty straightforward, yet it seems everything I try ends up the same: with an exception. This time it's "InvalidOperationException". In context (excerpt of log file):...

Why does removing a listbox Item crash the second time through the loop?

c#,for-loop,listbox,crash,windows-ce
This has been an ongoing problem; In the code below, the old code (which also failed) is commented out. The new code behaves the same way, though: private void UpdateGUIAfterTableSend(String listboxVal) { ExceptionLoggingService.Instance.WriteLog("Reached frmMain.UpdateGUIAfterTableSend"); try { //listBoxWork.DataSource = null; // <= This (at one time, anyway) seemed necessary to circumvent...

How to access remote filesystem on Windows CE device via command line

windows-ce
I can view files on my embedded Windows CE device via Windows CE Remote File Viewer, but would prefer to do it through the command line. Is this possible?

Using SetWindowLong to override WndProc

java,windows-ce,jna
I need to set a WindowLong to override WndProc, I'm using this methods from coredll.dll: public interface CoreDll extends StdCallLibrary { //loads the coredll with unicode options CoreDll INSTANCE = (CoreDll)Native.loadLibrary("coredll", CoreDll.class, W32APIOptions.UNICODE_OPTIONS); //native calls HMODULE GetModuleHandle(String lpModuleName); long GetWindowLong(HWND hwnd, int gwlWndproc); long SetWindowLong(HWND hWnd,int nIndex,Callback dwNewLong); LRESULT DefWindowProc(HWND...

c# windows ce device can't change size of form to Full screen

c#,.net,windows,windows-ce
I hid task bar at the bottom of the screen with the function KioskMode.Execute("HHTaskBar", false); Now I wish to ensure that the form take all screen i have try: public static void InitializeKioskMode(Form p_Form) { p_Form.FormBorderStyle = FormBorderStyle.Sizable; p_Form.FormBorderStyle = FormBorderStyle.None; p_Form.WindowState = FormWindowState.Maximized; p_Form.Width = Screen.PrimaryScreen.WorkingArea.Width; p_Form.Height = Screen.PrimaryScreen.WorkingArea.Height;...

SystemEvents.TimeChanged is not in Windows CE 6.0?

c#,time,windows-ce,systemevent
My C# application will run in both windows 7 and windows CE 6.0, I need to do some operation while change the time so i used below event in windows 7, SystemEvents.TimeChanged += new EventHandler(SystemEvents_TimeChanged); its perfectly working in windows 7 but this is not working in the windows CE,...

Is there any way to change input method on .NET Compact Framework 2.0

c#,windows-mobile,compact-framework,windows-ce,ime
I'm developing a Windows Mobile application in C#, .NET Compact Framework 2.0. Installed OS is Windows Mobile 6.0. The problem is when I input some text on a Textbox using physical keyboard, Korean is typed always because OS is Korean window mobile. So, I try to change IME mode to...

DoModal Returns -1 Getlasterror says Invalid handle

c++,visual-studio-2012,mfc,dialog,windows-ce
I am using a Win32 application ,In this DoModal function returns -1 and GetlastError() returns 6(Invalid handle).I tried Deleting GDI handles to repair the GDI Exhausts,Result Fails. Additional Information: I'm using Visual Studio 2012 and this application is for Compact 2013. if(!bDeviceOpened) { bDeviceOpened=OpenDriver(); if(bDeviceOpened == 0) { AfxMessageBox(_T("Please make...