request for help

Prof Abimbola Olowofoyeku African_Chief at bigfoot.com
Sat Sep 1 09:16:05 CEST 2001


On 31 Aug 01, at 23:24, Frank Heckenbach wrote:

> Prof. A Olowofoyeku (The African Chief) wrote:
[...]
> > 
> > How do you use the pointer returned by GetEnvironmentStrings? You walk
> > through it (i.e., jumping from one #0 to the next, etc) until you find
> > the variable that you want. It is ugly - but like I said, it is pretty
> > easy to emulate. Now, why someone would want to use this ugly M$ stuff
> > instead of the more sensible ones in the Dos unit beats me.
> 
> Me too. Internally, GPC stores its environment differently (schema
> array of CStrings), but it wouldn't be too hard to write a function that
> creates such a structure on demand. Should I do that (in the System
> unit)?

Like I said, putting them in any of the standard units (unless you 
change the names slightly) will create problems for those who use the 
real WinAPI stuff. In Delphi, you have to USE the Windows unit to get 
access to those functions. I have a functional Windows unit for the 
WinAPI imports, and there will be name clashes. So, until GPC gets 
qualified identifiers, I suggest you put them in a totally new Delphi 
compat unit so that nothing else is affected.

Best regards, The Chief
--------
Prof. Abimbola A. Olowofoyeku (The African Chief) 
Author of: Chief's Installer Pro for Win32
  http://www.bigfoot.com/~African_Chief/chief32.htm
Email: African_Chief at bigfoot.com




More information about the Gpc mailing list