Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MFCCOM

Posted on 2004-08-12
4
Medium Priority
?
227 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…

610 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