Board index » delphi » VersionInfo - why doesn't this code work!?
th...@my-deja.com
![]() Delphi Developer |
Sun, 21 Apr 2002 03:00:00 GMT
VersionInfo - why doesn't this code work!?
I have been playing round with the following function for several days
now and I cannot get it to work. I have tried several versions of what is essentially the same code - casting PChars to pointers, using strings instead of PChars, building up passed values into temporary variables so I can check the values etc. None of them work, they all get to the VerQueryValue and the call does not succeed. If I look at the contents of pVersionInfo it seems to contain rubbish. Anyone shed some light on the subject? I am using D4 on NT4 SP4. I expect to return a string containing the version number etc. if I call something like label1.caption := strVersionInfo(3); But it doesn't work! I get a different access error on my computer at function strVersionInfo(iStringNo: Integer): String; begin Trevor Sent via Deja.com http://www.deja.com/ |