Click here to Skip to main content
15,887,746 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Problem in transform function Pin
ashtwin18-Dec-09 2:31
ashtwin18-Dec-09 2:31 
GeneralRe: Problem in transform function Pin
ashtwin17-Dec-09 0:29
ashtwin17-Dec-09 0:29 
QuestionATL interfaces/COM problem in Vista Pin
T800G13-Dec-09 2:53
T800G13-Dec-09 2:53 
QuestionA quick connection point question... Pin
asdfhjkasdf dfhjksdf12-Dec-09 19:44
asdfhjkasdf dfhjksdf12-Dec-09 19:44 
AnswerRe: A quick connection point question... Pin
Jonathan Davies13-Dec-09 3:48
Jonathan Davies13-Dec-09 3:48 
QuestionCOM/ATL interfaces Pin
asdfhjkasdf dfhjksdf8-Dec-09 16:39
asdfhjkasdf dfhjksdf8-Dec-09 16:39 
AnswerRe: COM/ATL interfaces Pin
Jonathan Davies9-Dec-09 6:04
Jonathan Davies9-Dec-09 6:04 
GeneralRe: COM/ATL interfaces Pin
asdfhjkasdf dfhjksdf9-Dec-09 8:09
asdfhjkasdf dfhjksdf9-Dec-09 8:09 
Thanks for the response and sorry for the confusion. This is probably like asking a blind man to describe what his attacker looked like, but:

My dll inherits from another dll and implements it's functions. These functions are visible to outside objects. I want to add another function(public, interface, however) that originates only in my dll but is also visible to outside objects. My dll is a COM dll with MFC and ATL support. When I look at it in the Class View, there is no interface listed for my class. I found an article on MSDN that gave some sketchy instructions for adding an interface to an existing COM object both manually and through a wizard.

I added the interface manually into the IDL and everything compiled fine. The interface showed up in the Class View and I was able to add a method to it fine. The problem was, the wizard never put the stubs in the .h and .cpp files. I added them manually as well and compiled. C# then complained that QueryInterface failed with a "NOINTERFACE" when I tried to use the interface.

Then I tried to add an interface via the "Implement Interface" wizard, but it will only use interfaces via an existing TLB. This is when I created another separate ATL simple object with an interface and single method. I used the wizard on this tlb and it created everything(including the stubs) perfectly. Still when I try to use the interface, while it does not complain, my single function does not show up.

So I'm guessing my specific question is; how do I add a *new* interface to an *existing* COM object?

I realize I'm probably asking you to describe what shape I'm thinking of, so feel free to forward me to a tarot reader. Smile | :)
GeneralRe: COM/ATL interfaces Pin
Jonathan Davies9-Dec-09 8:47
Jonathan Davies9-Dec-09 8:47 
GeneralRe: COM/ATL interfaces Pin
asdfhjkasdf dfhjksdf9-Dec-09 10:32
asdfhjkasdf dfhjksdf9-Dec-09 10:32 
GeneralRe: COM/ATL interfaces Pin
Jonathan Davies9-Dec-09 11:43
Jonathan Davies9-Dec-09 11:43 
GeneralRe: COM/ATL interfaces Pin
asdfhjkasdf dfhjksdf9-Dec-09 13:35
asdfhjkasdf dfhjksdf9-Dec-09 13:35 
GeneralRe: COM/ATL interfaces Pin
Jonathan Davies10-Dec-09 0:45
Jonathan Davies10-Dec-09 0:45 
GeneralRe: COM/ATL interfaces Pin
asdfhjkasdf dfhjksdf10-Dec-09 8:35
asdfhjkasdf dfhjksdf10-Dec-09 8:35 
QuestionHow to start the exe server in hide mode or another desktop? Pin
kcynic6-Dec-09 19:05
kcynic6-Dec-09 19:05 
AnswerRe: How to start the exe server in hide mode or another desktop? Pin
«_Superman_»7-Dec-09 9:27
professional«_Superman_»7-Dec-09 9:27 
GeneralRe: How to start the exe server in hide mode or another desktop? Pin
kcynic7-Dec-09 14:14
kcynic7-Dec-09 14:14 
QuestionHow to get full path of sepcied file Pin
am 20095-Dec-09 19:44
am 20095-Dec-09 19:44 
AnswerRe: How to get full path of sepcied file Pin
Jonathan Davies6-Dec-09 8:23
Jonathan Davies6-Dec-09 8:23 
QuestionI need to Resize ATL dialog based on the screen resolution Pin
Member 33037924-Dec-09 1:08
Member 33037924-Dec-09 1:08 
AnswerRe: I need to Resize ATL dialog based on the screen resolution Pin
Alain Rist21-Dec-09 13:00
Alain Rist21-Dec-09 13:00 
QuestionCreating sidebar for windows media player (similar to iTunes) Pin
smitha s4-Dec-09 0:27
smitha s4-Dec-09 0:27 
Questionre: probelms erasing a multimap entry Pin
Alan Kurlansky2-Dec-09 11:08
Alan Kurlansky2-Dec-09 11:08 
AnswerRe: re: probelms erasing a multimap entry [modified] Pin
kcynic2-Dec-09 18:42
kcynic2-Dec-09 18:42 
QuestionAdd event handler functions from ActiveX to VC++6.0 ATL Project Pin
jensreichert1-Dec-09 23:44
jensreichert1-Dec-09 23:44 

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.