Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DLL - COM

Posted on 2002-03-16
6
Medium Priority
?
149 Views
Last Modified: 2010-05-02
1>Can I create a component for every class in a project?

2>What are the advantages and disadvantages of creating more than 1 public class within a project?

3>Can I create a Dll for every public class within a project? If yes, whenever I change one of the classes,
do all the other Dlls also need to be compiled again?

4>What is a component, as in MTS and what is the significance of more than 1 public class w.r.t MTS?
0
Comment
Question by:cspl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 39

Accepted Solution

by:
abel earned 600 total points
ID: 6870869
1> yes
2> maintenance, your clients may like it more, related classes should belong together, shouldn't they? For example, if you have a grid-class, why should you place the corresponding cell-class, col-class, row-class and border-class in a different project? IMHO they belong to the same project as different public classes.

to be continued...
0
 
LVL 39

Expert Comment

by:abel
ID: 6870875
3> You create a dll for the whole project, including all the classes. All public classes will "belong" to that dll and can be utilized by anyone making a reference to that dll.

3-extra info>
If you make each class a different project, you can create a dll for each class, but that may not be so handy.

3-++ compiling
If you recompile, but do not change the interface, you don't need to recompile the others. As soon as you shipped your product, DO NOT change the interface anymore: basic COM rule, otherwise clients may need to recompile their products as well.

to be continued...
0
 
LVL 39

Expert Comment

by:abel
ID: 6870881
4> MTS is a "transaction server", as the name implies. It transacts the requests to your in-process object to other clients that are not necessarily in-process with your component. MTS bridges between your component and the client, so to speak. But you can most of the times come by with an ActiveX EXE component, distributed if necessary.

About > 1 public classes, see point 2, the same applies.

If you need more clarification, let me know.

Cheers,
Abel
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 39

Expert Comment

by:abel
ID: 6870896
cspl, you appear to have some so-called abandoned questions. You may want to close them or ask for refunds if the q. have not been answered:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20234295
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20234294
http://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20273314
http://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20273313

Some are pretty old. For the ones in the cs-area, these won't be seen by programmers, you can safely close them, they are zero-points questions anyway.

Please, don't feel offended by me pointing you at these abandoned questions. A lot of experts are doing a hell of job as so-called moderators to clean up the old questions that have been left by the questioners, there are thousands of those questions. It's just courteous to the experts that have tried to help you to show them your appreciation by giving an A grade to the one that helped you. It won't cost you any points, they are already deducted from your account.

Abel
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7634099
Hi cspl,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept abel's comment(s) as an answer.

cspl, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 7665841
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question