Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-06-25
3
Medium Priority
?
201 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 800 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

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…
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…

927 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