windows-ce

Exporting DLL C++ Class , question about .def file

随声附和 提交于 2019-11-29 05:17:58
I want to use implicit linking in my project , and nmake really wants a .def file . The problem is , that this is a class , and I don't know what to write in the exports section . Could anyone point me in the right direction ? The error message is the following : NMAKE : U1073: don't know how to make 'DLLCLASS.def' P.S: I'm trying to build using Windows CE Platform Builder . You can always find the decorated name for the member function by using dumpbin /symbols myclass.obj in my case class A { public: A( int ){} }; the dumpbin dump showed the symbol ??0A@@QAE@H@Z (public: __thiscall A::A(int)

Debugging winMobile application on remote device (PDA, ARM) from Visual Studio

Deadly 提交于 2019-11-29 00:28:23
Hi! I have some PDAs (windows mobile) to test my application. One of them is HTC Touch Dual, and it have some bugs in debugging . There is another ARMv6 device I can use, but it's far far away. So I can't use USB cable, but can use TCP/IP (internet, not intranet). Do you know, how can I connect to remote windows mobile device to debug application on it? We tried different ways and now we know this: ActiveSync is bad. It disables all external connections to device and it's impossible (or just I don't know how) to remotely debug device while it's connected via ActiveSync. We have created VPN,

Windows CE SDK for Visual Studio 2008

佐手、 提交于 2019-11-28 22:11:08
I am new to Windows CE programming. I have Visual Studio 2008 and Visual Studio 2005. I have found the following SDK for Windows Mobile http://www.microsoft.com/downloads/details.aspx?familyid=06111A3A-A651-4745-88EF-3D48091A390B&displaylang=en Please help me in deciding if this is the correct one, or please feel free to redirect me the correct one Thanks in advance Sujay If you are targetting a Windows CE device (and not Windows Mobile), then each device has it's own specific SDK. If you are not using a device specific functionality, you create a C# for Windows CE 5.0 application and it will

Windows CE deletes .NET CF on reset

风格不统一 提交于 2019-11-28 21:41:46
问题 I'm writing a C# application for a proprietary Windows CE 4.2 device (for which I don't have the specs or pretty much any other information. I've got access to the file system, and that is basically it.) I also can't get support from the original manufacturer. Now, I can install the .NET Compact framework just fine, and everything works for a while. But every once in a while, when the device is reset, it deletes the framework, the GAC, everything related to it. I know it's not just a hard

Why do I get the error “Unsafe code may only appear if compiling with /unsafe”?

房东的猫 提交于 2019-11-28 15:50:19
Why do I get the following error? Unsafe code may only appear if compiling with /unsafe"? I work in C# and Visual Studio 2008 for programming on Windows CE. To use unsafe code blocks, the project has to be compiled with the /unsafe switch on. Open the properties for the project, go to the Build tab and check the Allow unsafe code checkbox. Manoj Attal Here is a screenshot: ََََََََ Probably because you're using unsafe code. Are you doing something with pointers or unmanaged assemblies somewhere? Search your code for unsafe blocks or statements. These are only valid is compiled with /unsafe .

How to programmatically install a font

 ̄綄美尐妖づ 提交于 2019-11-28 14:00:49
I would like to install a specific font on my program load and use that font in rendering text of the program. How can I programmatically install a font from .NET CF on WinCE 6. This blog entry shows how to enumerate and add Fonts in Windows CE using native code. For managed code, this will work: internal class FontHelper { private delegate int EnumFontFamProc(IntPtr lpelf, IntPtr lpntm, uint FontType, IntPtr lParam); private List<string> m_fonts = new List<string>(); public FontHelper() { RefreshFontList(); } public void RefreshFontList() { m_fonts.Clear(); var dc = GetDC(IntPtr.Zero); var d

Which SqlServerCe DLL version do I need to reference in my project to match what's in sqlce.wce4.armv4.CAB?

老子叫甜甜 提交于 2019-11-28 13:48:59
问题 The "rest of the story" is told below in all its gory details, but to cut to the chase, it comes down to this: SQLCE 2.0 (contained in sqlce.wce4.armv4.CAB) seems to be installed on the device on which my app runs; the source project references SqlServerCe with a Runtime Version of v2.0.50727 and a Version of 3.5.1.0 Is this a match or a mismatch? If the latter, which version of SqlServerCe.dll do I need to reference in my project? THE REST OF THE GORY STORY My Windows CE app is failing when

What is wrong with this HttpWebRequest/HttpWebResponse code (why is it considered a “bad” request (400))? [closed]

旧城冷巷雨未停 提交于 2019-11-28 13:05:55
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Based on the info from this MS link, I've got the following code in a Windows CE / Compact Framework app which calls a REST method in a Web API server app: public static string SendXMLFile2(string uri, string data) { //TODO: Remove below after testing String s = data.Substring(0, 128); MessageBox

What is the best mechanism for communicating cross-process in Windows CE?

你说的曾经没有我的故事 提交于 2019-11-28 12:53:51
I need to broadcast an event that can be picked up by any application running on a Windows CE 5 device. Haven't done this before so i'd be interested in knowing what techniques people would suggest to see if there is anything i've not considered. All of the applications that need to receive this event are .NET Compact Framework based so "managed-only" solutions can be considered. I swear I've answered this somewhere - here, newsgroups, blog, something - but I can't find it, so here it is again: You really have 4 options for IPC under Windows CE. I'll focus on CF solutions here. Use a socket.

How to send the structure pointer to DeviceIoControl API in WINCE7 C#.net

你说的曾经没有我的故事 提交于 2019-11-28 12:05:35
问题 I am working on WIN CE platform, developing windows forms in C#.Net. The DeviceIoControl API is working fine with the parameters (mentioned below) in c++ console application. PNIC_STATISTICS structure in nuiouser.h global declarations : TCHAR PCI1_NAME[] = _T("PCI\\ManiXX1"); TCHAR *AUB_NAME = NULL; AUB_NAME = PCI1_NAME; pNICStat = (PNIC_STATISTICS)malloc(sizeof(NIC_STATISTICS)) ; pNICStat->ptcDeviceName = AUB_NAME ; //wchar_t* ptcDeviceName DeviceIoControl( hUB94Port, //void* IOCTL_NDISUIO