Solved

ATL COM - How many objects

Posted on 2004-04-01
2
281 Views
Last Modified: 2013-11-25
How many ATL Simple Objects can I add to an ATL COM Project?
How many .idl files can I use?
0
Comment
Question by:mmouer
[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
  • 2
2 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
ID: 10735592
There will be only one idl file whatever the number of ATL objects you add to your project.
For eg refer to the following contents from idl file
// ATLTest.idl : IDL source for ATLTest.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (ATLTest.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
      [
            object,
            uuid(799A3100-F56B-4BB4-8849-BED7D81FDF2B),
            dual,
            helpstring("ITest1 Interface"),
            pointer_default(unique)
      ]
      interface ITest1 : IDispatch
      {
      };
      [
            object,
            uuid(4A108BA1-BE45-48DB-A552-54929A07425C),
            dual,
            helpstring("ITest2 Interface"),
            pointer_default(unique)
      ]
      interface ITest2 : IDispatch
      {
      };

[
      uuid(3E06C944-4A96-4C1E-BE0E-F0D7A9985E3F),
      version(1.0),
      helpstring("ATLTest 1.0 Type Library")
]
library ATLTESTLib
{
      importlib("stdole32.tlb");
      importlib("stdole2.tlb");

      [
            uuid(542115B7-3865-4235-A0D5-DD1C3A311740),
            helpstring("Test1 Class")
      ]
      coclass Test1
      {
            [default] interface ITest1;
      };
      [
            uuid(6047A1CB-D030-4EF3-84EE-63D277CC82B3),
            helpstring("Test2 Class")
      ]
      coclass Test2
      {
            [default] interface ITest2;
      };
};


Here Test1 and Test2 are ATL Simple objects.

-Lakshman
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10735649
I also don't see any limit there. I have across projects with more than 100 ATL objects.

-Lakshman
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

707 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