|
-
July 7th, 1999, 03:26 PM
#1
COM Design queries
Hi All,
I'm a newbie to COM development, and I'm developing Com dlls for a project I'm currently working on.
I have a couple of questions relating to the implementation of com dll servers; specifically,
1. If I need to implement multiple unrelated objects/interfaces, should these be in separate dll's or is it okay for them to be part of the same COM object?
2. One of the interfaces my Com object exposes will need to also use Com in its implementation (ADO, which is what I'm hiding from the client). As the ADO com implementation of ADO lists 'Both' as the supported threading model, and I'm developing apartment threading objects, will this be okay? What I'm getting at is that I'll call CoinitializeEx(NULL, COINIT_APARTMENTTHREADED) (I know that CoInitialize(NULL) is equiv) from each thread that will use my Com object, which will then internally instanciate an ADO object. Will this work correctly?
TIA for advice/comments
Regards,
Richard
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|