#68180 - 2002-07-14 09:48 PM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Anonymous
Anonymous
Unregistered
|
Jens There is a typo in both the original Import2 posting and in the Zip file The Import2\Subdirectory1 "Binary1" entry contains this string ...,726f,... (missing ',') Not sure what WSH functions people are using... [ 14 July 2002, 21:48: Message edited by: AJH ]
|
Top
|
|
|
|
#68181 - 2002-07-14 10:00 PM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I thought the missing comma was a test to find BAD data and ignore it like Regedit does. The tests do not expect to find that Value.
|
Top
|
|
|
|
#68183 - 2002-07-14 11:08 PM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Yeah, I "fixed" it too at first, but that particular value reported an error and in my zombie state late last night it seemed as though it was not suppose to exist according to the test code. So I recoded my script to check for missing commas and discard the line.
Somebody let me know if it was a typo. Now that I am again awake, I might be able to collate the tasks at hand. [ 14 July 2002, 23:09: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#68187 - 2002-07-15 12:35 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
|
Folks:
I just uploaded a new .ZIP file with the test script and the .REG files. Get it here: http://people.bu.edu/jenmeyer/kixtart/golf.zip
And yes, there is a faulty dataset in one of the .REG files, and I put this in deliberately
There doesn't need to be UNICODE support in this routine, just support for REGEDIT4 .REG files.
With regards to return codes, the only return code is the one for ImportRegFile(), there shouldn't be any screen output inside the UDF.
I alos have put a Windows 2000 UNICODE file into the ZIP package, which is NOT part of the test script.
The test script basically checks whether the keys/values/types are correct, and whether the appropriate keys/values have been deleted.
BTW, my count is currently 1813 without shortened variables and using pure KiXtart (not even a call to an outside object) but including some error checking for correct file type and syntax.
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
#68188 - 2002-07-15 12:41 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
|
quote: when we must replace the regedit /s, do we also need to have setconsole("hide") in our function?
No, you don't need that. I was imagining a simple UDF that runs the .REG files fed to it and returns an error code inducation whether the file was imported correctlt or not (e.g. file not found). Since REGEDIT /S doesn't tell you if some imports haven't been doen because of syntax error, it is not necessary for the UDF to do this either.
Finally, I didn't put all types of registry entries into the test .REG files, just the most important ones. So, a UDF posted into the UDF section might need to contain those cases, too, but for this exercise, it is not necessary.
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
#68193 - 2002-07-15 01:54 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I didn't sleep last night. Been at this forever.
I am now exploring some alternatives. I haven't checked everything and I don't if everything works correctly yet, but I can correctly enum everything. It's interesting at (KixGolf score = 909).
|
Top
|
|
|
|
#68195 - 2002-07-15 02:00 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Jens, was I correct in NOT correcting your faulting data set and not loading the value? Or should we repair it and load it?
|
Top
|
|
|
|
#68198 - 2002-07-15 05:22 AM
Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Did turn on counting by putting a ";!" at the beginning of your function?
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 539 anonymous users online.
|
|
|