Solved

MFCCOM

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VS2015 compilation and missing DLLs 9 147
Doc'in system (example?) BA 7 111
Is AWS.RDS considered a part of "Big Data"? 4 110
PL SQL Developer 7 36
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…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared 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…

809 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