Click here to Skip to main content
15,892,809 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Plz give me some advice about my code (IE Programming/ATL/COM/MFC) Pin
Member 212103819-Jul-05 17:25
Member 212103819-Jul-05 17:25 
GeneralATLSTR.H & SHOBJIDL.H not found Pin
TOMCAT8118-Jul-05 20:20
TOMCAT8118-Jul-05 20:20 
GeneralRe: ATLSTR.H & SHOBJIDL.H not found Pin
Douglas Troy19-Jul-05 6:43
Douglas Troy19-Jul-05 6:43 
GeneralRe: ATLSTR.H & SHOBJIDL.H not found Pin
TOMCAT8120-Jul-05 22:24
TOMCAT8120-Jul-05 22:24 
GeneralDuplicate Methos Name in ATL, please help I will rate yr answer Pin
LongIsland16-Jul-05 7:56
LongIsland16-Jul-05 7:56 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Jörgen Sigvardsson16-Jul-05 10:25
Jörgen Sigvardsson16-Jul-05 10:25 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
LongIsland16-Jul-05 14:20
LongIsland16-Jul-05 14:20 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Jörgen Sigvardsson16-Jul-05 22:13
Jörgen Sigvardsson16-Jul-05 22:13 
LongIsland wrote:
1. Then the best bet in my code is Not use a method name same as common interface method, like GetWindowHandle, IsDirty, and so on. Right? Otherwise, it is tedious to write this kind of wrapper. (Is it the only solution? I think so)

AFAIK, there is no automated process for this. Hmmm | :| But I wouldn't say it's the best approach either. I mean, if your method names become odd looking and non descriptive, it's not good.


LongIsland wrote:
why do you use static_cast, since static_cast do not do run time check, there is no difference with reinterpret_cast here.

Because I'm doing an "upcast". T is a subclass of the template. Draw a picture! Thus I don't have to do any casts, because the pointer types are related.


LongIsland wrote:
I think inside InterfaceAShim, I need only declare one duplicate method name OR I have to declare all methods from InterfaceA, just want to confirm.

You only need to declare the duplicate names. Unbound names are deferred to the next subclass, which is your COM class.

Good music: In my rosary[^]
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Lim Bio Liong18-Jul-05 3:53
Lim Bio Liong18-Jul-05 3:53 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Lim Bio Liong18-Jul-05 5:53
Lim Bio Liong18-Jul-05 5:53 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Jörgen Sigvardsson19-Jul-05 9:54
Jörgen Sigvardsson19-Jul-05 9:54 
GeneralRe: Duplicate Methos Name in ATL, please help I will rate yr answer Pin
Lim Bio Liong19-Jul-05 13:30
Lim Bio Liong19-Jul-05 13:30 
GeneralQuestion about ATL library ca2wex class Pin
Marcel_115-Jul-05 11:02
Marcel_115-Jul-05 11:02 
GeneralRe: Question about ATL library ca2wex class Pin
Michael Dunn15-Jul-05 14:10
sitebuilderMichael Dunn15-Jul-05 14:10 
General(ATL/COM/MFC/C++) Q about IE programming Pin
dojin7915-Jul-05 0:51
dojin7915-Jul-05 0:51 
GeneralRe: (ATL/COM/MFC/C++) Q about IE programming Pin
Douglas Troy15-Jul-05 5:33
Douglas Troy15-Jul-05 5:33 
GeneralRe: (ATL/COM/MFC/C++) Q about IE programming Pin
Member 212103815-Jul-05 20:23
Member 212103815-Jul-05 20:23 
Questionwhat's the right way to do this? Pin
HeartFriend14-Jul-05 22:31
HeartFriend14-Jul-05 22:31 
AnswerRe: what's the right way to do this? Pin
Douglas Troy15-Jul-05 5:40
Douglas Troy15-Jul-05 5:40 
GeneralRe: what's the right way to do this? Pin
Anonymous15-Jul-05 6:05
Anonymous15-Jul-05 6:05 
GeneralRe: what's the right way to do this? Pin
Douglas Troy15-Jul-05 6:14
Douglas Troy15-Jul-05 6:14 
Generalstd::cin and unbuffering (noncanonical input) Pin
Harold Bamford14-Jul-05 8:08
Harold Bamford14-Jul-05 8:08 
GeneralVector class is missing 'rerase' Pin
ICantChangeMyAcct13-Jul-05 9:18
ICantChangeMyAcct13-Jul-05 9:18 
GeneralRe: Vector class is missing 'rerase' Pin
Nish Nishant13-Jul-05 9:48
sitebuilderNish Nishant13-Jul-05 9:48 
GeneralRe: Vector class is missing 'rerase' Pin
Roland Pibinger13-Jul-05 12:43
Roland Pibinger13-Jul-05 12:43 

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.