Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CHtmlView::OnBeforeNavigate2 try to spy Pin
Datacrime20-Mar-01 2:06
Datacrime20-Mar-01 2:06 
QuestionHow To Bitmap a Push button? Pin
19-Mar-01 6:28
suss19-Mar-01 6:28 
AnswerRe: How To Bitmap a Push button? Pin
Christian Graus19-Mar-01 11:47
protectorChristian Graus19-Mar-01 11:47 
QuestionProblems with CRecordset DoDataExchange !!!??? Pin
Ariel19-Mar-01 6:18
Ariel19-Mar-01 6:18 
GeneralSending an e-mail message Pin
confalonieri19-Mar-01 5:57
confalonieri19-Mar-01 5:57 
GeneralRe: Sending an e-mail message Pin
l a u r e n19-Mar-01 6:09
l a u r e n19-Mar-01 6:09 
GeneralRe: Sending an e-mail message Pin
BLaZe3-Apr-01 17:21
BLaZe3-Apr-01 17:21 
GeneralATL/COM and MFC Pin
#realJSOP19-Mar-01 4:16
professional#realJSOP19-Mar-01 4:16 
Okay, I've finally found a reason to use COM for something.

I wrote a (regular) DLL using VC++ 6.0 to perform a task - reading an HTML file, parsing out the tags, and making the data available to the calling executable. This DLL uses MFC (CString, CFile, and the CxxxxArray classes) to aid in this task. When using this DLL from another C++ program, it works fine because the parameters being passed between the executable and the DLL are of type char*. Writing it as a regular DLL also provided easier/faster debugging of the core code within the DLL. Convinced that it worked as intended, I moved on.

I wrote the code so that people could write programs in other languages that use my code. After thinking about leaving it as a DLL and letting other folks worry about how to use it, I decided I'd go ahead and turn it into a COM object.

I wrote the ATL com object (using a simple ATL interface object) and it compiles just fine. However, I don't see a way to add it automagically to my application. I looked through Project|Add to Project|Components & Controls, but the com object I wrote doesn't show up anywhere.

Next, I tried creating an ATL COM object using an ActiveX interface object, and I still can't find the resulting ATL COM object with the tools provided by MS.

I even tried browsing to the DLL that contains the DLL and Visual Studio tells me the component is not a recognizable component.

What am I doing wrong?
GeneralRe: ATL/COM and MFC Pin
Chris Losinger19-Mar-01 4:57
professionalChris Losinger19-Mar-01 4:57 
GeneralRe: ATL/COM and MFC Pin
#realJSOP19-Mar-01 5:59
professional#realJSOP19-Mar-01 5:59 
QuestionHow do I hide a console app's console? Pin
Josh Knox19-Mar-01 3:29
Josh Knox19-Mar-01 3:29 
GeneralHBITMAP from HICON Pin
19-Mar-01 2:37
suss19-Mar-01 2:37 
GeneralRe: HBITMAP from HICON Pin
Michael Dunn19-Mar-01 7:10
sitebuilderMichael Dunn19-Mar-01 7:10 
GeneralRe: HBITMAP from HICON Pin
20-Mar-01 3:50
suss20-Mar-01 3:50 
GeneralRichTextCtrl Pin
ThomasKennedyBose19-Mar-01 0:50
ThomasKennedyBose19-Mar-01 0:50 
GeneralRe: RichTextCtrl Pin
Mike Melnikov19-Mar-01 2:17
Mike Melnikov19-Mar-01 2:17 
GeneralMFC: Positioning a dialog Pin
Ashman19-Mar-01 0:00
Ashman19-Mar-01 0:00 
GeneralRe: MFC: Positioning a dialog Pin
l a u r e n19-Mar-01 6:05
l a u r e n19-Mar-01 6:05 
GeneralRe: MFC: Positioning a dialog Pin
Christian Graus19-Mar-01 11:50
protectorChristian Graus19-Mar-01 11:50 
GeneralMFC question: Keeping a dialog in front Pin
Ashman18-Mar-01 20:27
Ashman18-Mar-01 20:27 
GeneralRe: MFC question: Keeping a dialog in front Pin
Christian Graus18-Mar-01 21:02
protectorChristian Graus18-Mar-01 21:02 
GeneralRe: MFC question: Keeping a dialog in front Pin
19-Mar-01 0:28
suss19-Mar-01 0:28 
QuestionHow to Change the Caption of a CPropertyPage at run time ??? Pin
Ariel18-Mar-01 17:22
Ariel18-Mar-01 17:22 
AnswerRe: How to Change the Caption of a CPropertyPage at run time ??? Pin
Mike Melnikov19-Mar-01 2:41
Mike Melnikov19-Mar-01 2:41 
QuestionHow to Select a row in CListCtrl at run time ?? Pin
Ariel18-Mar-01 17:19
Ariel18-Mar-01 17:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.