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

TOPIC:

Missing defines after VOPorter 16 Aug 2022 23:54 #23324

  • ic2
  • ic2's Avatar
  • Topic Author


  • Posts: 1524
  • Kees is rebuilding a program as a Winforms program and I am now looking if I can add some still functionality by inserting VOPorted code.

    I found a few compiler errors from which I wonder why they come up.

    E.g.on a subclassed FileOpenDialog:
    oFileDLG:SetStyle(OFN_HIDEREADONLY)
    oFileDLG:SetStyle(OFN_ALLOWMULTISELECT)

    I get an error like

    Error XS0103 The name 'OFN_HIDEREADONLY' does not exist in the current context

    Isn't this the same issue where Robert wrote to Karl:

    The OFN_ENABLESIZING flag was commented out in the GUI classes a looong time ago for the Opendialog when the OFN_ENABLEHOOK flag was added
    I think this was a mistake. I'll put it back in for the next build.

    on www.xsharp.eu/forum/private-product/1948...tandarddialogs#14630

    Or what else is the cause? In VO it comes from CommDlg of Win32 API.

    Also a question on the line Self:Pointer := Pointer{POINTERHOURGLASS} where POINTERHOURGLASS is unknown (comes from WinDefs of GUI Classes).

    This is solved in my X# solution with adding a reference to the VOGUIClasses (only this, not the above FileDialog errors).. But why isn't then that reference auto added to the VOPorted solution?

    Dick

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

    Last edit: by ic2.

    Missing defines after VOPorter 17 Aug 2022 01:27 #23327

    • Chris
    • Chris's Avatar


  • Posts: 3539
  • Hi Dick,

    About OFN_ENABLESIZING, as you said it is defined in the VOWin32APILibrary, have you added a reference to it?

    Regarding automatically adding a reference to the VOGUI classes, this should indeed happen if the VO app does include have that in Libraries list. If it doesn't happen, then it sounds like a bug, can you send me the aef to have a look?
    XSharp Development Team
    chris(at)xsharp.eu

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

    Missing defines after VOPorter 17 Aug 2022 12:24 #23338

    • ic2
    • ic2's Avatar
    • Topic Author


  • Posts: 1524
  • Hello Chris,

    False alarm, sorry!
    It did add these references. I think I looked elsewhere when I concluded it didn't.

    Dick

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

    • Page:
    • 1