billyball Posted February 9, 2008 Share Posted February 9, 2008 I have a Microsoft V4.0 Cobol compiler with which I write code to run my small business with. This software dates from 1990, but no excuses needed - it fulfils our needs! My problem is that having moved on from a DOS environment, it has been in turn installed on Windows 95, then Windows 98, now Windows XP. It worked fine on the first three, i.e. compiled successfully and trouble free from the source codes fed to it, but in its current XP environment, is driving me mad. I am not an expert on computers, and have learned more or less only what I have needed to keep operational. I cannot upgrade to a "new" Cobol, because there ain't a Microsoft one, and all other proprietory versions cost a fortune. Also all current versions of Windows should run older software, I believe.All work on Cobol is done in a cmd window. The correct environment is then set up via a batch file. I usually write and amend code using the Programmers Work Bench utility, which fires up without a problem. Executable files can be created from within the PWB; sometimes the process works, other times not. The failures present the dreaded error message - see below. Executables can also be created using the "Cobol" command, with or without filenames etc. Currently attempts to load "Cobol" also result in the dreaded error message. The really annoying thing is that sometimes using both the PWB and Cobol is trouble-free, other times resulting in failure. Failure sometimes results in me messing about with PWB options. Sometimes this works, other times - like now - no change. My setup is obviously hit-and-miss, but where?The dreaded error message is "The Application Program Interface (API) entered will only work in Microsoft Operating System/2 mode". What do I need to do to pacify the beast? All suggestions appreciated. Link to comment Share on other sites More sharing options...
Glenn9999 Posted February 9, 2008 Share Posted February 9, 2008 Have you tried this on an install of DosBox, or an install of DOS through a Virtual Environment product, such as VirtualPC? Link to comment Share on other sites More sharing options...
billyball Posted February 9, 2008 Author Share Posted February 9, 2008 Never even heard of Dosbox until your post! Have downloaded and fiddled with same. Have succeeded in getting ancient Cobol to compile. Wow!! Plenty of bugs to find, no doubt - BUT!! - hope has returned!! Many thanks to Glen9999 for your input. Will post again after further tinkering. Link to comment Share on other sites More sharing options...
jaclaz Posted February 9, 2008 Share Posted February 9, 2008 Should not - by any chance - DOSBOX work properly, you can also run good ol' DOS in a "full" VM, like the freeware QEMU (+Qemu manager) or Virtualbox:http://www.davereyn.co.uk/http://www.virtualbox.org/jaclaz Link to comment Share on other sites More sharing options...
Ludwig Von Cookie Koopa Posted February 10, 2008 Share Posted February 10, 2008 That program you are using has diffrent interger values then a program using etc that 2000/NT/XP uses.I have a Microsoft V4.0 Cobol compilerWell you could also make a request to Microsoft on what is the alternative to this complier since you have been using this one so long. In my terms I would probably search for a complier that dates back to Windows NT since XP/2000 is practically NT but with Home support.Speaking of which what business are you into? Link to comment Share on other sites More sharing options...
jaclaz Posted February 10, 2008 Share Posted February 10, 2008 That program you are using has diffrent interger values then a program using etc that 2000/NT/XP uses.Care to expand on that?As far as I know integers: 0, 1, 2, 3, 4, etc. are the same in ANY OS, any Earth lamguage and ost probably (read definitely) on any othe planet as well.... jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now