Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ntvdm
Message
De
18/01/2013 15:32:12
 
 
À
18/01/2013 12:04:21
Information générale
Forum:
Hardware
Catégorie:
Autre
Titre:
Re: Ntvdm
Divers
Thread ID:
01563281
Message ID:
01563320
Vues:
60
>Hi
>
>I don't know where to post this so I chose this forum
>
>Situation:
>
>Windows 7 32 bits Starter
>
>No Windows updates.
>
>It has to execute a Clipper application. Good. Ok.
>
>Now I want to change system and run my new programa in VFP but monitor or video card don't support 1024x768
>
>Technician installs manufacturer drivers and gets 1280x720 resolution.
>
>Good. My program executes fine.
>
>But... It's still necesary to run Clipper (DOS)
>
>It doesn't work. NTVDM executes multiple times as CONHOST but program doesn't run.
>
>I found hundred of questions about this in millions of forums but most of them only explain what NTVDM process is. I want to know how do I do for running DOS window again!

I didn't develop with Clipper but years ago I had to make a Clipper app work on a network, so I'll try to remember some of the things I had to do. If anyone knows Clipper and something I say is dead wrong feel free to chime in < g >

What I remember about Clipper is:

- like VFP, you create an .EXE ( say, MyClipper.EXE) and run it with Clipper runtime
- some DOS environment variables need to be set before the EXE is run
- you may need to call the Clipper EXE with parameters

I seem to recall the best way to do this is with a batch file ( .bat or .cmd ). The batch file would look something like this:
REM ClipperApp.BAT/ClipperApp.CMD
@ECHO OFF
set ClipperVariable1=Something1
set ClipperVariable2=Something2
SomePath\MyClipper.EXE Parameter1 Parameter2 ...
Now, you need some way to run that batch file. You do that using one of two available "DOS" shells:

- CMD.EXE, which is the default command processor on Windows NT and later
- COMMAND.COM, the old command processor from DOS up to Windows ME. This is still available up to Windows 7 (at least), included for backward compatibility

For testing, you can manually start up either a CMD.EXE window or a COMMAND.COM window from the Windows Start menu ( type cmd.exe or command.com in the "Search programs and files" box ), then within that window run your batch file. Note that COMMAND.COM will only accept a .BAT extension, CMD.EXE will accept either .BAT or .CMD.

Once you get one or the other of those shells to run your batch file and Clipper app properly, you will probably want to create a desktop shortcut for it. The command you will want to run within the shortcut will be either:
* For CMD.EXE:
cmd.exe /c SomePath\clipperapp.cmd parameter1 parameter2 ...

* For COMMAND.COM:
command.com /c SomePath\clipperapp.bat parameter1 parameter2 ...
I find for getting it to work it's generally best to run it in a window ( not full screen ). If you can get it running properly in a window, you can usually toggle between window and full screen with Alt-Enter.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform