Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Tue October 31, 2023 12:56 AM

    Datacap 9.1.9 specifies Visual Studio 2019 and compile target frame work is 4.7.2.

    What sort of complications can happen when we use Visual Studio 2022 with target frame work 4.7.2 or

    Visual Studio Code with target frame work 4.7.2 to compile custom actions for 9.1.9.

    I've found this Microsoft Document. It says issues may happen due to multiple references to different CRT among dlls.

    Is this why everyone should only use Visual Studio 2019?

    "What problems exist if an application uses more than one CRT version?"

    https://learn.microsoft.com/ja-jp/cpp/c-runtime-library/crt-library-features?view=msvc-170



    ------------------------------
    dsakai
    ------------------------------


  • 2.  RE: What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Wed November 01, 2023 06:40 AM

    take it as it is:

    I personally  do not recommend you to try. because you have at first no support...

    Engineering does not test  with Visual Studio 2022 because is not only an action library to be tested and it is not depending only on IBM;  a lot of teh standard Datacap action libraries depend  on third party API.

    the support to install on Windows 2022 and windows 11 comes only in August 2023. We have to wait to be full tested then will be supported. 

    dorothea



    ------------------------------
    dorotheavulcan@yahoo.com
    ------------------------------



  • 3.  RE: What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Thu November 02, 2023 01:02 AM

    Hi Dorothea, 

    Thank you for your reply.

    " is not only an action library to be tested and it is not depending only on IBM;  a lot of teh standard Datacap action libraries depend  on third party API."

    Do you mean third party libraries are also compiled with Visual Studion 2019 with target .NET framework of 4.7.2?



    ------------------------------
    dsakai
    ------------------------------



  • 4.  RE: What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Fri November 03, 2023 06:02 AM

    I mean the IBM Datacap engineering must be sure that the third party API  required is officially upgraded for Visual Studio 2022 and also they must test that everything that is developed in the standard action libraries is working in such a develop environment version...

    This should be a professional work and IBM must be professional; that is why such delays occur...

    You as Datacap client can try every Visual Studio version you want to... but currently IBM supports  only 2019. If you as client / customer need a Visual Studio 2022, then you should open an IBM ticket and IBM will plan this "upgrade" as fast as possible.

    I presume you have MS Visual studio license problem

    that's all hope it helps you 

    dorothea

     

    Hope it helps



    ------------------------------
    dorotheavulcan@yahoo.com
    ------------------------------



  • 5.  RE: What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Mon November 06, 2023 03:41 AM

    Hi dsakai,

    i am pretty sure Datacap calls custom actions via COM. At least the logs say so. To quote Wikipedia "Unlike C++, COM provides a stable application binary interface (ABI) that does not change between compiler releases.[3]"

    That should alleviate the concerns raised by your link.
    4.7.2 should be able to run your code and it should not matter that it was called by a third-party (datacap) as the communication between these does not depend on implementation. I think you will be fine. Not supported (then again - which custom action is?), but fine ^^

    Regards,
    Julian



    ------------------------------
    Julian Fiegenbaum | ISR Information Products AG | Consultant | Germany
    ------------------------------



  • 6.  RE: What could happen when you use unsupported .NET compiler for 9.1.9 Custom Action.

    Posted Thu November 09, 2023 03:33 AM

    Hi Julian,

    Thank you for very good insight.

    According to Wiki,

    "However, an application programmer may have to deal with an ABI directly when writing a program in a mix of programming languages, or even compiling a program written in the same language with different compilers."

    While ABI is a calling convention and gives me a relief, I wonder Datacap engineers are doing this difficult task because I believe Datacap libraries come from different compilers and versions. I've told the app team to try using VS2019 to avoid complications.



    ------------------------------
    dsakai
    ------------------------------