Solved

MFCCOM

Posted on 2004-08-12
4
184 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

758 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

17 Experts available now in Live!

Get 1:1 Help Now