Welcome, Guest
Username: Password: Remember me
Qui si parla italiano

TOPIC:

bBrowse: and now? 07 Nov 2022 18:00 #24355

  • Gfb22
  • Gfb22's Avatar
  • Topic Author


  • Posts: 52
  • Sorry but I was not clear.
    Once the bBrowser sample has been rebuilt and exited from XIDE, when I reopen the original project is presented but without the bBrowser (see images), not even in the resources.
    XIDE gives no errors and my app works fine but there is no example of bBrowser.
    What Should I Expect?
    What did I do wrong?
    Can I find a sample app that works in XIDE?
    Thanks, always!
    Attachments:

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

    bBrowse: and now? 07 Nov 2022 18:19 #24356

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    Ah, thanks, I see the problem now, apparently there are some files (resources) missing from the XIDE folder of bBrowser. For every sample that you want to run, first please open the menu entity from the Project window (so it opens in the visual menu editor) and do a dummy save. Do the same thing also for any windows in the sample, recompile and run, now it should work.

    btw, do you have something to do with Gianluca Brambilla the cyclist?
    XSharp Development Team
    chris(at)xsharp.eu

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

    bBrowse: and now? 08 Nov 2022 16:49 #24367

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • I tried to:
    1) I double click "bBrowser.NET 4 Samples (XSharp Edition) .xiproj", select XIDE.exe as the program to open it and now it should open in XIDE;
    2) Rebuid all: successful;
    3) Export application for any sample (created * .viaef file)
    4) recompiled all, close when I reopen my original project
    5) Import application and chosen one of the examples (bSample - bComboEdit.viaef);
    6) compiled and run: nothing happens;
    7) I try to open _dtwComboEdit Designer and the attached error message appears.
    I am also attaching the project tree.
    btw: :-) I know Gianluca Brambilla, the cyclist (I am a cyclist ... amateur) but he is not my relative ...
    Attachments:

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

    bBrowse: and now? 08 Nov 2022 17:50 #24370

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    Ah right, you also need the cavowed.inf file like in VO. Please search for a file cavowed.inf in the whole bBrowser folder, when you find one, just copy it in your \XIDE\Config folder and restart XIDE. Now it should be possible to open the windows and do a dummy save. Please do the same thing for the menus as well, and it should run now.
    XSharp Development Team
    chris(at)xsharp.eu

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

    bBrowse: and now? 17 Nov 2022 11:02 #24439

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • ...Thank you!
    I temporarily leave learning bBrowser for other priorities.
    Delivered the first App :-),
    I'm trying to localize RP2 menus and messages (for rpReport).
    In ReportPro2.English Lib I inserted the translations that interest me in 'NativeResources.rc': I tried to compile and Run and it doesn't give any message but the DLL is not created.
    Where am I wrong?
    Thanks again!
    Attachments:

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

    bBrowse: and now? 17 Nov 2022 17:44 #24441

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    Interesting, how did you put bBrowser in the XIDE project? Did we include a XIDE project file in the installer for it? If yes, I totally forgot! :)
    Will need to have a close look into this and will get back to you!
    XSharp Development Team
    chris(at)xsharp.eu

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

    bBrowse: and now? 17 Nov 2022 19:54 #24442

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • No problem: I'm not in a hurry and I'm happy to learn a lot of new things: thanks!
    With RP2 I can't create the modified English DLL with the Italian translation of the messages that interest me...
    In the meantime, I'll try again.
    See you soon.

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

    bBrowse: and now? 18 Nov 2022 00:25 #24444

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    OK, but you didn't answer me, where did you find the XIDE project file? Did you create it, or did it exist with the installation? Just so I know what to test with. I thought we were only delivering VS project files..
    XSharp Development Team
    chris(at)xsharp.eu

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

    bBrowse: and now? 18 Nov 2022 19:33 #24449

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Ok, here: I summarize the steps I did.
    1) Install bBrowse in the directory: C:\Program Files (x86)\bBrowser.NET 4 (XSharp Edition);
    2) Copied XIDE\..Sample folder to: C:\XIDE-bBrowse\bBrowser.NET 4 Samples (XSharp Edition)
    3) To avoid possible conflicts: disabled Antivirus;
    4) copied cavowed.inf to C:\XIDE\Config\
    5) Double click on C:\XIDE-bBrowse\bBrowser.NET 4 Samples\bBrowser.NET 4 Samples (XSharp Edition).xiproj (see images)
    6) Project/build Project menu: OK! (see images)
    7) for each of the 20 examples: open in the editor, one at a time, all .prg and saved
    8) for each of the 20 examples: compiled and build
    9) Quit XIDE and reopen my original project and ...find no difference...
    ...Thank you

    Attachments:

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

    bBrowse: and now? 19 Nov 2022 08:00 #24450

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    Oh, no, I am sorry, I said "bBrowser" in my post! I meant to say ReportPro, how did you add that to your XIDE project?

    Edit: Ah, I see we are indeed including a XIDE project file for ReportPro. But this is a very old one and is missing some of the libraries...Will clean this up and will get back to you ASAP!
    XSharp Development Team
    chris(at)xsharp.eu

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

    Last edit: by Chris.

    bBrowse: and now? 19 Nov 2022 08:24 #24453

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Ok: luckily I'm not the only one distracted... :-)
    Here is the source folder C:\Rp2Net-Source\Rp2Net-main and the program..

    Attachments:

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

    bBrowse: and now? 19 Nov 2022 08:33 #24454

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi Gian,

    I'm trying to localize RP2 menus and messages (for rpReport).
    In ReportPro2.English Lib I inserted the translations that interest me in 'NativeResources.rc': I tried to compile and Run and it doesn't give any message but the DLL is not created.
    Where am I wrong?

    OK, so I tried this and it seems to work well here. What do you mean the dll is not created, you do not see the file "ReportPro2.English.dll" at all? It should be in the \Debug or \Release folder of the XIDE project. If you still can't see it, maybe there's some problem with compiling...Can you please zip the whole XIDE project folder (please make sure to include also the .xiproj file) and send it to me to have a look? My address is chris (at)xsharp. eu

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Last edit: by Chris.

    INDEX ON, again :-) 05 Dec 2022 19:20 #24650

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Here I am again.
    I'm porting the second app to X# and everything is ok (almost) :-)
    The only remaining error concerns the Index ON command: as already suggested by Chris (Posts: 3658 of November 1st), I inserted at the beginning of the module that uses the INDEX ON command the definition "#command INDEX ON...." but the error is due to the presence of the 'DESCENDING' key which is used for some of my indexes.

    The part of the code that gives the error is:


    If I delete the "DESCENDING" argument the app compiles normally and works.
    Thanks for the tips.
    Attachments:

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

    INDEX ON, again :-) 05 Dec 2022 21:26 #24651

    • robert
    • robert's Avatar


  • Posts: 3600
  • What is the definition of your INDEX ON command ?

    Robert
    XSharp Development Team
    The Netherlands

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

    INDEX ON, again :-) 05 Dec 2022 21:40 #24652

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Here's the definition Chris suggested to me in his November 1 post:
    #command INDEX ON <key>     ;
         [TAG <order>]  ;
         [TO <file>]  ;
         [FOR <fo>]     ;
         [<all:ALL>]    ;
         [WHILE <wh>]   ;
         [NEXT <nx>]    ;
         [RECORD <rec>] ;
         [<rs:REST>]    ;
         [EVAL <ev>]    ;
         [EVERY <evr>]  ;
         [<u:UNIQUE>]   ;
         [<asd:ASCENDING>]      ;
         [<dsd:DESCENDING>]     ;
         [<lCur:USECURRENT>]    ;
         [<lAdd:ADDITIVE>]      ;
         [<lCus:CUSTOM>]        ;
         [<lNop:NOOPTIMIZE>]    ;
            ;
        => OrdCondSet( <fo>, <{fo}>,  ;
         [<.all.>],     ;
         <{wh}>,        ;
         <{ev}>, <evr>, ;
         RecNo(), <nx>, <rec>,  ;
         [<.rs.>], [<.dsd.>],   ;
         <.lAdd.>, [<.lCur.>], [<.lCus.>], [<.lNop.>] )      ;
        ;;  ;
           OrdCreate(<(file)>,<(order)>,<(key)>,,IF(<.u.>,.T., NIL))
    ...and so, without 'DESCENDING', compile and run

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

    INDEX ON, again :-) 06 Dec 2022 07:25 #24656

    • Karl-Heinz
    • Karl-Heinz's Avatar


  • Posts: 774
  • Hi Gian,

    in the meantime the INDEX ON <key> TAG <order> command became part of the include file dbcmd.xh. I don´t know if it´s a bug, but to make e.g. the DESCENDING clause work it seems that the "[" and "]" chars must be removed from the OrdCondSet() result pattern ?
    => OrdCondSet( <"fo">, , [<.all.>], <{wh}>, <{ev}>, <evr>, 			;
              RecNo(), <nx>, <rec>,[<.rs.>],[<.dsd.>],<.lAdd.>,					;
              [<.lCur.>], [<.lCus.>], [<.lNop.>] )      						;;  ;
    To override the existing command, add this modified code to the beginning of your source file. Now your code should compile and run.
    #command INDEX ON <key>         										;
         TAG <order>                										;
         [TO <file>]                										;
         [FOR <fo>]                 										;
         [<all:ALL>]                										;
         [WHILE <wh>]               										;
         [NEXT <nx>]                										;
         [RECORD <rec>]             										;
         [<rs:REST>]                										;
         [EVAL <ev>]                										;
         [EVERY <evr>]              										;
         [<u:UNIQUE>]               										;
         [<asd:ASCENDING>]          										;
         [<dsd:DESCENDING>]         										;
         [<lCur:USECURRENT>]        										;
         [<lAdd:ADDITIVE>]          										;
         [<lCus:CUSTOM>]            										;
         [<lNop:NOOPTIMIZE>]        										;
        => OrdCondSet( <"fo">, , <.all.>, <{wh}>, <{ev}>, <evr>, 			;
              RecNo(), <nx>, <rec>,<.rs.>,<.dsd.>,<.lAdd.>,					;
              <.lCur.>, <.lCus.>, <.lNop.> )      						;;  ;
           OrdCreate(<(file)>,<(order)>,<(key)>,,IF(<.u.>,.T., NIL))

    regards
    Karl-Heinz

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

    INDEX ON, again :-) 06 Dec 2022 10:53 #24666

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Thanks Karl,
    now compile and run!
    :-)

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

    ReportPro2, English and translation 06 Dec 2022 16:48 #24671

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Hi,I translated some sentences in NativeResources.rc of "ReportPro2, English" but when in XIDE I try to compile it nothing happens and the DLL is not updated.No problem instead to recompile the program and the other libraries (ReportPro2, ReportPro2.Base, ReportPro2.Export and ReportPro2.RunTime).To understand what doesn't work, I attach the 'response file' and the repository image.Thanks for the tips.

    File Attachment:

    File Name: ReportPro2..._rsp.txt
    File Size:1 KB
    Attachments:

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

    ReportPro2, English and translation 06 Dec 2022 22:55 #24673

    • Chris
    • Chris's Avatar


  • Posts: 3984
  • Hi GIan,

    Do you mean there are no messages at all? Please select Windows->Errors and Windows->Output (after compiling), what contents do you see there? It can't be completely empty..
    XSharp Development Team
    chris(at)xsharp.eu

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

    ReportPro2, English and translation 07 Dec 2022 08:26 #24675

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 52
  • Here is the error and the NativeResource.rc file with my changes...

    thank you

    File Attachment:

    File Name: NativeReso...s_rc.txt
    File Size:39 KB
    Attachments:

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

    Moderators: wriedmann