Frequently Asked Questions on Windows
Q: How to resolve "Parameter format not correct" error? It happens when you try to run MS-DOS command in Unix syntax. For example, Q: How to resolve "Parameter format not correct" error? It happens when you try to run MS-DOS command in Unix syntax. For example,
C:/> dir /temp/*exe
Parameter format not correct - "emp".
C:/>
One can run the command using
C:/> dir \temp\*.exeThe similar error you might get is "The syntax of the command is incorrect" or "Invalid switch - /temp", When you run the command C:/> type /Ch/bin/dirs.chYou can fix it by running: C:/> type \Ch\bin\dirs.ch Q: How to reslove "Out of environment space" error for commands in Ch for Windows 95/98/Me?
Q: How to run Windows command in Ch shell without being blocked? Like in Unix, a command in Windows can be executed in the background by appending "&" at the end of the command. For example,
c:/> notepad &
Q:How to write programs for serial port processing? Ch supports all Windows serial port I/0 functions listed in CHHOME/include/windows/conio.h, you can find more information at Microsoft developer network web site http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resources.asp . The Windows APIs used for serial port communication are listed below. They are all supported in Ch. CreateFile() SetupComm() GetCommState() CommState() BuildCommDCB() SetCommTimeouts() WriteFile() ReadFile()The sample files can be found at http://groups.yahoo.com/group/ch_language/files/SerialDemo/ and Ch Bhand package http://chbhand.sourceforge.net Q: How to call functions in a Windows DLL library from Ch?
Ch cannot use LoadLibrary() and
GetProcAdr() with .DLL file to call functions in a DLL library directly.
Special handling is required. It doesn't require to modify
your C/C++ source code.
Q: How to catch any keys in Windows? You can use function kbhit(). Here is the sample code. Q: How to generate plotting using a static SIGL library? To link a static SIGL library, in the files Q: How to zoom back to the original plotting in Ch Pro or SIGL after zooming out? You can zoom in or zomm out by holding and dragging with the right mouse button. To zoom in, move the mouse while holding down the right mouse button, It will report the upper left and lower right corners of the zoom. While the mouse is focused on the plot, type 'p' will go back the previous zoom stack, and type 'n' will to the next zoom stack. You can pay attention to 'a' and 'u' keys. |