Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1
  • 2

TOPIC:

conversion problem (VO2.6 to 2.8) 29 Oct 2020 15:48 #16421

  • Jan@share.be's Avatar
  • Topic Author


  • Posts: 48
  • In a long overdue attempt to port one of out apps to VO2.8, I get this error:

    I have no clue as where to look, so if anyone can help, it would be great
    Attachments:

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

    Last edit: by .

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 15:50 #16422

    • robert
    • robert's Avatar


  • Posts: 3269
  • Jan,
    Does your exe folder contain the file CATO3SPL.DLL ?

    Robert
    XSharp Development Team
    The Netherlands

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 16:08 #16423

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Robert

    no, it didn't
    and that solved the problem, spitwindow is now opening.

    Where do I find the list of dll's and the functions they contain?
    I'll probably run into similar problems furhter down the road.

    many thanks for your help.

    greetings
    Jan

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 16:47 #16424

    • Chris
    • Chris's Avatar


  • Posts: 3736
  • Hi Jan,

    Apart from the CATO*.dll files (which are necessary for the DataBrowser, Split window etc), I think you do not need to worry about any other VO dll.
    XSharp Development Team
    chris(at)xsharp.eu

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 17:06 #16426

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • ok, thank you
    We'll see how it goes.

    I'm still struggling with some other issues:

    1) reportpro: I'm using reportpro V2.16k (latest I purchased)
    2) I have a problem with the mousebutton callback functions on a window, they don't seem to work.

    And do you have any idea how to get debugview to work on a 64-bit server? (which is the machine I'm working on now). It works fine on my local PC (also 64 bit Windows 10), but I don't get any messages from the app on the server.


    thanks for the help.

    Once this app works, I'll look at porting it to Xsharp.
    That will be a challenge.

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 17:28 #16428

    • Chris
    • Chris's Avatar


  • Posts: 3736
  • Hi Jan,

    Oh, sorry, I thought you were already talking about X#. So is it a VO app that you just now "inherited"?
    About mouse button callbacks, are you trying to capture them when they happen on the window, or on on if its controls? Can you show us the code?
    XSharp Development Team
    chris(at)xsharp.eu

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 17:38 #16429

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • It's my own dev from long ago (started in clipper, you believe), and ported to VO later.
    So I'll try to get it to X#, but first bring it to VO2.8, so the transition will be easier.

    I'm not 100% shure about the mousebutton stuff, some things seem to work, other don't. So I'll investigate further.

    Could you give a clue as how to get dbviewer to work, that would help.
    In my app I'm using
    _DebOut32(PSZ(AsString(val1)))
    to send the info,

    and debugview from sysinternals to catch the messages.

    Is there a _debout64() or something like that?

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 17:45 #16430

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3242
  • Hi Jan,
    DebOut() should work - at least it does on my machine (W10 64 bit) and it does also on any server I have tried it.
    But some viewer from Sysinternals don't work, so maybe you could try DebugView++.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    conversion problem (VO2.6 to 2.8) 29 Oct 2020 18:03 #16431

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Debugview++ works :-)
    back to work now;

    thanks guy's, very helpfull!!

    Let you know when I run into trouble again :-(

    Jan

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

    conversion problem (VO2.6 to 2.8) 30 Oct 2020 13:45 #16439

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • OK, here is my next problem.
    I have some splitwindows going, and I use a contextmenu to activate some options in one of the subwindows (these ar datawindows).

    To do this, I use the menucommand callback function, but in VO28 this doesn't work.
    The menucommand is linked to the window

    Am I missing something?

    thanks

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

    conversion problem (VO2.6 to 2.8) 30 Oct 2020 15:56 #16441

    • ic2
    • ic2's Avatar


  • Posts: 1573
  • Hello Jan,

    You should maybe give some more details. With "this doesn't work" you probably mean that choosing the menu option doesn't result in your code running?
    The first to check is of course if you have not made a typo. Then if the method in your menu is from the class your split window is from.
    It's nearly always incorrect spelling or class, if nothing happens when you select your menu item.

    Dick

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

    conversion problem (VO2.6 to 2.8) 01 Nov 2020 16:43 #16458

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Dick

    I'm very happy with all the help I get from this group, this helps me getting the work done sooner.
    As I already said, this is a conversion project. I just imported the AEF in VO28 and started from there.
    So, I don't think I have any typo's, this was a working situation in VO26.
    I already found out that there are some differences in how the mousebutton callback functions work from 2.6 to 2.8. So I changed my code to have it working properly in VO28.
    But this is different.
    I use the menucommand callback function to get menu functions to operate (see code in attachment).
    It works fine in VO26, in VO28, this callback function never gets called.
    The menu pops up fine when I hit right mousebutton, but when selecting a menu-option, menucommand is not called.
    Is this because I already use the mousebuttondown?
    I'm trying to get my head around this and to find a way to get it working.

    thanks for any idea's.

    Jan

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 00:50 #16462

    • ic2
    • ic2's Avatar


  • Posts: 1573
  • Hello Jan,

    What happens if you just create the menu with the menu editor and fill in the method which should be called?

    You can try a simple one-choice context menu. Call the first item Dummy (or whatever), then tab 1 x and enter the next option "Select alles" with method SelectAll CLASS DSRWin which only calls SELF:zoekselectall('A') .

    As far as I can see there's nothing unusual in the code, except that you could achieve it all probably easier with the menu editor. Callback method menucommand should be called as the X# help says Provide a method that is invoked when an item on a menu owned by this window is selected. You assign a contextMenu to the Datawindow subclass which appear you write so I'd expect the menucommand method to be called.

    Maybe Chris or Robert can tell if building the menu like you do reacts different in X#, but I'd say the quickest way to deal with it might be trying it otherwise, in this case using the menu editor.

    Dick

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 07:20 #16464

    • Chris
    • Chris's Avatar


  • Posts: 3736
  • Hi Jan,

    Unfortunately code screenshots do not really help, can you please zip and send the .aef instead so we can have a look? If you do not want to send the complete app, maybe you can create a small test app reproducing the problem and send that one.
    XSharp Development Team
    chris(at)xsharp.eu

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 07:38 #16465

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3242
  • Hi Jan,
    unfortunately I have only VO 2.8 on my disk, so I cannot check the behavior of 2.6.
    It seems that neither the MenuCommand nor the PreMenuCommand are called by VO 2.8 when using DataWindows and the context menu on the window itself.
    When using the context menu on a control, the PreMenuCommand of the window is called.
    I cannot say what is going wrong here or what was changed from 2.6, but it would be helpful if you posted a small working sample, maybe based on the Standard MDI Application instead of a useless and incomplete PDF.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 10:07 #16468

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Dick

    I'm doing this in VO28, so my question is not about X#.
    I already tried your suggestion, and indeed, that works fine. I can create the menu in the menubuilder, and then the context menu works as expected.

    But, I also use the same technique to build a menu dynamically, based on a DB table. So in that case I cannot use the menu-builder.

    I'll keep on trying.

    thanks

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 10:07 #16469

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Chris.

    Ok, I'll put together a small app that demonstrates my problem and post it later today

    thanks

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 10:09 #16470

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Wolfgang.

    thank you for looking into this.
    I'll put together a small application that demosntrates my problem and post it later today.

    greetings

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 10:09 #16471

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • Wolfgang.

    thank you for looking into this.
    I'll put together a small application that demosntrates my problem and post it later today.

    greetings

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

    conversion problem (VO2.6 to 2.8) 02 Nov 2020 11:36 #16473

    • Jan@share.be's Avatar
    • Topic Author


  • Posts: 48
  • OkI hereby upload a small demo application that is an exact extract from the project I'm working on. All code that accesses the DB is eliminated.This is an application for a printshop, they have to make the layout of what they print (in this case it is labels) on the paper.So this part of the app lets them play around with the individual labels.THey can move them around or do some actions as turn them, align them, do group moves etc. All these actions are done via the context menu, the one that does not work now.thank you

    File Attachment:

    File Name: Demo menu.zip
    File Size:135 KB

    File Attachment:

    File Name: Demo menu.zip
    File Size:135 KB

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

    • Page:
    • 1
    • 2