Tablet PC Autocomplete - c#

I have been trying to implement the autocomplete functionality mentioned
here.
The problem is I am developing on a windows xp machine and I cant seem to find the right dlls used to develop this feature.
Using vista for development is not an option, but the production environment is on a Vista Tablet PC. I have downloaded and installed the Tablet PC SDK version 1.7 to no avail (still cant find the libraries).
The implementation seems to use COM libraries. The examples are all written in C++ and I am developing in .NET.
Has anyone ever successfully implemented this feature?
If so, how did you go about doing it?
Any help will be appreciated
Here is an image showing what I am trying to achieve
alt text http://i.msdn.microsoft.com/ms695043.ba59a513-e538-4092-89a6-6d691424dc3d%28en-us,VS.85%29.jpg

There is no need to call the DLLs directly. As long as your solution is based on .NET Framework 3.0 or above you just need to enable AutoComplete mode on the specific textbox. Deploying your solution to Vista should enable the functionality.
However, one caveat is that the autocomplete integration is for Vista and above only. You will therefore be unable to debug this aspect of your project on an XP machine - you'll have to remotely debug on your Vista Tablet PC. The Tablet PC SDK does not include down-level compatibility for this option on XP as it's baked into the Vista OS.
I hope this helps.

Related

Suggestions for creating a windows XP-compatible browser?

For my internship, I need to create a customized browser that will host their web application and simulates it to be like a normal desktop app for the user.
I've already looked at a few possibilities to help me create a browser without having to write the engines myself and this resulted in creating small prototypes for Electron, CefSharp, and Geckofx, these last two were done in c# WinForms, where the default webbrowser control was replaced by a chromium engine and the firefox engine Gecko in the case of Geckofx).
These prototypes seemed to work perfectly with the site and looked very promising, however since making these demo's I got the requirement to support Windows XP as well. This requirement has complicated things because none of my already available options support Windows XP as of now.
Which brings me to my question, are there any packages like Cefsharp and Geckofx that are embedded into c# (via Visual Studio NuGet) and available to be used on Windows XP without breaking?
The webapp I'm creating this for fully supports internet explorer 11, Chrome version 50+, Firefox (don't know the first supported version) and Microsoft Edge.
It also seems to work with Opera version 36 (which is the last available version for XP) but I haven't found any kits that can help me create a browser-based on this.
Edit 18-01-19:
I was asked to also support Windows XP because the company I work for has a lot of customers that are hospitals. Apparently, they mostly use Windows XP to support the other programs they have installed on their desktops and as such I got the requirement to make my browser support XP as well.
It is also worth noting that the webapp I'm making this for, is currently used on a local environment and accessible via localhost in a browser. So the security concerns are not the main problem here as far as I'm aware of.
Edit 22-01-2018:
It seems that the current version of Geckofx (v45) is still able to work with Windows XP, it does, however, need the .Net framework 4.0 to work, so you'd have to downgrade to that version whilst developing. However, when I try this out I miss certain dependencies that make it impossible to use.
When reinstalling the NuGet version on .net framework 4.0 the references to Geckofx-core and geckofx-WinForms disappear, along with a few others that I haven't been able to pinpoint. Because of these lost dependencies, I'm unable to support XP with the Geckofx browser and I haven't found any good replacements for it.
The error I'm getting right now after "Xpcom.Intialize("Firefox"); is 'System.EntryPointNotFoundException: cannot find entry point with the name NS_Alloc in DLL xul' which causes the program being unable to start.

How to convert/update old Windows Mobile and Windows CE Apps?

I have about 20 app demos, mostly for Windows Mobile but some for Windows CE. They were all created in Visual Studio 2008 for Mobile 6.1, Mobile 6.5, and CE 5.0. They are a mix of C# and VB.NET. I've been asked to update them.
I've done a fair bit of research, and I understand you can't do the standard Visual Studio project conversion, but is there anyway to salvage these projects? Ideally, I need to get them running on the current version of Windows Mobile/CE and compiling in the current Visual Studio. Is there any hope for them?
The latest version of Windows Mobile/CE is WEC 2013, and is supported in VS2012 and later. Note that for .NET CF development you will need an Application Builder SDK from the device vendor.
Whether you will be able to port the applications really depends on what they do.
For instance, one of the main differences between CE 5.0 (and its mobile derivatives that you mention) and WEC 2013 is that in WEC 2013 user mode code can no longer access hardware directly, so if the applications rely on direct hardware access you will need to find or implement device drivers to do this. On a related note, P/Invoke is always a potential cause for concern when porting.
You'll also need to determine if the target device includes all the OS features that are required by the applications. Remember Windows CE / WEC are componentized OS's, and the device vendor might have excluded features from the OS image that the applications need in order to function.

should i use mono to develop linux app

I have years of experience developing on microsoft development stack primarily visual studio 2012/c#. But right now, im required to develop app on linux. While i know c++, its been years since i really touch that. I have few questions.
Can i develop using mono and compile binary for linux and windows with no code(or minimal) code changes?
Can i develop on windows platform using visual studio 2012, compile for linux on window platform? do i need to use virtual machine for compiling for linux in windows platform?
How do you setup your development environment if you want to develop linux app on windows platform(develop on windows, compile for linux and windows. my linux box use for testing is a separate machine.)
Some info on what im working on.
My project is about network channel analysis. The client is cheap industrial linux box most probably with no ui. Im using mono/c# to develop the client. The server would be windows develop using vs2012 c#. Most probably using wpf as ui. Im planning to share network/communication library between linux(client) and windows(server). My primary concern for using linux is for cost saving since the client is almost thousand units.
thank you.
Mono runs executables in PE (Portable Executable) format, the native file format of Windows. There's no need to "compile for Linux", as long as your app is pure MSIL. And even if you use native DLLs through p/invoke, Mono and Wine work together to run the Windows files on Linux.
(The a.out and ELF executable formats used by native Linux applications don't have mechanisms for storing .NET metadata, the PE format was modified to support .NET, so that's what .NET Framework (not Micro Framework) implementations use regardless of platform)
The most important things to consider at the beginning are,
WinForms of Mono is problematic. Not only most third party controls won't work properly, but also libgdiplus itself is not 100% compatible with Microsoft's GDI+. It might appear to be a sweet option, but later you might still need to fight hard against the incompatibilities.
WPF is not an option as Mono does not support it yet.
GTK# is your best choice for UI, which blends naturally with Linux distros. If you refactor your Windows project properly, you should be able to share the non-UI code between your Windows and Linux solutions. This is what Mono guys recommend (not only use native UI frameworks for Windows, Linux, but also for Mac/MonoMac, iOS/Xamarin.iOS, and Android/Xamarin.Android).
So go back to your questions,
You should never wish for no code change for a real world project. No, that's impossible. As I said earlier, you have a chance to share most non-UI portion.
You can develop the non-UI portion and the Windows only portion using VS2012 and test them out on Windows. If you plan to use Mono's WinForms or GTK#, you must develop and debug on Linux using MonoDevelop. Thus, you need either a virtual machine or physical machine of Linux.
For me, I frequently switch between Linux/MonoDevelop and Windows/VS.
As Mono + C# is much more productive than using C/C++, many successful Linux apps are developed on Mono, such as Banshee and Tomboy.
You can use Visual Studio without problems but for example you cannot use WPF, while Windows Forms are ok. For more information what you can use visit: http://www.mono-project.com/Compatibility
Moreover there exists Mono tools which integrates with VS: http://www.mono-project.com/GettingStartedWithMonoTools

Winform application crashs on WINDOWS 7 -64bits

I have a huge problem on one of my winform application. Someone who use my application works on windows 7 64bits and apparently it directly crashes when the application is launching.
My application works correctly on :
-Windows XP
-Windows Vista
-Windows 7 (32bits).
I developped the application on Visual C# express 2005 (.NET 2.0).
I am wondering if there is anything I can do to recompile my application to make it work on windows 7 64bits.
I am sorry, I have no access to the computer of the person (so I can't check, exception or anything like that). I am pretty sure that this issue is known that's why I'm asking you right now.
Does anyone have an idea ?
Thank you by advance for your Help
Regards,
Joze
In project properties setting window, select tab Build and change Platform target to X86. Republish..
EDIT: to the down-voter
By doing this Windows will know your program is designed for X86 use and will install it accordingly. (I've done this with Clickonce, and it works..)
Likly you use some interop x86 DLL or COM object. Try setting for your executable Target Platform x86 (not Any CPU as it is by default).
Do you use any unmanaged (com) components in your application?
If so, most likely you're including the 32bit version. If that's the case, you will have to compile 2 different versions of your program, one including the 32bit components, and the other including the 64bit components.
If that's not the case, it means you're using some platform specific code somewhere. More details about your application could help clarify the problem.

Is there any way to develop Silverlight applications on OS X?

While all of my machines are Macs, I actually really enjoy working in .NET. I thought it would be fun to try my hand at writing a Silverlight application. Unfortunately, as near as I can tell, Silverlight is not a part of Mono that actually works on OS X.
Is it possible to develop Silverlight on OS X, or will I need to use a VM? If it's possible, is Mono the only option, or is there some other way?
Have you heard of Moonlight?
Taken from the project page:
Moonlight is an open source
implementation of Silverlight
(http://silverlight.net), primarily
for Linux and other Unix/X11 based
operating systems. In September of
2007, Microsoft and Novell announced a
technical collaboration that includes
access to Microsoft's test suites for
Silverlight and the distribution of a
Media Pack for Linux users that will
contain licensed media codecs for
video and audio.
According to go-mono.com, you can use MonoDevelop to develop for Silverlight/Moonlight on Mac OS X.
I'd probably stick with a VM - I use VM's on my mac all the time, and Visual Studio is perfectly usable (obviously that does depend on your mac's spec)...
If you want it all for free, you can use VirtualBox, install windows on there (you can always use an evaluation if you don't own it), and then use Visual Studio Express - this SO question tells you how to set Visual Studio Express up for SL dev... Developing Silverlight in Visual Studio Express?
There was a Silverlight development tool that ran in Eclipse called Eclipse tools for Silverlight. It has a Mac version. It looks a bit stagnant though, so I don't know it's current status.
http://www.eclipse4sl.org/
MonoDevelop does have moonlight projects built-in, so there shouldn't be any issue.
Also- while this prob doesn't fit your case, I bootcamped my MBP and while it's freaky running Win7 + vStudio on mac hardware, it works quite well.
Silverlight is comptatible for MAC OSX via a separate project, whose name I forget. Microsoft release the source code for silverlight to some people that are working on implementing on other platforms, including MAC
However, this means that it's always at least one version late, so MAC users can have access to silverlight 3, but not 4.
Old Mac that are not intel processors, only have access to silverlight 1.
Look at this page for a compatiblity list.
http://en.wikipedia.org/wiki/Silverlight#Silverlight_4

Categories