Running GTK# applications on Windows 10 - windows

I have built a C# and GTK# program with Mono on Linux, and now I'm trying to run it on Windows 10. To see if I can get anything to run at all, I'm trying the HelloGTK example from the MonoDevelop documentation: http://www.monodevelop.com/documentation/stetic-gui-designer/
On the Windows 10 machine, I first tried installing Mono (32-bit), and running the application from the Mono command prompt as mono HelloGTK.exe, but it terminates instantly without any error message. I then tried uninstalling Mono and installing Gtk#, but with the same result: the application terminates silently when run from the Windows command prompt.
Could it be a .NET version mismatch, or missing .NET components? .NET is enabled (versions 3.5 and 4.6) in the Control Panel, but not all sub-items are checked. The program is built against .NET version 4.5.
I built a console application (with Mono on Linux) and it runs on the Windows machine without Mono installed. Is this enough for verifying the .NET status or could it still be an issue?
Could it be that the application does not find the GTK# libraries? Is there any way to verify the GTK# installation?
Could it be a GTK# version mismatch? The application is built against GTK# 2.12, and I installed 2.12.38 on the Windows machine, so I find this unlikely.
Any hints on how to troubleshoot this issue would be most appreciated!

forget all that:
native docker is now available on windows, so:
dockerize your app and make your image
copy to a windows box
run in docker
done
plus some details that probably need to be filled in. but docker works and will make your life infinitely easier where cross-platform issues are concerned.

The problem turned out to be in the code generated by the Stetic GUI designer which is included in MonoDevelop:
protected virtual void Build ()
{
...
this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
With the above line commented out the application runs on Windows 10 with GTK# installed.

Related

DX12 - D3D12GetDebugInterface - app requested interface depends on SDK component missing or mismatched

I've been trying to figure out how to run some code I got off the internet to understand how to make a proper directX 12 application and when I run it I get the error message below, pointing to the code displayed in the second image down.
I've ran Windows Update several times over and installed the DirectX End-User Runtime Installer and I still get this message. What do I need to do to solve this problem? I'm stumped.
The DirectX "Debug Layers" for Windows 10 are installed as an 'optional feature' in your Windows installation. Go to the Settings panel, under System, Apps & features, Manage optional Features, Add a feature, and then look for "Graphics Tools".
The "DirectX End-User Runtime Installer" has not actually changed the version of DirectX installed on any version of Windows since ~2002. It has also never installed the debug runtime. The legacy DirectX SDK only includes an old Windows 7 RTM version of the Debug Layer for DirectX 11.0. On Windows 7 with the KB2670838 installed or Windows 8.x, you need to install the latest Windows SDK to get the debug layers installed.
For more information, see Direct3D SDK Debug Layer Tricks and Not So Direct Setup.

How can i deploy a Qt 5.10 Quick 2 application on windows xp?

I installed Qt 5.10 Development Environment on my computer, where I had already installed Visual Studio 2017 with v141_xp toolset.
When I installed Qt 5.10, I selected the Mingw32 Tool Kit option.
Now, I have a QML application built using the Mingw32 build kit; this application uses some 3D feature (e.g. Bars3D, but it does not use angle).
I use the windeployqt.exe found in \mingw53_32\bin dictionary to deploy my application. That's works ok and can work in Windows 7.
However, when I copy the deployed files onto Windows SP with SP3, it cannot run;
I get an error like
"cannot find the entry point xx in kernal32.dll..."
How can I deploy Qt 5.10 QML application for Windows XP using the VC compiler or using the Mingw or Alor? Or is there something else I need to know?
https://wiki.qt.io/PlatformSupport
5.6 is last official release that supports XP, but Im using
Qt 5.7 VS2015 in Xp (but without webengine)

Deploy QT WebKitWidgets app to windows XP

Coming from Linux, using QT5.4 (app compiles and works as expected)
If you are interested in the topic, just get fancybrowser example running on a XP machine without QT installed...
My first attempt was using MXE (and manually copying dlls). No success.
set up VM with Windows XP.
using windeployqt.
app "works" but QWebView doesn't display anything.
trying qt.conf
[Paths]
Prefix=.
and more things.
Still not successful.
windeployqt with all options to include webkit, compiler, angle...
No success...
Reading about QWebEngine will be the next.
Compiling a small example on Linux(OK) Windows (Mingw does not support qwebengine!!!).
So before setting up a new vm with windows 8 (msvc 2010 does not support qwebengine) and may find out the the app won't run on XP....
and porting from QWebView to QWebEngineView....
Please help:
How to deploy webkitwidgets app on windows? (without installing Qt, which will be my last chance...)
Edit
Next step done was Running ProcessExplorer on the dev machine and on the target machine. Parsing the output of the loaded dlls on both machines, they do not differ. All required dlls are loaded? Still no display...
The problem should be solved in Qt5.5.1 which was released last week.
Just use the Deploy Tool of Qt :)

installing a program on w7, .NET version 2.0 required

I am tryng to install a program on windows 7 but when i run tha installer i get a error message sayng: Please install .NET Framework Version 2.0 before installing the tool.
As i know the .NET 2.0 should be installed with w7 allready. So what might be the problem? Maybe there is a way passbye the checking in the installation.. or extract it or do something.
Just for more info i think its a installshield setup launcher. I tried to extract it but its not possible, getting the .net 2.0 missing error. So what i managed to do is to extract the msi from exe. And now when i run the -msi with /passive option from cmd the it indeed bypasses the .net check and everything gets installed. Now the problem is that im getting all kind of errors in the application so looks like its still not installed correctly.
My first guess is the program you install doesn't detect .NET 2.0 correctly. As you correctly mentioned, .NET 2.0 is pre-installed on Windows 7. See this article for complete picture.
While .NET is part of Windows 7, it's an optional component, though - you can turn it off.
Open the "Windows features" dialogue (by pressing start and typing/selecting "Turn Windows features on or off"), and make sure the "Microsoft .NET framework 3.5.1" is indeed installed.
If you're seeing errors in your app then maybe there's a problem with your .NET installation, or you have a client profile or partial install. What's the application you're installing - is it a server application?

Has anyone had success with Visual Studio 6 on Windows 7?

VS6 popped off a series of errors before bombing out completely during install on Windows 7. I specifically need to get VB6 functioning on Windows 7. Anyone having any luck?
Folks on the VB6 newsgroup report they have managed to get it working on Windows 7.
There's this step-by-step guide on how to install the IDE on Windows 7 (including 64 bit).
If that doesn't work (scrapes barrel) try this old tip about persuading the install not to install the Java VM? Link is now broken so here is the tip:
Before trying to install VB6. Create a new file, name it msjava.dll and place it in your windows directory. The file can be zero length. You can then happily install without the prompt to install an old version of Microsoft's flavour of Java. Once you have installed VB6, delete the msjava.dll otherwise windows update will prompt you to update it.
Or (scrapes hole in barrel) these tips from an article about getting the IDE working on Vista?
Footnote: if developing with ADO, be aware of this.
The only way I've found that works is Windows XP mode (i.e. a virtual machine). Works fine there, but otherwise, not at all.
I found ALL the answers in a thread at vbmonster.com. As mentioned above, you CAN install Visual Studio 6 with Service Pack 6 under Windows 7 by following Derek's detailed instructions at fortypoundhead.com.
I had a problem because I needed to install Service Pack 5. I use a third party program that does not work with Service Pack 6. A really smart programmer (GuideX) came up with a great hack to get around the MDAC 2.5 error.
Win 7 64 bit service pack 5 & 6. Turn compatability off and it seems to work.
Recently I had to debug an ancient application written in Visual C++ 6.0 on Windows 8.1. Tried different solutions all of them failed, only this one worked.
This guys made a special installer that allows installing VC++6, VB6, and SP6 on Windows Vista/7/8/8.1/10 without any errors whatsoever.
Hope it would be helpful to someone.
I installed VB6 on Windows 7 Pro without having to use compatibility settings or run as administrator.
Doesn't really help you, but does show that it can work.
Several people in my office have installed Visual Studio 6 (without VC++) on Windows 7, both 32-bit and 64-bit with no problems. The one thing we have in common: we've all turned UAC down to it's lowest setting. Nothing else special required.
I am using vb6 on windows 7 32 bit system for a long time.
you will need to install your vb6 with compatibility of xp2.
Create a 0-byte file in the C:\Windows directory called msjava.dll.
Don't just install via the Autorun executable; instead browse the Visual Studio 6 CD (or folder), right-click Setup.exe and select Run As Administrator.
On any Program Compatibility Assistant warnings, click Run Program.
Step through the setup screens until you're able to choose Custom Setup, then click next.
On the setup options, install the following items and nothing else:
Microsoft Visual Basic 6.0
ActiveX
Data Access
Graphics
Click continue and the process will start, and (hopefully) eventually complete.
Skip the installations of the MSDN CD, BackOffice, VSS and SNA Server, and clear the checkbox for "Register Now". Setup should be complete.
Download the VB6 Service Pack 6 from http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=en and install.
Change the compatibility settings for Visual Basic (to get it to run a little more smoothly under Windows 7) by browsing to C:\Program Files\Microsoft Visual Studio\VB98, right-clicking the VB6.exe file, and selecting properties.
On the Compatibility tab, check the following:
Run this program in compatibility mode for Windows XP (Service Pack 3)
Disable Visual Themes
Disable Desktop Composition
Disable display scaling on high DPI settings
When you start up the IDE, you may get a notification saying that the color scheme has been changed to Windows 7 Basic, but it will be changed back to Aero once you exit. Everything should be working fine at this point!
Note: when you first run your new install vb6 run it with admin rights and with xp2 compatibility so that your exe can run on any system.
The word "supported" is used loosely in this thread, potentially leading the unwary reader to the conclusion that Microsoft supports the VB6 IDE (that is, the integrated development environment) on operating systems beyond Windows XP. This fact clearly is stated in the table that appears on the page at this link:
https://blogs.msdn.microsoft.com/nikosan/2012/04/20/support-statement-for-visual-basic-6-0-on-windows-8-updated/
Note that executables developed using VB6 are in fact compatible with Windows OS's from Windows XP through Windows 10--32/64-bit versions:
https://blogs.windows.com/buildingapps/2015/06/22/getting-ready-for-windows-10-sdks-compatibility-bridges/
Anyone using non-standard methods to coax the IDE into working on OS's that Microsoft does not support is exposing themselves/their organizations/their employers to risk and is not suitable for risk-averse organizations.
Having said that, I think the purest solution is to install Windows XP onto a virtual machine and run that VM in a modern host OS, such as Windows 10. That works just fine, and you can install directly from the VB6 Setup disc without making any pre-install/post-install customizations.
I had a Vista x64 box with a working copy of the VB6 IDE (which was supported). I upgraded the OS to Windows 7 x64 and the VB6 IDE still works fine. You could try that. I know, a huge PITA and kludgy but still, it worked for me.
I run Windows 7 Ultimate 32-bit, installed Windows Virtual PC - XP Mode, and that solved my problem isince I can run MSDEV 6.0 in the XP Window.
Not esay to install XP Mode though, the MS site is buggy.
The VB6 programming language is supported on the Windows 10 Technical Preview.
Visual Vasic 6 applications run and the VB6 IDE installs and works too.
I have the VB6 IDE running OK on Win-XP-16, Win-7-32, Win-7-64, Win-8.1-32, Win-8.1-64, win-10-32 and win-10-64 by using the instructions above which basically say, turn off UAC, run the installer AS ADMIN, and then set the VB6.exe file to run in XP-SP3 Compatibility mode.
I have had some issues with it and have had to do a bit more googling to solve these but I don't remember any more what those issues or solutions were.
I've even got the VB3 IDE running on the 32-bit versions of XP, Win-7, Win 8.1 and Win-10 - without even installing them - just copied the C:\VB folder from another computer and copied the *.LIC license files and *.VBX etc files as well.
I have successfully installed vb6 on win 7 32 bit by installing xp first then installing new win 7, (not upgrade), and do not format. then it will install vb6 without a problem
It's depending on your build version of Windows 7.
If your Win7's version is lower or is not updated, it has MANY PROBLEMS with compatibility.
But mine is newer Win7 version and has NO COMPATIBILITY TROUBLE.
I am currently using VB6 , VS6 and they still work fine!
If Properties->Compatibility->Windows XP doesn't help, fix it with UPDATING your Win7.

Resources