?
Solved

MFCCOM

Posted on 2004-08-12
4
Medium Priority
?
220 Views
Last Modified: 2013-11-25
Hi all,
 How can i register a COM DLL developed using MFC????I tried with regsvr32 in command line but getting the following error message'Cannot find the entry point in the DLL",and in the code i dont have DllMain(),but it has DllRegisterServer()..>So how to register this Dll???


Thanx in advance
0
Comment
Question by:ArunaK
[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
4 Comments
 

Author Comment

by:ArunaK
ID: 11790637
Hi,
 Thanx for ur reply..Now i have a different doubt i have developed my COM component using simple C++...Now i have to register this component how can i do it?This component does not support MFC or ATL...how can i do it???

Thanx in advance
0
 
LVL 9

Accepted Solution

by:
_ys_ earned 375 total points
ID: 11791472
> This component does not support MFC or ATL...how can i do it???
By using the registry functions RegCreateKey etc.

However, there's quite a few registry entries to create; 8 for an average COM object, and 4 for it's type library.

COM object registration:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap2_6msl.asp

Type Library registration:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap2_89o9.asp

Your CLSIDs etc can be obtained from your IDL file.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 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