Solved

Unable to register com server

Posted on 2002-03-12
5
283 Views
Last Modified: 2013-11-20
Hi,
Iam trying to register a COM server, But the client gives a message CLSID for the Registered ProgID is invalid.
I registered both the CLSID and ProgID.
Can any one of u help me?
Surya
0
Comment
Question by:surya_bh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 

Expert Comment

by:Dreadknight
ID: 6858911
If you really want help,give more information about your problem.
0
 

Author Comment

by:surya_bh
ID: 6859360
Infact when i try to Register a server as a local server,
By writing the entiries viz.. progID and CLSID ,they are registered perfectly, but when i try to retrieve the CLSID in a client to open the server using a function CLSIDfromProgID, it returns an error "The Resitered CLSID for the ProgID is invalid.
I think this info is sufficient
0
 

Accepted Solution

by:
Dreadknight earned 50 total points
ID: 6859742
Maybe two things make it:
1:the function CoInitialize(NULL) is not called.
2:the ProgID is UNICODE, not ANSI
the following is some sample code,hope it help:

CLSID clsid;
CoInitialize(NULL);
WCHAR m_WCHAR[100];
MultiByteToWideChar(CP_ACP,0,"DAO.Relation.35",
 -1,m_WCHAR,100);
//here I get clsid of dao.relation
CLSIDFromProgID((const unsigned short*)m_WCHAR
          ,&clsid);
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
if loop in java 3 163
while loop over for loop 7 116
My project did see openJDK that I installed. What could be the problem 7 161
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

733 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