Re-compiling a DOS executable to run on Windows? - windows

Before I ask my question, I'd just like to state that I'm new to this site, and this is my first post, so don't beat me up too much! ;)
Okay, so my problem is this: I want to take an already made DOS executable and re-compile (is that a word?) it to run on modern Windows systems instead of giving me the "this app can't run on your PC" dialog.
Now, please do not say "just use DOSBox." There is a specific reason I want to do this the way I said it.
If you do know a way that this would be possible, then please notify me!
Thank you very much.

Related

What do I have to do next to get my g++ compiled executable to run on other windows machines?

So, I've been looking and looking and looking. It's odd to me that is not something programmers like to readily answer. I don't understand why. What are they afraid of? Is it a pride thing, that we should somehow be able to guess at it ourselves, like pull it out of the dark somehow like they did at one time maybe? I don't get it.
I see people asking this question all over the internet, and every single time, it never fails, nobody actually answers the question. They just respond by asking things like "what's the error" all of the time.
What do you think the error is? It's that the person hasn't yet done the extra steps to make their executable run on other windows machines.
My issue:
I'm running g++ from the command prompt. I installed cygwin and mingw, and then I added the bin folder of the one I want to use to my path variable in windows. I do NOT include both bin folders. Only the one the that I am using at the time. I've been alternating between the two in an effort to figure out how I'm supposed to make my small simple C++ program run on another windows machine. One of the forums, some post said that he uses mingw, presumably to avoid the problem of needing cygwin dll's . . . or something . . . I didn't quite understand.
Quick intro:
The program is simply a small program created from another similar program in a textbook to make the computer guess a number I have picked 1 through 100. I wanted to compile, and then put that executable on my sister or mom's computer and let them play so they can say, "How cool, you created that?"
I mean, at some point, I want to actually learn how to do this. Maybe I'm just a moron, but it just seems natural to me that at some point people want their executables to work on other machines. Seems like a simple question that every programmer must have at one point wondered about, but nobody seems to realize in all of these people asking this question that they simply need to know what the next step is.
So of course, I'm running into the issue that they don't have the dll's that are provided by mingw and cygwin. Naturally, this is because most Windows machines are not going to have those dll's.
So, what do I need to do to make my executable capable of running on other windows machines? Right now, I'm just talking about Windows 10. I use Windows 10 pro, latest build as of June 2018, and they use Windows 10 Home, probably the latest build since they do automatic updates. (Not sure if the normally forced install of the latest build has occurred, but I think it has.)
So, to anyone who read that and answers, thank you.

Ruby Script to Runnable File

I'm a programming newb trying to send a Ruby script/mini-game thing to his teacher that can be ran by doubleclick. JRuby seems like a possible solution, as does Warbler, but I can't seem to figure either of those out. It doesn't have to be a specific filetype if it can be run without the terminal, just by clicking on it. Another possible solution is creating a shell script that runs the file as shown here, but I think that only works if you tell the computer running the script that it can be doubleclicked. It may even be possible to run by doing something in the Ruby file itself, but I am too inexperienced to know.
Thanks in advance for your answers!
When you say that only works if you tell the computer running the script that it can be doubleclicked, that isn't entirely true. If you email the file by itself, it might have its permissions removed, but if you package it up into a zip, then you're teacher shouldn't need to run chmod again.
Anyway, I'm not sure about the windows support for this approach (Ruby programmers tend to use Unix systems like OSX or Linux).
To make a cross platform executable, take a look at this question, which links to some packages such as "Ruby Ship"

openerp gtk client 6.1 - form tab label

In the new openERP gtk client 6.1, a new feature is causing confusing at times. the tab label of a certain record in form view is now as such:
Object: (Id, Name)
instead of the good 'ol
Object
Sometimes it just adds the name of the record and not both name and id, depends on the object's name whether it's a many2one field or not.
Ive been trying to pinpoint where in the new gtk client code is this added but i cant find it. i think it's in /bin/widget/view/form_gtk but im not sure.
another thing, once you good people tell me where the new code is added it's easy to modify the client on linux based OS, but how about patching the client on windows instead of building a new exe installer? i would very much appreciate it if someone could share some insight about this matter. I've already seen this Create exe open erp client GTK on launchpad, but when i followed it step by step on XP, i encountered errors. i think it's outdated. Thanks in advance
In the project lp:openerp-tools you will find the solution. There is the official script with the .exe is created.
BTW, you dont need to recreate the .exe, you can run python on windows as an script (exactly as in Linux does, I don give support for windows never, but i know in end clients it is frequent problem.
Regards, and i hope it can help you.
Noup..
In openerp-tools where the tools to build the .exe, not the tag problem, this is really easy if you know a little of python + gtk.
But BTW it should be cool if you post the solution you found for future people that need something like you...
Regards.

Printing from a vb.net program using activereports stops working

and sorry for not exactly a programming question, but if anyone can help i thought this is the place after googling around and finding nothing.
I have to cope with a crappy (presumably vb6) .net application for printing all sorts of reports. After installing it prints Ok, but if i print using another program, this one stops printing (halts on a modal blocks telling me it is 'forming a report').
From what i gathered with exploring the .exe and the hopeless support (apparently no-one else has this problem, they cannot understand what's wrong), it uses actrpt2.dll which seems to something called ActiveReports2. If i register this dll with regsvr32 the program WILL print, and after printing from any other program i need to register the dll again before printing works on this one.
So i made a quick .bat hack for it.. But the programmer in me cannot understand why this stuff with the dll keeps happening (well ok, it's windows...) - if anyone knows what is happening, and how could it be fixed, please tell me, i would appreciate it :)
Probably your "another program" is overwriting actrpt2.dll registration, for instance by registering an older version of ActiveReports which it stores next to its exe file.
Easiest "fix" would be to run both apps (or just "another program") with non-admin rights so that it can not register (or corrupt) COM components at all.

Program to show a "toast" notification popup from the Windows command line?

I have a monitoring script that I'd like to pop up a "toast window" when it detects that something happens. Is there a simple executable available that I can just run to do this? I know it's relatively easy to write such a thing, but I'd rather just use an existing program if there's one available.
The GrowlNotify software has a Windows version here.
QuickMacros is also capable of doing this but it is $40....it does however cook your breakfast as well... ;)
There's also Snarl out there.
Been using it for a while and it seems to be a bit more developed than Growl , last time i've checked.

Resources