473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Class not registered for "this user" context using dcomcnfig in Windows 7!

60
Hi All,
I have two com server .exes let say COM1 and COM2 which are respectively implementing two interfaces say I1 and I2. Now i am invoking the components using
Expand|Select|Wrap|Line Numbers
  1. CoCreateInstance(...)
one after another. When i say
Expand|Select|Wrap|Line Numbers
  1. CoCreateInstance(Com1,..)
it returns S_OK, but it returns class not registered for
Expand|Select|Wrap|Line Numbers
  1. CoCreateInstance(Com2,..)
. Again here i am registering the first Com but not the second one as the flow is like when the server .exe is up with the help of the first CoCreateInstance call then Com2 should be registered by the COM SCM.

Notes:
- This is working for "launching user" context using dcomcnfig in Windows XP, Windows 2008 R2 and Windows 7.
- This is working for "this user" context using dcomcnfig in Windows XP 32 bit and not for Windows 2008 R2 and Windows 7(64 bit).

Any kind of help will be appreciated.

Thank in Advance,
Lauren
Aug 16 '11 #1
0 1298

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: jissay | last post by:
Hi, I use the following scrit in an Intranet with the user name = "" and the password = "" : <?php $ftp_server = "192.168.25.25"; $ftp_user = ""; $ftp_pass = "";
1
by: Peter King | last post by:
if you assign multiple classes in order to keep your classes generic e.g ..classA { position.absolute; left:5 top:5 height:200 width:800 } ..classB { background-color: red} ..classC {...
3
by: maadhuu | last post by:
well,i am curious to know what would be the output of the following: delete this; basically , comment on this .
4
by: Henro V | last post by:
I want the login name that somebody enters when starting the database to be set as a variable. I'll try to explain: I have a table (Engineer) that lists engineers (they are the users) The...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
1
by: VB Programmer | last post by:
When my users login I want them to be able to change some of their personal info in a db. I want to use a detailsview control for this. How can I get the detailsview to only pull up the record...
11
by: Joseph S. | last post by:
Hi all, how do I avoid typing the keyword "$this->" every time I need to reference a member of a class inside the class? (coming from a world of cozy auto-complete enabled Java / .Net IDEs I...
6
by: roddy | last post by:
Hi there, i've got a problem with the command "SELECT USER". No matter who is logged in and no matter how he is connected (windows authentification or not), the result is always 'dbo'. The same...
7
by: psp | last post by:
I'm working on some code and I see in many methods that call other methods of the same class prefix a this-to the method being called, i.e. class X::methodA() { this->methodB(); } And they...
3
by: Jon Davis | last post by:
I've migrated my development workstation from 32-bit Windows Server 2003 to Windows Vista Ultimate x64. I added my .NET web applications under development to IIS. I configured the apps to use a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.