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-11T14:50:34+00:00

    Yes and No.

    I am maintaining a bunch of  programs made and collected  within 30 years. Some of them by my self..

    If you have been started to the programming by old wordstar thru its diamond navigation keys..You never leave the old Qedit.

    Notepad, word, wordpad what so ever, cannot get even close to that speed of editting of Qedit.

    Anyway, the question is ,not exactly whether 16 bit programs run or not.

     Windows 7, looses its keyboard settings, those we set in the environments during setup,  when runs into Ntvdm.

     XP was NOT, though has got other problems.. 

    Am I misusing something with  Win7 ?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2010-06-11T14:57:48+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

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2010-06-11T18:18:29+00:00

    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 ?

     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-11T18:30:49+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

    0 comments No comments