How to make c++builder run with g++? - g++

I am learning how to do socket programming, my tutorial is for Unix, so I need to use cygwin, but it's not handy to run code from prompt bash for me, so if anyone knows, please tell me how to make Embarcadero RAD Studio XE3 for Windows run with g++

You cannot. C++builder XE3 generates executables for:
Windows using the VCL
Windows using the firemonkey framework
Windows console applications
OSX using the firemonkey framework
XE4 will generate executables for iOS as well.
However XE3 will not generate console applications that run on Unix.
Cygwin is a framework that allows unix console applications to run under Windows.
It only accepts Unix applications to run inside it.
If you want to write a unix console app, you'll have to compile your c++ code in a compiler that supports it, like gcc.

Related

Visual Studio 2015 run and debug on different OS version simulators

I am developing a VB.Net based Windows8.1(10) Store application.
After published, I've found out that my App crashes on Windows8.1 while it works fine on Windows10.
So, I want to debug my App on the Windows8.1. However, I cannot find how to do so.
When I [Run] the App to [Simulator], it runs on clone of my computer, but I want to run it on other version of Windows.
Visual Studio 2015 is now installed on Windows10.
Thanks.
Disclaimer: I work on Visual Studio, though not on the Universal/Modern App area.
This is not a supported scenario and there is no feature present in Windows that emulates or simulates previous versions of the "Modern" runtime environment.
The Simulator feature is actually a local-loopback Remote Desktop (Terminal Services) session and existed to make it easier to debug Modern applications given that they could only run in a fullscreen mode, however as this is no-longer the case (as apps are now floating windows) the utility of the Simulator is limited, and as you're discovering is not relevant to your problem.
The only solution I can recommend is to use Hyper-V (or another desktop virtualisation product, such as VirtualBox or VMWare if you don't want a hypervisor installed) to install a dedicated Windows 8.1 environment followed by installing the Visual Studio Remote Debugger.
Given the rapid adoption of Windows 10 (as it is provided as a recommended update to the majority of Windows 8.1 users) I don't personally recommend explicitly targeting the Windows 8.x "Modern" app environment unless you know you will have users or if it's a contract requirement.

Running a C# application (Awesomium) on multiple platforms with the Mono Project

Would it be possible to develop just one application (Xamarin Studio) that uses awesomium mono? Compile it for the mono runtime and it works across all operating systems (win, android, linux, mac, ..)?
This would be magical.

How to compile a program under windows vista that runs on windows 7 / VB 2010

I have created an application with VB 2010. My computer runs under Windows Vista. I created the .EXE file as well; simulated an installation and everything works fine. But when I try to install the application in a computer that runs under Windows 7, I get an error message and the application won't install. How can I get the application to run under Win7?
You want to be sure you have the .NET Framework installed on the PC, since VB.NET (and C#, etc.) use the .NET Framework to interact with the CLR, which is not included with Windows by default.
You can either set-up your installer to install the .NET Framework on its own or download the framework separately.

Write Mac OS X apps with Visual Studio

I just came upon this article here which can turn your day to day visual basic app to run on mac os x. Here is the link: http://mac.sillydog.org/dev/visual_studio.php The thing I don't get is that the author doesn't tell us specifically what to download, and where to get all the files. He's a bit vague... Can anyone make this clearer to me?
BTW: I am using VB.NET although the author uses C#. I think it will still work though.
.NET Framework
Microsoft Visual Studio Express
Mono Framework for Mac OS X
wx.NET
The Mac OSX build of wx.NET is called Carbon. The readme says:
This package is a contribution of wx.NET user Matthias Fuchs, who wrote:
Hi,
as i didn't find a binary package for Mac OS X I created my own ;-)
I've built wx.NET for Mac OS 10.5.7. I used wxWidgets 2.8.10 and created a Mac OS X Framework Bundle.
The zip file includes a "wxWidgets.framework" folder, which must be installed into /Library/Frameworks/ on the root partition of MacOS X. I also tried to copy the wx.NET.dll to Mono's GAC, but mono can't find the wx-c.dylib. But I think it is ok, that users can just put the wx.NET files into their bin/debug/release folders.
Follow those instructions and use the Windows Mono build of wx.NET when testing on the same machine as Visual Studio and the Mac OSX build when you deploy it.
The important part is the mono framework. It looks like you need this release.

From where to download compiled and ready to use MonoDev for Mono 2 under Windows?

I have heard a lot about Mono and its usability compared to .NET and its cross platform support.
I tried to find a working version of MonoDev which will give me a visual way (like MS visual Studio) of working with Mono 2.x.
Have we to compile it from code or has someone provided a link to download a working and precompiled version of MonoDev that works in Win 2000 and higher?
You don't need MonoDevelop to build applications that run on Mono. The main feature of Mono is that it runs .NET assemblies without need for re-compilation. You can build in Visual Studio (including any of the free versions of Visual Studio Express) and run your applications under Mono without change, providing Mono supports the API's you're using.
You can use the Mono Migration Analyzer (MOMA) to test your assemblies to see if Mono will support them. It inspects the MSIL code directly, so it's very quick to test them.
I believe it is possible to run MonoDevelop on Win32: http://www.monodevelop.com/MonoDevelopWin32
You can run MonoDevelop on Windows using AndLinux.
You can either:
Download one of the completely free Visual Studio Express versions: http://www.microsoft.com/express/product/default.aspx
Use SharpDevelop. There is no need to 'support' Mono, just develop like you normally would, and then copy your binaries over and Mono will run them.
Like others said, the point of Mono is to work the same as MS's .NET. You can develop in VS, then run it on Mono. That being said, if you really want to run MonoDevelop on Windows, don't let anyone tell you it can't be done. If you're curious about it, with a little bit of Cygwin hackery, I've been able to get MonoDevelop to compile cleanly on Windows, and run in an acceptable way. http://monodevelop.com/MonoDevelopWin32 has some instructions on how to get it working, but they are out of date. The current SVN trunk for MonoDevelop has better support for Windows, so try compiling with Cygwin if you're feeling daring.
MonoDevelop does not currently run on Windows. It currently runs on Linux and OSX.
On Windows, you can use Visual Studio or SharpDevelop and copy your binaries over to Linux or OSX to run them.