Page 1 of 1

Anesthesia

Posted: Sat Sep 05, 2009 12:21 am
by jordansparks
Dr. Starck,
We just upgraded the entire program from 32 bit keys to 64 bit keys. The change broke all the anesthesia code. Because it wasn't very well documented and we were unfamiliar with it, we were unable to repair it. The only way to make the program compile was to remove the anesthesia feature from the program. You can add it back by:
1. Uncomment the code in the various anesthesia classes in OpenDentBusiness. Make it compile.
2. Add the forms back to the OpenDental project. The files are still there, but they were removed from the project.
3. Fix the menu items to once again call the forms.

If you don't care if it works with replication, then the basic strategy would be to change PIn.PInt() calls to become PIn.PInt32(). And when the main program passes in a PatNum or some other 64 bit int, then put a (int) in front to explicitly convert it to a 32 bit int.

If you do want it to work with replication, let me know. The instructions are more complex.

Re: Anesthesia

Posted: Thu Sep 10, 2009 1:20 am
by wjstarck
OK, I'll have a look

Re: Anesthesia

Posted: Tue Sep 22, 2009 6:38 am
by jordansparks
Instead of having you commit your fixes, we've decided to build a plug-in framework.

http://www.open-dent.com/manual/plugins.html

Advantages:
Faster implementation, you don't have to follow our style, keeps our code safe and uncluttered, each hook can be used by a variety of programmers, allows selling of plug-ins, etc. It's just going to be a much cleaner solution.

Re: Anesthesia

Posted: Tue Sep 22, 2009 8:40 am
by wjstarck
That's really nice.

Until that's fully implemented, do you recommend fix #1 above so that we can keep current with updates?

Re: Anesthesia

Posted: Tue Sep 22, 2009 9:15 am
by jordansparks
No, it will be fully functional in version 6.8.