Solved

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

Posted on 2002-06-25
3
195 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 170
SAPE.heur.AE935 Visual Studio 3 53
Not needed 13 120
How to LOAD up a .NET Framework website with data? 2 58
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…

828 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