fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Why are "DWORD" and "UInt32" intermixed in Help doc?? 20 Jul 2020 22:41 #15280

  • FoxProMatt's Avatar

  • FoxProMatt

  • Topic Author


  • Posts: 400
  • Why are "DWORD" and "UInt32" intermixed in Help doc??

    Attachments:

    Please Log in or Create an account to join the conversation.

    Why are "DWORD" and "UInt32" intermixed in Help doc?? 20 Jul 2020 22:59 #15281

  • Chris's Avatar

  • Chris


  • Posts: 2039
  • Hi Matt,

    Both refer to the exact same thing, UInt32 is the "official" type name that the help tool and every other .Net app knows about, while DWORD is the "friendly" name we use in XBase languages.

    Apparently there's a missing bit in the script that adjusts type names in the parameters section in the help contents, which I think will be easy to fix. Will log this, thanks for reporting!
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Why are "DWORD" and "UInt32" intermixed in Help doc?? 22 Jul 2020 11:52 #15295

  • robert's Avatar

  • robert


  • Posts: 1793
  • Matt,
    The DWORD on the X# syntax is the keyword that matches the System.UInt32 type.
    If you select the C# syntax you will see that this is listed as "uint"
    The links in the parameter descriptions link to the .Net documentation about the UInt32 type.
    You will see the same for STRING - String, LONG - Int32, SHORT - Int16 etc.
    We (I) have chosen to keep the "real" type name in that section, with the exception of the X# internal types (such as USUAL, FLOAT, ARRAY and SYMBOL) For these types we do not include __Usual or __Array in the parameters list, since we have also replaced the internal names in the documentation with the keywords.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Why are "DWORD" and "UInt32" intermixed in Help doc?? 27 Jul 2020 14:31 #15332

  • ic2's Avatar

  • ic2


  • Posts: 729
  • Hello Matt,

    Even without X# you will encounter issues because the designers of C# (uint) did not talk to the designers of Windows (dword) ; both designed by Microsoft, of course . Take for example storing & reading a DWORD value to/from the registry in C#. This is how I do that:

    RegistryKey Key = Registry.CurrentUser.OpenSubKey("Software\\IC2\\SomeProgram");
    uint nMyValue = Convert.ToUInt32(Key.GetValue("SomeDWORDValue").ToString());

    Dick

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1