Click here to Skip to main content
15,888,454 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Kevin McFarlane6-Sep-06 5:17
Kevin McFarlane6-Sep-06 5:17 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Zac Howland7-Sep-06 9:31
Zac Howland7-Sep-06 9:31 
GeneralRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
peysock8-Sep-06 3:34
peysock8-Sep-06 3:34 
Questioniterator problem in release builds Pin
rana745-Sep-06 1:24
rana745-Sep-06 1:24 
QuestionRe: iterator problem in release builds Pin
prasad_som5-Sep-06 1:54
prasad_som5-Sep-06 1:54 
Question#define for checked-iterators Pin
rana744-Sep-06 0:10
rana744-Sep-06 0:10 
AnswerRe: #define for checked-iterators Pin
User 2155974-Sep-06 1:30
User 2155974-Sep-06 1:30 
QuestionATL inheritance Pin
palako2-Sep-06 11:18
palako2-Sep-06 11:18 
Hi there.

I was coding a c++ dll using some tipical inheritance structure where classes classB and classC extended abstract classA.

From a MFC c++ dialog based application, everything works like a charm, but I need this stuff to be used from a VB applicaction.

So I started reading and reached that I should code COM objects, and more exactly, ATL.

First approach worked, and I'm able to call an object from the ATL dll in a VB test code.

However, problems are when I try to reproduce my inheritance structure within all these ATL interfaces mess.

This is the code i would like to run written in c++:

ClassA object = new ClassB();

As you can see, I declare object as ClassA, but I instantiate it as ClassB. I don't want classA to be able to be instantiated (abstract), but I can't declare an ATL interface over an abstract class, so, I won't be able to use it from VB. And I don't know how to deal with inheritance. Child classes don't seem to "see" parent public and protected methods when used in the VB test app.

I don't post any code cause I don't think it would help. If you know what am I talking about, I'm sure you'll be able to point me to the issue, maybe a good and clear article about all this stuff.

I've made some further reading, but with no success. At the point, not exactly stuck, but quite lost.

Any help would be greatly appreciated.

Thanks so much.

Palako
AnswerRe: ATL inheritance Pin
Steve S7-Sep-06 3:10
Steve S7-Sep-06 3:10 
Questionhow i block the e-mail attachment in VC++? Pin
salman kazi31-Aug-06 0:30
salman kazi31-Aug-06 0:30 
AnswerRe: how i block the e-mail attachment in VC++? Pin
prasad_som31-Aug-06 3:51
prasad_som31-Aug-06 3:51 
QuestionSelecting an item in listview via windows api. Pin
Marco225030-Aug-06 2:17
Marco225030-Aug-06 2:17 
AnswerRe: Selecting an item in listview via windows api. Pin
Steve S30-Aug-06 7:05
Steve S30-Aug-06 7:05 
AnswerRe: Selecting an item in listview via windows api. Pin
Michael Dunn30-Aug-06 20:30
sitebuilderMichael Dunn30-Aug-06 20:30 
GeneralRe: Selecting an item in listview via windows api. Pin
svsundar (Vairavan)31-Aug-06 2:56
svsundar (Vairavan)31-Aug-06 2:56 
GeneralRe: Selecting an item in listview via windows api. Pin
Michael Dunn31-Aug-06 18:48
sitebuilderMichael Dunn31-Aug-06 18:48 
QuestionCEdit Woes Pin
HakunaMatada30-Aug-06 2:14
HakunaMatada30-Aug-06 2:14 
AnswerRe: CEdit Woes Pin
prasad_som31-Aug-06 3:56
prasad_som31-Aug-06 3:56 
Questionhow to proceed with Notification of emails using Mapi. Pin
uday kiran janaswamy29-Aug-06 23:28
uday kiran janaswamy29-Aug-06 23:28 
AnswerRe: how to proceed with Notification of emails using Mapi. Pin
Steve S30-Aug-06 0:31
Steve S30-Aug-06 0:31 
GeneralRe: how to proceed with Notification of emails using Mapi. Pin
uday kiran janaswamy30-Aug-06 2:05
uday kiran janaswamy30-Aug-06 2:05 
GeneralRe: how to proceed with Notification of emails using Mapi. Pin
Steve S30-Aug-06 7:14
Steve S30-Aug-06 7:14 
QuestionHow I can get listview subitem text of a listview on another process? Pin
Marco225028-Aug-06 9:05
Marco225028-Aug-06 9:05 
QuestionGet Parent handle in ATL Windowless Control Pin
QuickDeveloper27-Aug-06 22:50
QuickDeveloper27-Aug-06 22:50 
AnswerRe: Get Parent handle in ATL Windowless Control Pin
Roland Rüdenauer17-Sep-06 12:02
Roland Rüdenauer17-Sep-06 12:02 

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.