Solved

Unable to register com server

Posted on 2002-03-12
5
278 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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 62
Execute multiple curl cmds with sleep and send output to file 10 97
Unix Command -- Challenging  question 7 90
Change to event 1 112
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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