-----Original Message----- From: Eike Lange [SMTP:eike.lange@uni-essen.de] Sent: Montag, 27. Januar 2003 15:44 To: grx@gnu.de Subject: GRX modifies ParamCount, and ParamStr
Hi Folks!
I'm using GRX with GNU-Pascal. Programs written under Win32 (mingw32) which are started from a directory having spaces in the directory name do not work properly.
For example:
c:\own files\my own files\project.exe
Setting the title with GrSetWindowtitle (ParamStr (0)) result in a title named "C:\own".
Trying this out with GNU/Linux results in the correct name (including all whitespaces).
Can anyone help me?
Eike
Well, not (yet) really. The problem is in "vd_win32.c" where GRXLocalMain() builds the command line. Its approach is to split the command line at spaces, which is not sufficient. If you are brave at heart you may want to apply the patches I posted the other day *AND* change in the Pascal library whatever is necessary to eliminate "GRXMain" (and just call the equivalent of main(), what ever that is) to see if it fixes the error (it should). If you can wait a bit more I hope to have a slightly more stable version of the patches ready by this afternoon.
Ciao Tom