.NET Compact Framework and Smart Device Programming (February 08, 2005)

Posted: February 16, 2005

Please note: Portions of this transcript have been edited for clarity

Introduction

mikefos_msft (Moderator):
We are pleased to welcome our Experts for today’s chat. I will have them introduce themselves now.

TimWilson_MVP (Expert):
Hello all, my name is Tim Wilson and I'm an independent consultant working with .Net technologies.

Maarten_MVP (Expert):
Hi, my name is Maarten Struys. I am a .NET Compact Framework MVP working for PTS Software in the Netherlands. Besides that I am a OpenNETCF Board member.

markpre_ms (Expert):
My name is Mark Prentice and I’m a Program Manager in the .NET Compact Framework team.

DanielMoth_MVP (Expert):
Hi, my name is Daniel Moth, .NET Compact Framework MVP

PeterFoot_MVP (Expert):
Hi, My name is Peter Foot, I'm a UK based .NET developer and MVP. I'm also a member of the OpenNETCF board.

Ori Amiga [MS] (Expert):
Hey, I am Ori Amiga, Group Program Manager for Visual Studio for Devices. When I'm not writing .NET Compact Framework apps, I am looking for Tattoo Parlors which can Tattoo ".NETCF" on different parts of my body. Let me know if you have a favorite place you get your .NETCF tattoos done.

AlexFeinman_MVP (Expert):
Hello. I am Alex Feinman. I'm a software engineer with Corrigo Inc and a member of OpenNETCF.org Advisory Council

Cpiccini_MSFT (Expert):
Hi, I am Christian Piccini. I am a Software Test Engineer working on the .Net Compact Framework.

Assaf_MVP (Expert):
Hi my name is Assaf Kezurer and i am the R&D; manager in Dooblo the leading mobile solutions company in Israel

AlexYakhnin_MVP (Expert):
Hi, I am Alex Yakhnin. I am a program manager at Intelliprog, Inc. and a member of directory board at OpenNETCF.org.

ctacke [MVP] (Expert):
Hello, I'm Chris Tacke, Co-Founder of OpenNETCF.org (among other things)

mikefos_msft (Moderator):
Let’s begin the chat. We welcome you to begin submitting your questions for our Experts. If you have attended previous chats, you may be accustomed to prefacing your question with a Q:, there is no need to do that any longer. Our new chat system will automatically preface your question with a Q:.

Start of Chat

DanielMoth_MVP (Expert):
Q: Will there be support for Managed C++ with .NET CF 2.0?
A: Sorry, no. Only VB and C#.

Cpiccini_MSFT (Expert):
Q: what is use of out keyword in dotnet?
A: The keyword out is used as a parameter modifier... it specifies that the parameter is being passed by reference and must be assigned by the method being called.

AlexYakhnin_MVP (Expert):
Q: Hi, How can I make an animated figure in my application, like the MS office helper? movements, sounds, hide, show and so on. Is it better to use gif-files (premade movements)? It's supposed to work on a PDA.
A: Take a look at my old article on MSDN:https://msdn2.microsoft.com/library/aa446483.aspx

ctacke [MVP] (Expert):
Q: Is it possible to run DirectX Or DirectShow-NET applications on PDAs with Windows MOBILE?
A: The CompactFramework currently doesn't provide managed objects for DShow or DirectX.

PeterFoot_MVP (Expert):
Q: I have a solution with one smart device application and 5 assemblies. I was referencing the desktop framework and not CF in one(ie: b77a5c561934e089 ) which I have now changed but still have problems. TypeLoadException....
A: Either you still have a desktop reference in there somewhere, you'll need to check each assembly carefully, or your dlls are missing at runtime. A good starting point would be to clear all the files from your output folders and the device and build again.

DanielMoth_MVP (Expert):
Q: It will not show correct references when I build and use reflection to show GetReferencedAssemblies on my exe - still b77a5c561934e089
A: GetReferencedAssemblies is not supported in the CF. You must be referencing the desktop assembly somewhere.

DanielMoth_MVP (Expert):
Q: Can .NET CF 2.0 be installed on existing WM 2003 (in RAM) and will it work alongside .NET CF 1.0 in that case?
A: Yes. You can even specify in a config file which version to run against.

ctacke [MVP] (Expert):
Q: PDA, Server, WLAN - What is the best way to set up communication between a PDA and a server using WLAN? Transfer information/text (xml, soap?), make the server trigger functions on the PDA...
A: This greatly depends on your topology and requirements. If you have a TCP connection, then sockets work well as a transport. How you package the data (xml, soap, web service, etc) may change on data rates avaialble, what the data is, cost to transfer, and a lot of other factors. Basically the best person to answer the question is you.

AlexFeinman_MVP (Expert):
Q: Any thoughts on how to get pocket pc or write some software to prefer Wifi and fall back to GPRS when WiFi isn't available?
A: Generally you should watch the WiFi connection for availability (required APIs are wrapped by OpenNETCF Adapter class) and use Connection Manger (wrapped by OpenNETCF ConnectionManager class) to initiate a GPRS connection as needed. The things that might need to be looked at include checking that the device network configuration (see CM_NetEntries in PPC SDK) does not route all traffic via GPRS. Http classes in CF will automatically use ConnectionManager to ensure connectivity to the target host, so having the CM_NetEntries and CM_Networks set correctly will be critical to achieve the functionality you need.

mikefos_msft (Moderator):
If you’re just joining us, welcome to today’s chat. Our chat today about MVP Chat: .NET Compact Framework and Smart Device Programming! Your questions, comments and feedback are welcome.

Ori Amiga [MS] (Expert):
Q: Does Microsoft plan to make a new and better pocket pc emulator for visual studio .NET then PPC 2003 emulator?
A: Visual Studio 2005 includes a completely new emulation support. The new "Device Emulator" is a true, very high fidelitiy, ARM-CPU emulator, so you no longer have to maintain x86 and ARM code bases. It supports rotation, high resolution, full-duplex audio, folder sharing, save-states, docking with ActiveSync, and much more. Are there specific things you're looking for in a "better" ppc emulator? Thanks.

PeterFoot_MVP (Expert):
Q: When will it be easy to write plugins for the Today screen?
A: A today plugin requires a dll which exports specific methods. It is not possible to write such a dll in managed code, so there will still be a requirement for a native (C++) dll.

Maarten_MVP (Expert):
Q: Will eVC get rolled into Visual Studio 2003 or 2005?
A: With Visual Studio 2005 you will have the possibility to develop native C++ applications.

ctacke [MVP] (Expert):
Q: Will eVC get rolled into Visual Studio 2003 or 2005?
A: To expand on that - eVC will not be able to target future devices. Studio will not be able to target current devices with C++. Basically for a while you'll need both tools.

Ori Amiga [MS] (Expert):
Q: Will eVC get rolled into Visual Studio 2003 or 2005?
A: to clarify a bit further, Visual Studio 2005 will support native (C++) development for Pocket PC/Smartphone 2003, Second Edition, and future versions of Windows Mobile. You will only need eVC3 if you need to develop native applications targeting PPC/SP 2002.

AlexFeinman_MVP (Expert):
Q: ctacke: Do you mean that with VS 2005 you cannot develop native applications for WM 2003 devices?
A: Yes, you can

DanielMoth_MVP (Expert):
Q: ctacke: Do you mean that with VS 2005 you cannot develop native applications for WM 2003 devices?
A: WM2003 yes. Custom WinCE 4.x no.

DanielMoth_MVP (Expert):
Q: Can you talk about what improvements, if any, has been made in VS 2005 regarding writing custom controls?
A: You will be able to use UserControl and design- time support will be available in both languages.

AlexFeinman_MVP (Expert):
Q: With VS2005, can I debug .NETCF as well as my unmanaged apps (built with eVC) together?
A: It is supposed to be a supported scenario. Not sure if it is already functional in the current beta build.

PeterFoot_MVP (Expert):
Q: Is there location, camera and outlook managed API available in .NET compact 2.0 framework beta 1 refresh?
A: These APIs which were announced at last years MDC conference will be specific to future Windows Mobile devices, and are not a standard part of .NETCF v2.0

ctacke [MVP] (Expert):
Q: Is there location, camera and outlook managed API available in .NET compact 2.0 framework beta 1 refresh?
A: CF 2.0 support COM interop, so interacting with Pocket Outlook will become very simple. Since there is no standard Camera API, there is no set of interface classes

ctacke [MVP] (Expert):
Q: Have improvements been made to VS 2005 to make it simpler to implement the design-time side of custom controls?
A: Yes. Full designer support is now available.

DanielMoth_MVP (Expert):
Q: if I have an app written for the PocketPC and I have a client that wants to use a device that support Windows CE only, how easy is it to change platforms?
A: The non-UI bits should be OK. Depending on the screen size of the WinCE device you may have to change the Forms layout. You should also check if the WinCE device has aygshell and if the app depends on that (e.g. via PInvokes). There is an article on MSDN with high level differences between the two.

AlexYakhnin_MVP (Expert):
Q: will OpenGL be supported in CE?
A: Since OpenGL is not a part of CE OS you can guess the answer.

Ori Amiga [MS] (Expert):
Q: Is there location, camera and outlook managed API available in .NET compact 2.0 framework beta 1 refresh?
A: the next version of Windows Mobile will include managed code class libraries for things like Pocket Outlook (mail, calendar, contacts), SMS APIs, Camera access APIs, telephony APIs, and rich notification APIs.

DanielMoth_MVP (Expert):
Q: In my resx files I have things still referencing b77a5c561934e089 - should absolutely nothing in the project reference publictokenkey=b77a5c561934e089 ?
A: Correct. Absolutely nothing.

AlexFeinman_MVP (Expert):
Q: With VS2005, can I debug .NETCF as well as my unmanaged apps (built with eVC) together?
A: Clarification: you will be able to switch between managed and unmanaged debugging by detaching and reattaching the debugger, but there is no support for stepping through from managed into unmanaged code

ctacke [MVP] (Expert):
Q: Is there a more precise release date for VS 2005 than first half of 2005?
A: Beta2 will be out Late March/Early April

DanielMoth_MVP (Expert):
Q: Any comments from the opennetcf.org folks on what might be under consideration for the next version of the SDF? (if there is one)
A: You can log in the vault and check it out yourself :-) We have a bunch of threading classes, BackgroundWorker, SerialPort interface-compatible with CF 2.0, ftp classes etc

ctacke [MVP] (Expert):
Q: Any comments from the opennetcf.org folks on what might be under consideration for the next version of the SDF? (if there is one)
A: Lots of stuff. :) Off the top of my head: closer object models to the CF 2.0 stuff, Patterns and Practices, FTP...

NeilC_MVP (Expert):
Q: Any comments from the opennetcf.org folks on what might be under consideration for the next version of the SDF? (if there is one)
A: We're doing a lot of work behind the scenes on the SDF 1.3. One of the big areas I'm personally focusing on is the user experience with the tools in the IDE. Expect some neat stuff :)

DanielMoth_MVP (Expert):
Q: Will there be a beta 3?
A: A Beta 3 of what? If you mean VS2005, there isn't even a Beta 2 yet. Latest device bits are in the November CTP.

ctacke [MVP] (Expert):
Q: Will there be a beta 3?
A: There are no plans for a Beta3.

AlexYakhnin_MVP (Expert):
Q: David Gonzales [MS] on a newsgroup "Pass Through for ActiveSync 3.7.1 has a limit of 16/32 socket connections." on ActiveSync only allowing 25-26 successive http connection attempt. Problem for PIE and my RSS reader. How to fix or workaround?
A: I am not aware of any tools, but theoretically you could create a socket server that'd channel the connections through.

mikefos_msft (Moderator):
Q: David Gonzales [MS] on a newsgroup "Pass Through for ActiveSync 3.7.1 has a limit of 16/32 socket connections." on ActiveSync only allowing 25-26 successive http connection attempt. Problem for PIE and my RSS reader. How to fix or workaround?
A: [From Ken Walters of the ActiveSync group] "The recommendation is to reuse sockets and don't keep creating / destroying them. I believe the limit will reset when you disconnect and reconnect." This may be addressed in future versions...

ctacke [MVP] (Expert):
Q: Will we sometime be seeing portable (optional to install) compilers to be run on the WM devices (i.e. for compiling a source right on the device?)
A: Probably not in the near term. You could always take the open-source compiler (written in C#) and try to port it, though it would be a large amount of work.

DanielMoth_MVP (Expert):
Q: Are there plans to release another CTP before Beta 2 comes out?
A: I believe the answer is yes.

PeterFoot_MVP (Expert):
Q: Are the location, camera and outlook API available in alpha/beta and will I be able to run them on .net 2.0 compact framework?
A: The location, camera and outlook APIs announced by Microsoft are specific to future Windows Mobile devices, so you won't be able to use them on existing devices. There are third party libraries for Cameras (specific models) and POOM available already for current hardware.

PeterFoot_MVP (Expert):
Q: The namespace System.Security.Cryptography will be implemented in .NET CF 2.0?
A: Yes it will

DanielMoth_MVP (Expert):
Q: How much of the SDF has been "incorporated" in some form in .NET CF 2.0?
A: Some of it has like SerialPort, Registry, WebBrowser, DatePicker but there is a lot in SDF that matches the .NET 2.0 that is not available in NETCF 2.0 : -)

ctacke [MVP] (Expert):
Q: How much of the SDF has been "incorporated" in some form in .NET CF 2.0?
A: MS didn't take our code and roll it into their, so I assume you mean how much overlap exists? Not as much as you'd think. Where the functionality overlapped we're trying to provide CF 2.0 interfaces along with the older SDF interface (like with the Serial stuff)

Ori Amiga [MS] (Expert):
Q: I've been having problems with ActiveSync 3.8 and Platform Emulation. Seems many of the CE Tools don't want to work. Is AS 3.8 fully tested against the dev toolsets?
A: what specific tools are you trying to use? What are the errors you are seeing?

mikefos_msft (Moderator):
Q: Is there any way / tool to track an integrity violation for a device in merge replication before synchronizing and getting an exception? Might be off topic
A: This is a great question. I'm not sure that our experts will be able to respond to this one today. Probably the best option we can suggest is to check the microsoft.public.sqlserver.ce newsgroup. Sorry about that...

PeterFoot_MVP (Expert):
Q: Any support for DPAPI?
A: SDF v1.3 will have an implementation of ProtectedData to match the desktop v2.0 framework

AlexFeinman_MVP (Expert):
Q: does .NET CF 2.0 also mean C# 2.0?
A: Yes

DanielMoth_MVP (Expert):
Q: Will the .NET CF 2.0 run on all .net enabled devices? (CE 4.1, 4.2 etc.)
A: CF 2.0 runs on CE 5.0 devices and above and Windows Mobile 2003 for Pocket PC.

NeilC_MVP (Expert):
Q: Is it possible to run DirectX Or DirectShow-NET applications on PDAs with Windows MOBILE?
A: If you have the Nov CTP of VS 2005 installed, go to %ProgramFiles%\Microsoft Visual Studio 8 \SmartDevices\SDK\CompactFramework\2.0\WindowsCE and you will find an assembly called Microsoft.WindowsMobile.DirectX.dll -- I think that answers your question.

AlexFeinman_MVP (Expert):
Q: How do I get modifications to .inf file for cab creation into VS.NET 2003? Currently use hand-modified .bat and .inf file run manually. How do I get this in debug mode on emulator?
A: You still hand-modify it. Not sure what do you mean about debug mode on emulator

AlexFeinman_MVP (Expert):
Q: Talking about ActiveSync: will UDP be allowed through ActiveSync in the future? Or, do we have to rely on TCP/IP for communications via ActiveSync internet pass- thru?
A: As far as I know UDP passthrough support is not on the horizon yet

PeterFoot_MVP (Expert):
Q: How can I get the .inf cab configuration file to handle directories (instead of everything in the root directory?) when building both debug for the emulator and release versions?
A: Currently the only way to do this is by manually hand-editing the .inf file. You can use a number of the % CE% constants to specify different system folders, for example if your app has files which need to go in \windows\ as well as the program folder. VS2005 will have some IDE support to make this much easier.

PeterFoot_MVP (Expert):
Q: is it possible to download a newer emulator then PPC 2003 for VC 2003?
A: The latest emulators are the PPC 2003 Second Edition emulators which plugin to VS2003. These allow you to test screen rotation as well as run against .NETCF SP2 in the image.

Maarten_MVP (Expert):
Q: Do you know when it is going to be available an application like Smart Device Authentication Utility for Visual Studio 2005? Because I can not connect my hardware/development kit to Visual 2005 and debug on actual hardware. Thanks!
A: I am pretty sure there will be a possibility to debug on actual hardware for Windows CE 5.0 devices. Honestly I don't know if it will be in the same form as the current Smart Device Authentication Utility.

AlexFeinman_MVP (Expert):
Q: Debug mode: click on "Debug" in VS.NET 2003, then it builds and deploys to emulator. How do I get the debug deployment to emulator to include modifications to .inf file?
A: You can't. You are deploying the project and not CABs. If you need the registry settings from the CAB, you need to deploy it once by hand. As for extra components installed by CAB - some of those you can include in your project as content.

DanielMoth_MVP (Expert):
Q: Is it possible to detect screen orientation DMDO_0, DMDO_90, DMDO_270 and so on with .NET CF 1.0 or 2.0?
A: There is a relevant blog entry on the Windows Mobile blog and David Cline's. If you cannot find it please post back.

PeterFoot_MVP (Expert):
Q: Could you point out some of the third party library names for POOM? Is the future location API based on MapPoint?
**A:**A complete library such as www.inthehand.com/dotnet/poom/ or a complete COM interop layer - https://www.odysseysoftware.com/products_cfcom.asp

DanielMoth_MVP (Expert):
Q: What about XML improvement in .NET CF 2.0, we will able to validate XML against Xml Schema ?
A: For XML enhancements scroll to the bottom of the page "XML Support" : https://msdn2.microsoft.com/library/h1ek3akf.aspx

Ori Amiga [MS] (Expert):
Q: I've been trying to get an active sync connection for Application Deployment, File Browsing, etc against the Emulator WWE SmartPhone SE with ActiveSync 3.8. I don't have two serial ports available. Ethernet doesn't work unless you have a partnership.
A: Do the same steps/actions work for you using ActiveSync 3.71?

PeterFoot_MVP (Expert):
Q: There will be no managed way of detecting screen orientation in .NET 2.0? In David Cline's blog it is done with P/I.
A: The Microsoft.WindowsCE.Forms.SystemSettings class will allow you to query and set the screen rotation. And SDF v1.3 will have an equivalent for .NETCF v1.0

mikefos_msft (Moderator):
So we're about caught up on your questions. If you have additional questions or need clarification on a previously asked question, please don't hesitate to post them! Otherwise, our hosts will slowly drift off and start daydreaming and it'll become increasingly hard to get their attention.

DanielMoth_MVP (Expert):
Q: What does this publictokenkey stand for? b03f5f7f11d50a3a - I have removed all references to desktop fx but now when I build all the forms that had the reference to b77a5c561934e089 now get Resource transformation for file 'MainMenuForm.resx' failed
A: Resx formats are incompatible between desktop and CF. Try deleting the resx (show all files in solution explorer) and rebuilding the solution to regenerate them.

AlexFeinman_MVP (Expert):
Q: How can I get the .inf cab configuration file to handle directories (instead of everything in the root directory?) when building both debug for the emulator and release versions? and how do I get the dir structure to the emulator in debug mode?
A: There are 2 separate .inf files - one under obj\Debug and the other under obj\Release. Edit each one separately. As for subdirectories - you can define whatever target directories you want. See the documentation on .inf files

DanielMoth_MVP (Expert):
Q: Will named mutexes be available in .NET CF 2.0?
A: Named mutextes and named events are available in the SDF 1.3 source. I recall that named events are not offered in CF 2.0 and I *think* the same for mutexes.

Maarten_MVP (Expert):
Q: will .NET CF 2.0 have better support for P/I like accepting non-blittable types as return values?
A: There will be much better support for P/Invoke in CF 2.0. As a matter of facts: if you want to know more about that I encourage you to tune in to an MSDN Webcast this Thursday. Take a look at: https://msdn.micros oft.com/events/ and look for the MSDN Webcast: Native Code Interoperability in .NET Compact Framework 2.0. It will be on February 10 at 18.00 GMT. MSDN Webcast: Native Code Interoperability in .NET Compact Framework 2.0 (Level 200) a href="https://www.microsoft.com/communities/eventdetails.msp x?CMTYSvcSource=MSCOMMedia&Params;=~CMTYDataSvcParams% 5e~arg+Name=%22ID%22+Value=%221032265944%22/%5e~arg+Name=% 22ProviderID%22+Value=%22A6B43178-497C-4225-BA42- DF595171F04C%22/% 5e~ar">https://www.microsoft.com/communities/eventdetails.ms px?CMTYSvcSource=MSCOMMedia&Params;=%7eCMTYDataSvcParams% 5e%7earg+Name%3d%22ID%22+Value%3d%221032265944%22%2f%5e% 7earg+Name%3d%22ProviderID%22+Value%3d%22A6B43178-497C- 4225-BA42-DF595171F04C%22%2f%5e%7earg+Name%3d%22lang% 22+Value%3d%22en%22%2f%5e%7earg+Name%3d%22cr%22+Value%3d% 22US%22%2f%5e%7esParams%5e%7e%2fsParams%5e%7e% 2fCMTYDataSvcParams%5e

AlexFeinman_MVP (Expert):
Q: How does platform manager know which emulator to load. Sometimes I get SmartPhone and other times I get SmartPhone WWE SE?
A: Platform Manager launches the emulator you requested. When you see a list (produced by an application that interrogates platman), you choose an item and then that emulator is supposed to be launched. From Visual Studio it is done via ConMan component that is different from Platform Manager, but again you are supposed to get what you have specified

AlexFeinman_MVP (Expert):
Q: AlexF, thanks, if the "project" is what is deployed to the emulator during debug, how do I get that to deploy the directories correctly?
A: I don't believe that is possible. Currently Studio does not support subfolders when deploying a project. One way to overcome it would be to create a dependency project which deploys your dependent component to a particular folder

PeterFoot_MVP (Expert):
Q: The inf and batch file calling CabWiz is recreated and overwritten each time you build. How do I hook a hand-modified one into the "Build CAB Files" button in VS.NET 2003 ?
A: You should build the .inf file just once. Then you can modify the file and run the BuildCabs batch file which is created in the same folder for future builds. If you use the menu option in Visual Studio again all your hard work is toast.

DanielMoth_MVP (Expert):
Q: Threaded GUI-apps are a bit complicated in .NET 1.0... will there be any improvements in the next release?
A: Yes. As you know you must use Control.Invoke. With CF 2.0 ControlInvoke supports other delegates (not just EventHandler), you can pass parameters and you can do async (BeginInvoke). Also check out the BackgroundWorker in the SDF (a .NET 2.0 class available today).

PeterFoot_MVP (Expert):
Q: Will there be editable combobox's in CF2.0?
A: Yes the ComboBox in v2.0 will support the DropDown style allowing you to edit the text content.

ctacke [MVP] (Expert):
Q: If I want to contact/communicate with a specific PDA in a room with 30 others, all having the same app running and using WLAN to communicate, how could I do that?
A: With a socket connection the way that most chat clients work. Either you need a server to handle all clients and messaging, or each client much register with every other client.

AlexYakhnin_MVP (Expert):
Q: If I want to contact/communicate with a specific PDA in a room with 30 others, all having the same app running and using WLAN to communicate, how could I do that?
A: It sounds like a "classic" chat program that you can create by using sockets. There're a number of samples available on the net that you can use in CF.

ctacke [MVP] (Expert):
Q: Are we out of questions? What about my XML "DOCTYPE" question?
A: I'm guessing that none of us know the answer.

PeterFoot_MVP (Expert):
Q: Will there be support for GAPI in CF 2.0? I know there is DirectX, do you know which one has fastest access to the screen?
A: .NETCF v2.0 will not have built in support for GAPI or DirectX, although there will be new DirectX libraries with the next generation of Windows Mobile (not for current devices). There are some .NETCF wrappers for GAPI available, do a google on gapi and netcf

AlexFeinman_MVP (Expert):
Q: Is the new location API going to be based on MapPoint?
A: It is definitely going to be tied together with MapPoint.

ctacke [MVP] (Expert):
Q: is it possible to change the system clock with CF 1.0 without using P/I or 3rd party extensions?
A: Nope.

mikefos_msft (Moderator):
Q: CF SP3 XML does not handle !DOCTYPE and maybe rdf elements. How can I get the XmlTextReader to read these without NotSupportedException. I've tried setting xtr.XmlResolver = null; but it doesn't change the functionality. I'm still getting the exception.
A: Looks like you've stumped our experts with this one. Probably my best suggestion would be to post it to the public newsgroups. Sorry about that.....

DanielMoth_MVP (Expert):
Q: is it possible to change the system clock with CF 1.0 without using P/I or 3rd party extensions?
A: Not without using pinvoke. What is the problem with pinvoke, just curious?

NeilC_MVP (Expert):
Q: CF SP3 XML does not handle !DOCTYPE and maybe rdf elements. How can I get the XmlTextReader to read these without NotSupportedException. I've tried setting xtr.XmlResolver = null; but it doesn't change the functionality. I'm still getting the exception.
A: From the newsgroup (https://tinyurl.com/5n827): "Support for parsing DTDs was removed to increase perf and size. It was considered for .NetCF v2 but was cut again in favor of XmlSchema support."

PeterFoot_MVP (Expert):
Q: What additional benefits would the location API provide that are not available in MapPoint?
A: No specifics have been announced for the API. I would expect the two to work closely together for example as a provider for Mappoint Location Server.

mikefos_msft (Moderator):
Q: Can you recommended a specific news group for XML inquiries?
A: microsoft.public.dotnet.xml would be my best guess

PeterFoot_MVP (Expert):
Q: Do you plan to have similar chats on this topic regularly?
A: .NETCF chats happen monthly with MVP hosted chats alternate months. You can keep an eye out for upcoming chats at https://msdn.microsoft.com/chats/

DanielMoth_MVP (Expert):
Q: Is there any way to convert a solution to reference only CF FX as I have removed all references to desktop assemblies but it is still looking for desktop somewhere.
A: Safest, easiest way is to create a brand new Smart Device project. Add existing files to it.

AlexYakhnin_MVP (Expert):
Q: How can I disable the buttons on a PDA, using MOBILE OS, programmatically?
A: You can hook the buttons by using RegisterHotKey

mikefos_msft (Moderator):
Q: Custom directory/.inf deployment into emulator: I'm still looking for a solution that will allow me to step through code with debugger as well. I'll have to continue to try different things as I get time. All pointers appreciated!!
A: Looks like a question that our experts today aren't able to answer. Probably my best suggestion would be to post it to the public newsgroups (microsoft.public.dotnet.framework.compactframework). Sorry about that.....

ctacke [MVP] (Expert):
Q: Is gui code separated from logic code in vs 2005?
A: Separated how?

DanielMoth_MVP (Expert):

Q: ….separated in different class-files... I have heard that a class can split into multiple .cs files.. Perhaps I'm wrong?
A: See my previous reply on Partial Classes. I also have a description on my blog: https://www.danielmoth.com/Blog/

DanielMoth_MVP (Expert):
Q: is gui code separated from logic code in vs 2005?
A: Partially (no pun intended). With Partial Classes the Auto-generated code for the controls you add on a form is in a separate file to the code you add manually.

ctacke [MVP] (Expert):
Q: Thanks for the chat. Would we be able to send questions to a newsgroup comprised of the experts present?
A: Post them to the public newsgroup microsoft.public.dotnet.framework.compactframework

NeilC_MVP (Expert):
Q: NeilC, thanks. I just wanted to be able to ignore the DOCTYPE and I can't figure out how to do that and continue reading the XML with the built-in XmlTextReader. Thanks for the pointers. Any more are appreciated as well!
A: You could read the DTD into a byte array, copy the bytes from the end of the DOCTYPE node to the end of the document into a stream and load that in the XmlTextReader. Just make sure you have valid XML before loading into the XmlTextReader

mikefos_msft (Moderator):
Q: Great chat once again. Second one I've attended. Seems like a Mad Mad Mad Mad Mad Chat Race from this end. Hopefully it's better from your end. I doubt it though! Thank you for all the time you've spent with us!
A: Thanks for being here!

mikefos_msft (Moderator):
Thank you for joining us today for our MVP Chat: .NET Compact Framework and Smart Device Programming! We very much appreciate your time and all of the great questions. And thanks to the MVPs for hosting!!!

We welcome any feedback about this chat. Please forward comments, suggestions or any other feedback to edevfdbk@microsoft.com

We hope to see you again for another chat in the future!

Top of pageTop of page