[BLACKBOX] AW: [BLACKBOX] Benchmark failed to compile

From: [at]} <Helmut>
Date: Sun, 16 Jan 2011 08:47:38 +0100

----boundary-LibPST-iamunique-649104225_-_-
Content-type: text/plain

Dear Darek,

I use BBox 1.6 rc-6, on Windows 7 and the module compiles without errors. So
what happens?

The different in the number (-5 and -6) does not solve your problems.

There was reported some WinApi corrections via the BB mailing list. I'm
sorry I have forgotten who send those information.

I list here only the one which are relevant for subsystem Benchmark. You
find the WinApi at the appendix.

Add the line
        CONST REG_QWORD = 11;

Change the type SHORTCHAR in

        PROCEDURE RegEnumValueW* ["ADVAPI32.dll", ""] (hKey: HKEY; dwIndex:
INTEGER; lpValueName: PtrWSTR; VAR [nil] lpcbValueName: INTEGER; VAR [nil]
lpReserved: INTEGER; VAR [nil] lpType: INTEGER; VAR [nil] lpData: SHORTCHAR;
VAR [nil] lpcbData: INTEGER): INTEGER;
        (*END RegEnumValueW;*)

against CHAR

        PROCEDURE RegEnumValueW* ["ADVAPI32.dll", ""] (hKey: HKEY; dwIndex:
INTEGER; lpValueName: PtrWSTR; VAR [nil] lpcbValueName: INTEGER; VAR [nil]
lpReserved: INTEGER; VAR [nil] lpType: INTEGER; VAR [nil] lpData: CHAR; VAR
[nil] lpcbData: INTEGER): INTEGER;
        (*END RegEnumValueW;*)
.

Change the type SHORTCHAR in

        PROCEDURE RegQueryValueExW* ["ADVAPI32.dll", ""] (hKey: HKEY;
lpValueName: PtrWSTR; VAR [nil] lpReserved: INTEGER; VAR [nil] lpType:
INTEGER; VAR [nil] lpData: SHORTCHAR; VAR [nil] lpcbData: INTEGER): INTEGER;
        (*END RegQueryValueExW;*)

against PtrWSTR

        PROCEDURE RegQueryValueExW* ["ADVAPI32.dll", ""] (hKey: HKEY;
lpValueName: PtrWSTR; VAR [nil] lpReserved: INTEGER; VAR [nil] lpType:
INTEGER; lpData: PtrWSTR; VAR [nil] lpcbData: INTEGER): INTEGER;
        (*END RegQueryValueExW;*)
.

After those changes and recompilation of WinApi the subsystem Benchmark
compiles without errors.

The hardware detection is not perfect. Successions and corrections are
welcome.

The measurements results of Benchmark 2010 are not comparable with the
previous version. I increased the runtime of part 2.

Have anybody a complete list of changes since BBox 1.6 rc-6 ? Please send it
to me. When does it added to BB?

Regards,

Helmut

-----Ursprüngliche Nachricht-----
Von: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
Maksimiuk
Gesendet: Samstag, 15. Januar 2011 10:54
An: BLACKBOX{([at]})nowhere.xy
Betreff: [BLACKBOX] Benchmark failed to compile

Dear Helmut,
  I wanted to have some fun and I downloaded the Benchmark packaged
from your site (*.Pac format) and unpack on my machine.
  When I tried to compile it, I got:

  (Log window):

  compiling "BenchmarkRegistry"
    13 errors detected

  and the first error is reported in the following place:

  PROCEDURE ShowEntryTyp* (typ: INTEGER);
        BEGIN
                StdLog.Ln;
                CASE typ OF
| WinApi.REG_SZ: StdLog.String("(1): REG_SZ");
| WinApi.REG_BINARY: StdLog.String("(2): REG_BINARY");
| WinApi.REG_DWORD: StdLog.String("(3): REG_DWORD");
| WinApi.REG_QWORD: <-------------- here: "undeclared
identifier"
                  StdLog.String("(4): REG_QWORD");
| WinApi.REG_MULTI_SZ: StdLog.String("(5): REG_MULTI_SZ");
| WinApi.REG_EXPAND_SZ: StdLog.String("(6): REG_EXPAND_SZ");
                ELSE
                        StdLog.String("typ: unknown");
                END;
                StdLog.Ln;
        END ShowEntryTyp;

It seems that the WinApi provided with the BBox does not have this
entry: WinApi.REG_QWORD.

Also calls to the WinApi.RegQueryValueExW procedure drives the
compiler crazy and I got (in BenchmarkRegistry, PROCEDURE
ReadAsString):

res := WinApi.RegQueryValueExW(h, name, NIL, NIL, data<-----"type is
not identical with that of formal VAR-, IN-, or OUT-parameter", len)

I am running BBox 1.6 rc-5, on Windows 7.

How shall I fix this problem?

Regards,
   Darek


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-649104225_-_-
Content-type: application/rtf
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47:38 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:19 UTC