Can I create Windows Desktop x86 application on M1 mac? [closed] - wpf

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 months ago.
Improve this question
I own M1 MacBook and I need to create windows desktop app that will work also on windows surface and other intel machines as desktop application. I know there is WPF and windows forms (used them on windows machines in the past) to do that or some others like xamarin or whatever but is there way to create such app that will be cross platform ? Or can I use some virtual machine on M1 to create such app that can run on intel machines ? Is there any acceptable way to do it ?
If it's not possible using .net frameworks can I create windows desktop application using any other framework (using some other language like kotlin, java, C++ or whatever) on M1 mac?

After further research it look like it's not possible to create intel windows executable on M1 cpu at all. So basically you need two computers to do that.
As #adv12 wrote in comment looks like Avalonia is good choice but I
didn't tested it yet or .NET MAUI and also possibly Flutter desktop
could work. There is no way of building .net widow forms or WPF looks
like even on virtual machine as they also run in ARM mode.
Sure you can also go for old school Java JRE but thats kind of
outdated way and will not give great user nor developer experience I
believe.

Related

Port C Project from Windows to Linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am tasked with porting a massive c project from windows to linux. I have never ported anything over to linux before and am pretty new to linux. The project uses quite a bit of win32 calls. I have looked through some of it and understand what those parts do, however there are many moving parts and i feel it would take too much time to look through it all. What would be the best way to port it over? Is it foolish of me to think I can move the project over to the linux machine and work through the errors one by one?
Thank you in advanced!
Wine is a Windows Emulator for Linux, more exactly a re-implementation of the Windows API and binary interface, mainly for Unix-like OSes. It has also a builtin library named libwine, which is essentially a compatibility layer between the relevant Linux APIs (mainly: libc and X11) and the Win32.
Compiling the project with libwine, you will compile a Linux executable (binary), using the libwine as a shared lib (shared lib == dll). On this way, you can use the Windows API calls in a Linux project.
Your knowledge of the Win32 API helps a lot, most likely the compatibility isn't 100%. Probably you will have to modify the code a little bit (but not too much).

Is it acceptable to ask the user to install ALL the windows update before running my application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a wpf application which requires .net 4 client.
I found that it crashes on a clean win7sp1 installation, but if I install all the updates (for windows 7 and for .net 4), my application runs very well.
So can I make a requirement that the user should install all windows updates?
The ideal requirement should be: win7 sp1, + kb2345xxx; but I don't know which kb is the the root cause of the fix of crash.
I don't see applications which requires all windows update, and I'm not sure if it's acceptable for the users.
I might be wrong but as far as I'm concerned Windows 7 doesn't include the .Net Framework 4.0, it ships with the .Net Framework 3.5
Furthermore, the SP1 doesn't include any .Net Framework upgrade, just hotfixes for the .Net framework 3.5. If your app requires a specific version of the .Net framework, then there's nothing you can do to make it run on lower versions, what you can do is add a check in the installer with some information about the required version of the framework so it fails gracefully rather than crashing
To answer your question, asking the user to download all updates is ok for an enterprise application. But, if you are targeting general users, then don't do that, many users have no technical knowledge whatsoever and will just ditch your app on the spot.
Resources
Windows versions vs.Net Framework
What's included in Windows 7 Service Pack 1 (SP1)
If your application requires .NET 4.0 with some other pre-requisites you might want to declare the required as Prerequisites while building your Setup and deployment project . Eg : here and here
The framework and any custom prerequisites can also be handled either by downloading from the vendor website or creating it yourself.

Build a GUI Application for Windows in C [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm fairly new to C programming.
My program is running at the console as expected, but now I want to build a really simple Windows GUI application for it, sticking to C (just a window showing some text and a file menu).
So far, I have built everything in a single .c source code and used MinGW gcc in my Windows PC as the compiler.
I just downloaded Visual Studio 2013, but trying to use it was a bit overwhelming. I tried to look for alternatives but I'm confused with all the terminology (IDE, SDK, API etc.) and what I really need to do what I want to.
I'll be really satisfied if you just point something for me to read in order to clear my mind.
Thanks a lot in advance and sorry if this was a bad question.
A very simple GUI application is possible sticking with C and Windows API only.
In short, you have to register your own Window class (RegisterClassEx), then create the window (CreateWindowEx). Note that your window class main element is its (WindowProc) that receive the messages and that you have to implement to act as you want. After that, your C program should run the message pump (PeekMessage and DispatchMessage) for Windows to do its stuff and allow interacting with your window.
See the MSDN documentation for these functions to get help and examples.
YOu can start learning GTK for developing GUI using C language . you can get the same at
http://www.gtk.org/development.php

risks of upgrading to Windows 8? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am a .NET/ C# desktop & web developer. My computer has fried, and I am getting a new one. I am being pushed in the direction of Windows 8 for the OS - although I am very hesitant to move from Windows 7. I am wondering if any developers have already done this upgrade, and if so, what headaches or pitfalls might I run into?
Specifically - I am asking if Windows 8 has any conflicts with any of the development tools I would be using: Visual Studio 2010/2012, IIS, ASP.NET Web applications, WinForms & WPF applications, DevExpress controls, etc. Should this be a seamless transition - has anyone run into any issues with these tools or otherwise something that I might not have thought of by upgrading my OS version?
Based on my experience it's basically the same for developers. Everything such as Visual Studio works the same, except that you got IE 10 and also every time you have to launch an application you have to go back to the tile screen, which I find annoying but I create shortcuts for them on the desktop. Then there isn't much difference at all.
There's apps like the free Classic Shell that will bring back some of the feel of earlier windows versions like the start menu.

Install multiple operating systems on smartphones? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was wondering if it is possible to configure mobile phones to support multiple Operating Systems for development.
Not talking about running virtual machines on the phone, but to actually install multiple OS's on the same mobile phone giving a boot option when switching on the phone. This would be a great help to developers test real devices.
Need someone to put some light on this. Planning to write a paper on this if possible.
Yes, why not?.
For example, i tested this
idroid running android and iphone os in a single device.
And there are another alternatives
webos & android
But exists many problems:
a) officially (Apple, Microsoft and Google) they don't want that. So i don't think that they will do it officially.
b) since it is not official then it will lack drivers. For example, iDroid lack several drivers

Resources