?
Solved

Unable to register com server

Posted on 2002-03-12
5
Medium Priority
?
289 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
  • 2
3 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Loops Section Overview

840 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