Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


jim.cox

224 posts

Master Geek


#233812 4-May-2018 05:42
Send private message

Kia ora,

 

I have been asked to take a legacy 32bit windows application to 64bit.

 

There are over 25k lines of code, and a twenty year history, so it is not a trivial task.

 

So far it has gone well, we do have a working and running framework.

 

However we have run into three small issues with some 'old technology'.

 

One issue is that we were using DAO for a couple of database import/export functions - no real problem to just leave these functions out of the 64bit build, at least for now

 

But the program also uses two OCX components. The components we have are 32bit, and so not compatible with 64bit. I have had a quick look for possible replacements, nothing found as yet.

 

So, as a general question of technique, how do you good folks handle this sort of issue? Find replacements? Re-engineer from scratch?

 

Cheers

 

 

 

 

 

 

 

 

 

 

 

 






=mjc=
.


Create new topic
nathan
5695 posts

Uber Geek
Inactive user


  #2007948 4-May-2018 16:02
Send private message

I don’t have the answer, but curious to know what the driver is to refactor it for 64bit is please?

It’s not like a 16bit app that won’t even run on a 64bit OS



jim.cox

224 posts

Master Geek


  #2008301 5-May-2018 07:21
Send private message

nathan: I don’t have the answer, but curious to know what the driver is to refactor it for 64bit is please?

 

The reason for the move is to be able to integrate with another software package (we do traffic flow modelling, they do traffic light timing) and their API is 64 bit.






=mjc=
.


andrewNZ
2487 posts

Uber Geek
Inactive user


  #2008304 5-May-2018 07:34
Send private message

Would it not be easier to create a new bit of software to interface the two.

Surely a lot less work and easier to create replacements for different systems.



kingdragonfly
11190 posts

Uber Geek

Subscriber

  #2008336 5-May-2018 10:13
Send private message

OCX is going to be a problem. You're correct in that there's no upgrade path.

You're in between the proverbial rock-and-hard place. I hope it's not a fixed price contract.

You'll have to rewrite those, or buy and adapt a third party equivalent.

I would also do away with DAO. ADO is the equivalent low-level database functions.

nova
250 posts

Master Geek

Trusted

  #2008407 5-May-2018 14:11
Send private message

andrewNZ: Would it not be easier to create a new bit of software to interface the two.

 

I would strongly consider this approach as well. You could keep your existing 32bit code and run it in one process, and spin up a new 64bit process for the new library that you want to integrate. You would then create the communication betwen the two using a socket, a named piped or one of the other IPC mechanisms that windows supports. Or you could take it a bit further and create a web service API for the new library. 


kingdragonfly
11190 posts

Uber Geek

Subscriber

  #2008448 5-May-2018 15:22
Send private message

OCX was typically pre-DotNet, and almost always acts like a visual component, like a textbox or pull-down list.

So creating a 32 bit process to host it is probably not going to do it.

If the customer wants to keep the software around, they need to pay to keep it supportable.

It's not going to get better with age.

nova
250 posts

Master Geek

Trusted

  #2008514 5-May-2018 18:31
Send private message

kingdragonfly: OCX was typically pre-DotNet, and almost always acts like a visual component, like a textbox or pull-down list.

So creating a 32 bit process to host it is probably not going to do it.

If the customer wants to keep the software around, they need to pay to keep it supportable.

It's not going to get better with age.

 

They already had a working 32 bit application before they started the exercise, which included the OCX controls. So one approach would have been to create a new 64 bit process to wrap the new libraries they wanted to use, and extend the 32 bit app to talk to it.

 

But they probably are already committed to the ugrading the whole thing to 64 bit, in which case they will need to replace those OCX controls with something else. This will possibly take quite a bit of effort, but will ultimately leave them with something that is much easier to support going forward.


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
elpenguino
3419 posts

Uber Geek


  #2009589 7-May-2018 20:45
Send private message

Sounds like you're building for Windows if you're using ocx.

 

If there's something you need to do, the modern frameworks can do it. What do these ocx do ?

 

Do you have to migrate languages too?

 

 





Most of the posters in this thread are just like chimpanzees on MDMA, full of feelings of bonhomie, joy, and optimism. Fred99 8/4/21


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.