Alternatives For ActiveX in .NET [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know that there are a lot of threads talking about this topics but please let me discuss my problem in some details.
In our project, we are using a lot of devices (Cameras, Printers, Fingerprint devices, Smartcard readers) in desktop applications and we have already C# components that are developed to deal with these devices using their SDKs.
The problem now is that we are moving into web development and we are supposed to convert our WPF desktop applications into ASP.NET MVC web applications and also we should use our existing components for the devices.
The possible solutions to deal with devices from web .Net application are:
Using ActiveX (Which is dead or will die soon and it required some COM experience and very hard to develop).
Using Silverlight (Also, is dead or will die soon and it is very limited such that we can not add reference to existing C# components).
Using Java Applets (which require some Java experience and we will rewrite existing c# components in Java).
Is there any other solution so that we can deal with devices from ASP.NET MVC application over Intranet?

You can write browser extensions for Chrome, Firefox, and Edge (soon). I'm not sure how much code reuse you'll get across the browsers if you need to target them all, and I'm not sure of the extent to which you can run arbitrary code to connect to devices from your extensions, but it's something you should look into. You can then have your browser extensions communicate with your webpages to pass the necessary data.
Your users would need to install the extension for their browser to receive the functionality.

You can still distribute small "helper" applications that are based on a pared down version of your current WPF applications. These would perform the device access, and communicate directly back to your web server. The web site would serve as the interface.
This would allow you to leverage your existing device communication code. On the downside, it requires a separate install on the client, which means one more thing for the user to do and one more thing to keep updated.

Related

Multiple instances of a WinForms application on one Windows system [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a complex legacy software which is a C# WinForms application, recently upgraded to .NET Framework 4.7.2 and added with a WCF REST API for external communication.
This application requires certain files on the disk, certain partitions needs to be available (such as a D: drive) and so forth (due to a lot of hardcoded file management etc). The app also requires a license USB dongle and a big SDK framework installed on the PC.
Now we would like to run several instances of this application in one server and get results out from it via its REST API. Is there any way we can do this? I guess several virtual machines would work, but is there any other way, Docker maybe?
Docker is out. As a commenter stated, Docker is not designed to mimic real hardware. See this comparison for more information.
I suggest a traditional Windows virtual machine and something like Hyper-V USB Passthrough.

Need to Create a Windows and Web-based version of the same app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a wrapper or framework that can easily convert or run a MVC web app as a windows based app or vice versa? One version needs to run in a browser, and the other standalone.
Seems kind of a niche and pointless thing but this is a bit of an awkward problem. With some planning I can probably maximize code reuse, but there's still going to be a lot of almost duplicate but slightly different code writing needed. Any ideas?
I think your best option would be to implement your MVC application and then use Hosted Web Apps approach to create Windows 10 app. Basically it will be your website in an application window, and you can implement many Windows Store features on top of it like for instance in-app purchases. It will look and feel like a native app.
From the website
For existing web applications, Windows 10 makes it easy for you to
create a Universal Windows Platform (UWP) app that packages your
website for publishing to the Store.
They promise:
Look great across all Windows-based devices, including PCs, tablets, phones, HoloLens, Surface Hub, Xbox and Raspberry Pi.
Update and call native Windows APIs from JavaScript running on your website, creating a more engaging user experience.
Integrate with Cortana voice commands.
Debug your app with Microsoft Edge F12 Developer Tools.
Track status, ratings, and reviews, see analytics, and get paid for all of your Windows app in the Windows Store.

Cross Platform Alternatives to WPF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
all, I'm thinking of porting my application from VB.net to the C# based MONO project, so it can run on both Windows and Mac. However, I am in need of a Mac-friendly alternative to WPF. It has to have very similar functionality. QML (by QT) is not a viable option, as it costs far too much money for us.
There is also https://github.com/AvaloniaUI/Avalonia a multi-platform .NET UI framework inspired by WPF
Miguel de Icaza recommends MonoMac as a substitute to WPF for Mac as stated here. As he explains there is no plan to implement WPF in mono.
MonoMac is a work-in-progress. Some parts of the Cocoa APIs are not wrapped yet. You should start with the samples to get an idea of what is possible.
You will have to build two different UI on top of a common engine, but that's generally a good separation of concerns.
There is also a possible common code base for UI with GTK#.
Depending on your application's functionality, you could potentially port your application to Silverlight/Moonlight. Silverlight is supported on the MAC, but you'll need Moonlight for Linux. Of course, if you're doing a lot of work with the client machine's file system or what not, this is not an option.
tho I have accepted an answer a while back, I want to post what I am doing currently if anyone views this question.
I am currently using Python with PyGTK for the GUI, and GStreamer for the video. This is producing results almost identical to WPF (except some hardcoded animations). Furthermore, it runs on Windows, Mac, and Linux.
EDIT: GStreamer did not pan out for my purposes. While it works well for the most part, I could not layer transparent .png images over the video. I have switched finally to Adobe Flash (Adobe AIR).
EDIT 2: For anyone who comes across this later, when the future of SWF fell into question, my company started building our own animation system in C++, using some components of Gtk+/gtkmm and Cairo. Ultimately, that falls under the advice of the other answer...separate GUI from platform.
https://www.noesisengine.com/
Is another alternative to xaml/wpf that is also for video game engines. It currently has a Indie/Free tier up to 100k in revenue, and is cross platform.

StatsD and Graphite-like tools for .Net and Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was recently sent this link to Statsd which would be an interesting tool for us to monitor various aspects of our product, but it would be a hard-sell for us because of the PHP and non-Windows toolset. (This question asks about installing this on Windows, without an answer...)
Can anyone recommend Windows / .Net toolsets that might provide similar low-overhead monitoring of systems? Within reason, paying for a toolset should not be a problem.
I did find this microsoft page that looks quite interesting, but let's be honest, it does not have as many cool graphs that show the kind of thing that would be nice to have as an end-result :)
Your experiences and thoughts on direction would be appreciated: I think our ultimate goal would be 'wall-boards' e.g. large screens cycling through several key graphs or views so the whole team could understand and monitor some key metrics of the products we are supporting. Our client uses SQL Server Reporting Services for this, but their reports seem to be mostly statistical and very little graphical.
I've ported Graphite to Windows. It was pretty easy to do this. I've issued a pull request to the main project. I hope it will get merged. Until then, you find the fork under:
https://github.com/stephanstapel/carbon
Graphite installation requires some additional steps I published here:
http://www.s2-industries.com/wordpress/2012/12/running-graphite-on-windows/
Why not run Graphite in a Linux VM on top of a windows server? You get the full support of the graphite community, while being completely hosted on windows.
If you were wanting to replicate statsd, I would create a Windows service listening via UDP on a specific port. With a fairly open database schema, you could mimic its low-friction fluidity. That would take care of statsd and Carbon, the data collector piece of Graphite. You would then need to write a management tool that analyzes and presents the data in place of Graphite.
I would, for this reason, encourage you to just take the Linux route. Otherwise, you'd be fighting every battle the developers of those tools fought all over again.

Cross platform development (Windows Mobile, Windows Phone, iOS, Android) [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Was just wondering if there were any cross platform development platforms which would run great for corporate type apps on various mobile devices.
Would be ideal if the language was C# but feel free to suggest others.
If you're happy to re-use business logic and write device specific user interfaces (more work, but better user experience on each device) you could consider the various Mono frameworks.
Writing the core business logic as a class library, then writing specific user interfaces using MonoTouch, MonoDroid and Windows using .NET Framework you'll have a cross platform application (albeit with individual UIs) in C#.
have you checked out Titanium at http://www.appcelerator.com
And then there is the PhoneGap at http://www.phonegap.com/
Worth noting that you'd be writing once for the PLATFORM, but being certain that your app works on the DEVICES is a different kettle of fish due to the variety of handset providers, their customized platform implementations and the hardware specific to the device.
Check out these related questions... otherwise know as duplicates....
Developing cross platform mobile application
Are there any huge differences between objective-c and Java, or iPhone and Android?
What work has been done on cross-platform mobile development?
Titanium Mobile is a popular choice these days.
I strongly doubt that you'll find a C# option* that's cross-platform since C# is tied to the Microsoft stack.
You could also just write a mobile-centric webapp with jQuery Mobile or similar.
*For mobile. For desktop, there's Mono (whose site appears to be down right now).
well if you've got a mac, your best bet would be to go for phonegap which supports a wide range of platforms,
if not, you could go for titanium
Although there are many platforms that provide you the facility to write once and run on multiple platform but from my point of view its not a great idea for simple reason of performance just think of below example
A C code is far faster than a java code because java provides you the virtual machine to run that code and java is far more easier to write than that of C. The idea is the more you stick close to native API the more you will get performance.
So considering the above example just think what will be the performance of such application that is supported on so many platforms
Note: I have not worked on any of such platforms so I might be wrong but this just a simple conception that fits to all
If you are used to working with Visual Studio, you can try Teleric's http://www.icenium.com/ . Icenium does not support Windows Mobile 6 though

Categories

Resources