|
-
February 19th, 2008, 06:21 PM
#3
Re: ATL service, COM and problems
 Originally Posted by Siddhartha
1. Why are you using CoCreateInstanceEx and not CoCreateInstance to create instances on your local machine?
2. Any reason that you are not using CLSCTX_ALL instead of CLSCTX_LOCAL_SERVER?
1) Because I'm cutting and pasting that bit from another app that someone else in the shop made a couple of years ago. I don't really know the finer points of why to use one over the other, but his stuff works so I'm just going with it.
2) I looked at the descriptions of the enum and decided that was the best fit for my app. Was I wrong? I've tried other values to no effect.
As I'm typing this I was just alerted by someone about something called CoInitializeSecurity() or whatever he called it, I shall give that a try in a bit and see if maybe that is the issue.
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
|