Solved

MFCCOM

Posted on 2004-08-12
4
189 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
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11790458
0
 

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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now