The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Dialog Builder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mike Buess

USA
3037 Posts

Posted - 12/20/2001 :  4:37:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
An ealier discussion (tool is open) raised a question about Dialog Builder methods. I have created nine DB dialogs for an application I'm working on and I wonder now if it's better to put them all in a single DLL or to build a separate DLL for each. (I've already done the latter, so I hope that's the answer. ) Aside from saving a few kB, are there any advantages to combining DB dialogs?

Mike Buess
Origin WebRing Member

Laurie

USA
404 Posts

Posted - 12/21/2001 :  4:47:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

Here's the pros and cons of each method.

One DLL Advantage:
1) Smaller size
2) If all the dialogs are almost always used -- fewer number of dll's loaded
Disadvantage:
Maintenance difficulty -- too many entries in the String table easy to make mistake when changing

Multiple dll: Just the opposite.

There can be a slight benefit in performance if all your dialogs for one application are in one DLL. However, searching entries from a big list in the string table from the resource editor might not be much fun and could lead to errors (as well as the wizard to create dialogs can't be used when adding a new dialog), under such circumstances a multiple DLL approach might be beneficial.

OriginLab Technical Support
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 12/21/2001 :  6:02:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Laurie,

Thanks for the comments and advise. I tried to combine three of my dialogs and soon found that the String table can indeed be a bear. I started with an empty project, copied the simplest dialog (IDD_) and its string table, then copied the other two dialogs with the intention of adding them to that string table. I soon ran into duplicate ID's and values and, while I'm sure that could eventually be sorted out, I'm not so sure that it's worth the effort. Since you say there's only a slight benefit in performance I'll probably stick with what I've got.

Thanks again and Merry Christmas!

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000