Solved

Creating an ATL DLL that will allow objects to have multiple instances.

Posted on 2002-06-25
3
194 Views
Last Modified: 2013-11-25
I have created an ATL DLL. I am able to access it from Visual Basic using the standard CreateObject("") function call.
But, I can only create one instance of an object calling that function. How can I tell Visual Basic, or my DLL to create two different objects?

Thanks for any help.

pat
0
Comment
Question by:pricciar
3 Comments
 
LVL 9

Expert Comment

by:BeyondWu
ID: 7109501
Try to change CComSingleThreadModel --> CComObjectThreadModel.
0
 
LVL 12

Accepted Solution

by:
migel earned 200 total points
ID: 7109911
Hi!
Check if you use
DECLARE_CLASSFACTORY_SINGLETON in the your class
replace this to the DECLARE_CLASSFACTORY or just remove this line
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
notReplace  challenge 53 131
sum28 challenge 31 112
How and where to get Business Intelligence Development Studio? 2 86
Best book to learn C++ 4 79
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
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…

810 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