Windows 7 and 16 bit programs' problems.

Anonymous
2010-06-11T13:28:51+00:00

Windows 7, looses country code page and keyboard definition, when a 16 bit program run. (like foxpro.exe , Qedit  etc. ) is there any solution ?

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2010-06-13T08:46:01+00:00

    Dear  Itknowledge24 http://social.answers.microsoft.com/Profile/en-US/?user=ITknowledge24&referrer=http%3a%2f%2fsocial.answers.microsoft.com%2fForums%2fen-US%2fw7programs%2fthread%2f4ef98b5f-c613-4d90-8133-d10399383f61%2f&rh=WuWWa1VFlL6fgoKG6lk10jbGhp6M33ww4Rj8xTN6vJ0%3d&sp=forums,

    I run Windows 7 32 bit English, but use a Turkish Key board.

    Windows 7 has no problem of swiching between the keyboard layouts.

    NTVDM, do not inherit the keyboard code from windows 7, that had been set.

    It does get its keyboard setting, as old DOS does, thru Config.sys ("nt"  in xp and 7), and Autoexec.bat ("nt")

    When you showed the directories of NTVDM, it was very clear to me that  we have to add only the necessary lines to config and autoexec.

    That was it.

    For anyone who may need,

    here is the config.nt, and autoexec.nt modifications (for turkish keyboard:

    config.nt;

    dos=high, umb

    device=%SystemRoot%\system32\himem.sys

    COUNTRY=090,857, %SystemRoot%\system32\COUNTRY.SYS

    files=99

    autoexec.nt;

    %SystemRoot%\system32\KB16 TR,857, %SystemRoot%\system32\KEYBOARD.SYS

    For Danish;

    DK,850

    For Belgium;

    BE,850

    Thank you for you and others who have been contributed to the solution.

    Best Regards.

    2 people found this answer helpful.
    0 comments No comments

17 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-06-11T18:32:55+00:00

    Try to change the compatibility mode on the shortcut to Windows 95.

    Tell me what is happening, keep also in mind that 16-bit programs can

    have bad effects on more modern Windows environments.


    Itknowledge24.com

    Compatibility changes are not putting back the keyboard settings at all..

    I was a foxpro developer with qedit being the editor. Those foxpro prgs are running with additions together with  VFP9 without any hassle. But, maintaining them without a qood editor is the difficulty. Turkish-q keyboard is  my setting and, NTVDM changes all keys  to different characters. Press "*", you get "_", pres "-",  u  get "=" .

    Hopeless situation..

    0 comments No comments
  2. Anonymous
    2010-06-11T18:36:55+00:00

    Try to change the compatibility mode on the shortcut to Windows 95.

    Tell me what is happening, keep also in mind that 16-bit programs can

    have bad effects on more modern Windows environments.


    Itknowledge24.com

    Compatibility changes are not putting back the keyboard settings at all..

    I was a foxpro developer with qedit being the editor. Those foxpro prgs are running with additions together with  VFP9 without any hassle. But, maintaining them without a qood editor is the difficulty. Turkish-q keyboard is  my setting and, NTVDM changes all keys  to different characters. Press "*", you get "_", pres "-",  u  get "=" .

    Hopeless situation..

     

     

    hmm? Maybe the 16-bit environment only supports English keyboard!


    Itknowledge24.com

    0 comments No comments
  3. Anonymous
    2010-06-11T20:00:45+00:00

    The autoexec.bat file in the root is not used and is there for certain legacy purposes.  It is ignored by Windows.

    You need an entry in config.nt re. country.sys and some other changes to your coding. I'm short on time at this moment this moment and will advise further about that a little later.    I don't know for sure if this will work in Windows 7, but it may if coded correctly.

    Don't worry about that link.  I don't know why it's a problem - I'm unable to re-access it also.  It just had some general explanatory info. the the purpose of the 2 .nt files I already mentioned.

    BTW, though I gave it up long ago, I remember QEdit fondly.  I wrote a lot of C and Assembly with it back in the day.  I currently use PSPad and it supports some of the old Wordstar commands.

    "nguntay" wrote in message news:*** Email address is removed for privacy *** .com...

    I assume you're running Windows 7 32 bit if you're able to run a 16 bit program at all.   In the Windows\System32 folder you should see config.nt and autoexec.nt.  (These will not be present in 64 bit versions.)  These are the equivalent of config.sys and autoexec.bat and items entered there, for example to set the code page, will be applied to 16 bit sessions.  You can set environment variables in System \ Advanced.

    You might also be interesting in some info at http://searchsystemschannel.techtarget.com/generic/0 ,295582,sid99_gci1374262,00.html

    If you have Win 7 Professional or Ultimate you might also consider installing Virtual XP and running the programs in that environment instead.  The same configuration info applies to XP but compatibility may be better for some 16 bit programs.

    "nguntay" wrote in message news:Email removed for privacy .com...

    Windows 7, looses country code page and keyboard definition, when a 16 bit program run. (like foxpro.exe , Qedit  etc. ) is there any solution ?

    </BLO CKQUOTE>  http://searchsystemschannel.techtarget.com/generic/0 ,295582,sid99\_gci1374262,00.html

    no hope..

    Forbidden You don't have permission to access /generic/0,295582,sid99 _gci1374262,00.html on this server.

     


    quote

    Mode con codepage prepare=((857) c:\windows\command\ega2.cpi)

    Keyb tr,, c:\windows\command\keybrd2.sys /id:179

    unquote

    when these two  lines added to "autoexec.nt",  total desktop is suffered  as expected.

    removing first line, leaving the keyb command is still useless. Keyboard is gone in NTVDM.

    Windows 7 has a autoexec.bat in c:\  with a "REM Dummy file for NTVDM" line in it.

     Any meaning ?

     

    0 comments No comments
  4. Anonymous
    2010-06-11T20:11:19+00:00

    First off I think the DOS based program (the actual 16-bit)

    program needs to be executed as administrator to gain

    permission so it can communicate through port 8080.

    I found it in this path:

    C:\Windows\winsxs\x86_microsoft-windows-ntvdm-system32_31bf3856ad364e35_6.1.7600.16385_none_fde3cf3dd3e16d0d\autoexec.bat

    Not sure of the "REM Dummy file for NTVDM", only

    the Microsoft employee which wrote that knows

    why?

    AFAIK, autoexec.bat was used in older Windows versions

    and executed of course these days none of Windows Vista

    or Windows 7 uses it anymore, AFAIK.


    Itknowledge24.com

    I think , every good old DOS (!) thing is there.. But  I,  only could make changes to autoexec.nt in that directory..No way for permission..

    0 comments No comments