Anesthesia

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Anesthesia

Post by jordansparks » Sat Sep 05, 2009 12:21 am

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.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Anesthesia

Post by wjstarck » Thu Sep 10, 2009 1:20 am

OK, I'll have a look
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Anesthesia

Post by jordansparks » Tue Sep 22, 2009 6:38 am

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.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: Anesthesia

Post by wjstarck » Tue Sep 22, 2009 8:40 am

That's really nice.

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

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Anesthesia

Post by jordansparks » Tue Sep 22, 2009 9:15 am

No, it will be fully functional in version 6.8.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply