1. Subrat patra
  2. PowerBuilder
  3. Wednesday, 29 November 2023 11:56 AM UTC

Hi All,

In our application we are using some controls as OLE which are developed on C#. Now we are trying to migrate our application to 64 bit. I have registered these dlls . Do i need to recreate the dlls of 64 bit and again used in the application(by re-writting all the codes).

 

 

Now when i run the application as x64, i am getting error calling external object function.

 

Can anyone suggest how should i proceed with this 64 bit migration for these controls?

 

Regards

Subrat

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 29 November 2023 12:09 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

Basically you'll have to have 2 versions. One 32 bit to use in the PB IDE and one 64 bit version for running the 64 bit executable.

Here's maybe some useful information to be found: https://community.appeon.com/index.php/qna/q-a/how-to-incorporate-crystal-report-viewer

and https://community.appeon.com/index.php/qna/q-a/crystal-reports-64-bit-integration-with-pb-2019-r3

Read those links completely as it also deals with 64 bit topic.

regards

Comment
  1. Roland Smith
  2. Wednesday, 29 November 2023 17:47 PM UTC
Not a C# expert but I believe you can compile using 'Any' as the platform so the same library will work in 32/64 bit.
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 29 November 2023 18:03 PM UTC
Hi Roland,

Thanks, I'm not an expert either, more like a noob. I've tried that option in the past in several of our .Net stuff with mixed results. For now my conclusion is that it's better to simply do two compilations (until I know more about it). Our pb apps are 32 bit and things only worked as long as we set "Prefer 32 bit" in the build options.

I think it is more like an option that checks if you're running windows 32 or 64. (correct me if I'm wrong).

This seems to shed some light:

https://stackoverflow.com/questions/12066638/what-is-the-purpose-of-the-prefer-32-bit-setting-in-visual-studio-and-how-does

regards
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 29 November 2023 19:12 PM UTC
"Any CPU" compile in .NET is not really giving you both simultaneously on the same machine. "Prefer 32-bit" is basically no different than just doing standard 32-bit compile... in other words, you don't have 64-bit so it'll work fine for the PB IDE but not runtime. You can read this Stack Overflow thread to understand more about the Any CPU compile options: https://stackoverflow.com/questions/12066638/what-is-the-purpose-of-the-prefer-32-bit-setting-in-visual-studio-and-how-does/12066861#12066861

Long story short, if you are developing 64-bit apps with PB you will need both 32-bit and 64-bit versions of the DLLs for now.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.