I want to run Turbo C++ in my 64bit laptop? But I can't find any version that support 64bit platforms - turbo-c++

I want to run Turbo C++ in my 64bit laptop? But I can't find any version of tc that support 64bit platforms.
Do you know of any place I can download a compatible version?

Not off the top of my head, but you could run up a 32 bit VM and use that.

If it is a DOS application, then you can run it in virtual machine or in DosBOX. Although DosBOX made for running DOS games, it should handle Turbo C and it is easier to set up than full VM.

Your best bet is to run it in a virtual machine like Bochs, which specialises in emulating the older stuff.
You can run FreeDOS inside it so you're not bothered by licensing issues, although it will run MS DOS if you have a valid copy.
But I have to admit, I agree with your commenters. You'd be better off teaching your students with a more modern compiler. Code::Blocks springs to mind and Microsoft themselves release a free (as in cost, not freedom) Visual C package.

Related

How does Ada access Windows 8.1/10 APIs, and can 64 bit programs for Windows be generated?

I am considering to learn Ada. I found several resources online, and Programming in Ada 2012 by Barnes is on its way to here, so that should get me started.
The target machines for the future Ada programs are Intel 64 bit, and the target OSes are Win 8.1 and Win 10.
However, I was not able to find an example on how to interact with the Windows API in order to draw and manipulate Windows. Could someone please direct me to a source, so that I can have a look at how such code would look like?
Also, all I've read so far indicates, that Ada compiles only 32 bit executables for Windows. Is it correct that I can not generate true 64 bit Windows programs?
The recent GNAT community release does target 64bit. An alternative is TDM-GCC which has provided a GNAT release targeting 64bit for a while.
There is Win32Ada which is a binding to the Windows API. However, I don't think it has been updated with new APIs of Windows 8.1 or Windows 10. However, you can always import functions from the Windows API into Ada yourself.
There is GtkAda which allows you to use GTK to create GUIs. However, these are not „native“ Windows GUIs.

Is there any R GUI not using the client-server approach?

Most people uses RStudio, at least on Windows, but it has a problem, it connects to R using TCP, through 127.0.0.1 port 8787.
That causes problems in many computers, related with the antivirus, the firewall and performamnce issues.
Sometimes they can be solved modifying the settings of the computer, but that's not always possible.
I think other GUI use the same approach.
Is there any other alternative? With R embedded in the program itself or with other kind of communication between executables.
I think the same problem goes for other GUI-scientificsoftware combinations such as Julia.
You could give R Tools for Visual Studio a try.
R Tools for Visual Studio (RTVS) is a free, open-source extension for Visual Studio 2017 and Visual Studio 2015 Update 3 (or higher), released under the MIT license. (A second open-source component called RHost, which links to the R interpreter binaries, is released under the GNU Public License V2.)
Use ESS for Emacs, works on Windows, Mac, and Linux.

cross compilation application qt from Windows to ubuntu

I have developped an application on Windows (which works well). I have to now execute this application on Ubuntu. How can I deploy my application ? Is it possible to cross compiled (and if yes how). I haven't seen any tutorial (only Linux to Windows).
Thak you for your help
You cannot cross-compile to "Linux", because that's not an OS.
Certain system-level libraries and interfaces differ from distribution to distribution, making it nearly impossible to get a one-binary-covers-all.
Setting up a cross-compiler is generally a pain in the... nuts, and for Linux->Windows, there is no free alternative (a Windows license isn't free). For Windows->Linux, you can install the distribution you are targetting and compile it natively (perhaps in a virtual machine). This guarantees compatibility with the OS you're targetting and is much more reliable than cross-compiling.

Are you using virtual machine as your primary development environment?

Recently I have purchased a notebook that came with Windows Home Basic (that don't have with ASP.Net/IIS. I thought in upgrade the Windows version to one with ASP.Net/IIS, but I thought in another possibility:
I have an Hard Disk Case with a 360Gb HD. I thought in create a virtual machine with Windows Ultimate (installing too ASP.Net, IIS and Visual Studio 2008) in this HD Case, then I can access my "development environment" in any computer that I will work on (my desktop machine and my notebook).
But I was worried about the performance. I don't have experience working in virtual machines (I use it just to quick compatibility tests).
Are you using virtual machine as your primary development environment? What your finds?
Edit
Thanks for your answers! It really did help me!
I would like to know too about portability i.e., will the virtual machine that I created in my laptop work in the desktop? Will I need to re-activate Windows?
I use VMWare and Microsoft VPC-based VMs quite a lot, hosted in a Quad 6600-based XP Pro box.
My use of VMs was initially to test in different environments, and for debugging I've had to install SQL Server and VS2008 in one or two of them.
For those purposes, VMs are very convenient.
But based on that experience, I wouldn't make a VM my primary dev environment, simply for performance reasons. VM performance is surprisingly good, but the difference (for pretty much everything), although not huge, is enough to notice.
When I'm compiling dozens of times a day, running big queries, etc, etc, I don't want my dev machine to be any slower than it absolutely has to be.
Working with a virtual machine is fine as long as you have enough RAM for both operating systems.
You should also be aware that virtual machines have some limitations e.g. when it comes to supporting graphic cards, so you'll want to make sure that whatever you are developing does not depend on a feature that is not available on your virtual machine.
I have been using VMWare as my primary development environment for a couple of years now.
Some Environments I typically switch between
Windows Forms / WPF Development (XP, .Net 3.5)
Ruby Development - did one website in ruby (XP, Instant Rails)
ASP.net 3.5 - for playing with new stuff (XP, .net 3.5, IIS, SQL Server)
ASP.net 2.0 - sometime places are still stuck on 2.0 (XP, .net 2.0, IIS, SQL Server 2005)
Some things I have learned
Use XP not Vista. When you are running multiple vms, the extra fluff is really noticeable
Give each VM around 1gb (sometimes as little as 512MB). You want to give them the least possible that prevents swapping for what you regularly do.
Keep a snapshot of the base install for your stack, before doing any development.
Quad Core + 8gb ram is cheap now. I typically have several vms running while developing. If you have less ram or cores, keep the number of running vms down.
Turn off software mouse cursors and run in full screen mode (most people don't realize it's a vm until I show them).
Benifits
I can be up in running in any of my major stack in 5 minutes on any pc I own.
I can move my entire development environment onto a laptop or another pc in a pinch.
I can keep separate dev stacks around easily that can otherwise step on eachothers toes.
Hard Drives:
Your first bottleneck is going to be RAM, but RAM is cheap now so there is no reason not to have 8-16gb. Your next major bottleneck is hard drives in a major way. I now try to have one hard disk per active virtual machine (used in a desktop workload, not server stuff). Raid setups can help tremendously and SSD's completely solve the problem if you can afford it.
I have been using VMware since 2002. My first use was to create a development environment in a guest VM, then replicate it for my teammates. When it came time for a hardware upgrade, I switched to my new desktop in about an hour (install VMware, copy VM).
I use VMware constantly, on desktops, on notebooks, and on servers. I use them for development, testing, and production. I have tried playing games inside a VM, but most games just don't cut it (and VMware says so, but I tried anyway). However, the newest VMware Workstation versions just might play a few games okay.
I particularly like VMware on my laptop, and I really like to use it for Ubuntu Linux. I find it best so far to use Windows (2000 Pro SP4 or XP) for the host OS because of the superior device drivers. However, I prefer to actually work on Ubuntu for my development, but that works great in a VM. I have installed Ubuntu directly on various hardware, but so far have not been satisfied enough to leave it for more than a few months before reverting to Windows again.
However, my laptop does run Ubuntu nicely, and I only reverted back to Windows XP because I want to load an eSATA card that will give me high-performance access to an external hard drive to...run VMs!!! I have not yet done that install yet due to distractions at work.
Speaking of work...I have "acquired" three old orphaned desktops that I am turning into VM hosts. I am about to attempt loading VMware ESXi, although I just finished loading two with Windows 2000 Pro SP4 and VMware Server 1.0.8. I manage a development team, and I am primarily targeting these VMs for development environments since our company cripples our primary desktops/laptops too much for real work.
Drink the Koolaid!!! VMware is awesome, and there are lots of other good VM options as well!
Best wishes.
EDIT: more goodies...
In particular, check out VMware ESXi, VMware Server, and Ubuntu JeOS. Yummy stuff!!!
No, but use it as test machine when I am testing web pages in IE.
Yes, I use VMWare workstation 6.5 and ESX 3.0 for my servers. Works like a charm. No noticeable performance penalties.
I have used VM's for development in the past, and I use them a lot for testing of various sorts. Using a VM for development works quite well, the only thing I would caution you on is that some external hard drives are quite slow, which may give you a problem, but fast drives work well.
I'm using Ubuntu as my linux development environment on top of Vista 64.
The machine has a 10k drive, lots of fast memory, and a dual core CPU, so it runs very well. I ended up with this hodge-podge because, at the time, I built a machine ubuntu wouldn't run on, and going VM was the easiest way to deal with that. I've found it's quite convenient, though, so even though ubuntu would likely be fine with the machine now, I'm staying with the VM.
Makes it trivial to fully back up my dev environment and take it offsite or distribute it as well (ie, GPL compliance is a cinch - no need to work with people trying to get a dev environment set up for them and deal with the quirks of versions of software, etc)
Needed for embedded ARM linux development.
-Adam
I use VMWare Fusion on a Mac to run Windows Server 2003, Visual Studio and all my IIS requirements.
I have no problems, but my Macbook pro does have 4GB of RAM with 2GB allocated to WMVare when it's running.
My primary Windows development environment is a native Vista x64. For the graphics card reasons mentioned above and (possibly unfounded) concerns about the VM environment and debugging, I decided I still wanted a native environment for my .Net and Windows Win32/64 development. I'm working a lot more in GUI development at present.
However, one very important kind of development I've used VM's for in the past is Python-based programs, whether pure Python with wxWindows or embedded Python called from C++. Using a VM allowed me to control the Python environment and work against different installs that were guaranteed to match the deployment environment. I'd suggest this for anyone using a dynamic language where you tend to install lots of external packages and it's hard to cleanly revert to earlier versions.
Another thing to consider is using a VM as your target with a remote debugging nub. Many REALbasic developers on Macintosh do this for their Windows testing (REALbasic has fabulous cross-platform debugging) but I've also used it in the past for Visual Studio.
Snapshots are handy. You can use multiple VM's for testing on different OS's.
Our engineers run a Windows VM on VMWare esx. We probably have 12 Windows VM's running on a single Dell Poweredge(Yes, it's beefy, but still). They almost seem snappier over the network then my local install of XP on a Core2 Duo!
And on a local machine, as long as you have the RAM for it, it can still perform very well. A stripped down VM of XP(something like TinyXP) performs as well as my 6 month old native install!
Regarding portability; assuming the same architecture (and operating system), then the virtual machine should run fine on both physical computers. Provided the hardware configuration of the VM doesn't change too much, you shouldn't need to re-activate Windows within the VM.
I run Ubuntu as my primary OS, and then use a Windows 2003 virtual machine (using VirtualBox) to develop in Windows. Mainly use it for Visual Studio 2008 web development. Been doing so at home for 3 years, but now in the process of trying it out at work.
Works fine, even with ReSharper and a solution of around 50 projects. It's not quite as fast as if I run it all via Windows directly, but having one nicely setup virtual machine means I can share it with other developers, plus easily switch between vms (we're looking at trying out Windows Server 2008).
Also means I can use Windows but then let Linux take care of things like IM, Firefox, Music (of course), Indexing (tracker), FTP, etc... Plus I have the terminal at my disposal (grep, ssh you name it).
We tried this with ghost images of Windows but found that as people have different hardware the image wouldn't always work.
I run Windows 7 64bit on my lappy with 3 GB Ram (Yes it's low).
I find running my dev environment on VM's a pain in the butt really.
When I have 5 IDE's open, SQL Server 2008, NotePad++, OxyGenXML editor, and Chrome/IE/FireFox all open in my VM, then my main machine has Outlook, OneNote, and a few other programs running it turns to crap.
Using multiple monitors isn't easy with VM's either, especially if you take your laptop away lots ofo times, then hook it back up. the resync is time consuming.
My other co-workers have the same issues even with 5-6GB ram.
If I added up all the time wasted waiting for my the extra processing the VM Causes, it would be more than what it would be if I had to re-do my computer from scratch - which takes under 8 hours.
This depends on situation really. Most horrible environments I've encountered in corporate world is Windows laptop + Linux virtual environment (where the laptop itself isn't top of the breed, I dislike having laptop as a development machine in the first place). I'm mostly a java developer, and like to write much unit tests, and usually with this combination (I'm really not wanting to use one, but well, I'm just lazy to complain all that much) running unit tests takes hell of a lot time.
Of course this depends on types of test, but in this case my guess is that disk I/O is just slowing things down. I just like to compile and test much, so that's the main reason I'm in favor of native environments: speed. Even a little notch on that sometimes feels too much. Sorry for not answering on a bit broader scope and very subjectively.
I use Parallels on a Mac - have no issues.
At work we use VMs for most of our test environments - they work very well
I used to use a virtual machine as just a sandbox to keep unruly applications from doing unruly things. (Sandboxie is an awesome program for this) but I always ended up forgetting to keep them contained and would just reinstall windows every now and then, much easier than constant maintenance really.
As for a virtual machine you're screwed on the hardware you have available as your bios and hardware are all emuated. Makes for writing something low level practically impossible in certain circumstances. However when using a hosted server on a virtual machine through a remote desktop connection... Absolutely wonderful, so easy! I can be in and out in a couple clicks, so I guess that's the number one virtualization I use.
VMware to debug device and filter drivers. VirtualBox is nice and fast for occasional Ubuntu, and an XP holding IE6, FF2, Chrome, Opera, & Safari for testing and installs of apps i don't trust.
I have a Windows 2008 Hyper-V machine that runs a couple of my development environments. It's not slow at all (that I can notice). Some of my environments are not virtualized though. Usually if the setup requires something where rollback is difficult, then I'll use a virtual machine, if not, I'll just use a desktop.
Keep in mind licensing costs. If you're going to virtualize a copy of windows server, you're going to need a license for windows server as well. It's probably cheaper for you to upgrade your Vista Home Basic to a version that runs IIS (although my suggestion would be to run Win 7 beta since it's free and then upgrade to the final version of win7 when it's ready)
Now that it's been almost a year, are you guys still using virtual machines as your development environments? I used to, but have stopped since performance is getting bad. Just wondering.

best way to get started in setting up Mono for ASP.NET on Mac

I have recently gained access to a Mac. I am wondering if anyone has any tips/advice for setting up Mono on a mac for development and execution of ASP.NET? Most resources point to Linux implementations which tend to differ a lot from the way Mac's do things. Any tips or advice would be helpful
To launch the development ASP.NET server, just open a terminal window and run the "xsp2" command from the Mono installation.
The only thing that is missing from the Mono distribution on the Mac compared to Linux is the Apache module, that one you will have to compile yourself if you want to deploy your application in production on OSX.
Since I first worked with mono osx, they've added Cocoa# and ObjC#, but the ASP.NET core was pretty solid (about 3 years ago). You can in fact write web applications according to the Onion book, and port 'em to IIS with little or no difficulty.
Honestly if you want to run ASP.NET you probably don't want to struggle with getting it to run via mono on MacOS. Intel-based Macintoshes can boot Windows, and Apple provides Windows drivers for their various devices as part of Boot Camp.
Alternately you can buy Parallels or VMWare Fusion for less than $100. I use VMWare Fusion. There is also a Mac version of VirtualBox from Sun which is free, though I have never used it.
For MacOS development (not .Net) you really should try Apple's XCode. It is free. It primarily focuses on Objective C though Python, Ruby, and other languages can be used to develop native Mac applications.
Edit 9/22: I'm sorry neither you nor Kev found this a useful answer. Let me try to expand a bit: the Macintosh has a long history of software being ported in from Windows, applying a theme to make the GUI elements look Mac-like but otherwise being content with a minimum cost port. Such software never behaves like a real Mac application: it doesn't respond to AppleEvents, it won't be scriptable, it handles only the cross-platform clipboard formats, etc.
You're free to do whatever you want, including running ASP.NET using mono. If its for your personal use, knock yourself out. However if you're considering it as a way to offer your web-enabled product in a Mac version, I urge you to reconsider. The Mac market has for the most part rejected such products. You'll get some sales, but nothing like you would get for an app which behaves like a native Mac application.
Now, let the down-voting continue.
You can also run ASP.NET via NGINX - easy to install using:
sudo brew install nginx
See installation tutorial: http://www.robertmulley.com/tutorial/nginx-install-and-setup-mac-os-x-mavericks/
See configuration steps for your app: http://www.mono-project.com/docs/web/fastcgi/nginx/
(Note: see my pull request as the fastcgi-mono-server4 should now be used - https://github.com/mono/website/pull/82/files)
Why use Mono on a Mac? Run Parallels, VMWare, or Boot Camp.

Resources