Click here to Skip to main content
15,898,222 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Problem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 21:46
_Magnus_12-Nov-03 21:46 
GeneralSetup problem of the Atl project Pin
Fox Ray11-Nov-03 20:42
Fox Ray11-Nov-03 20:42 
GeneralRe: Setup problem of the Atl project Pin
geo_m12-Nov-03 3:11
geo_m12-Nov-03 3:11 
GeneralRe: Setup problem of the Atl project Pin
Fox Ray12-Nov-03 13:21
Fox Ray12-Nov-03 13:21 
GeneralRe: Setup problem of the Atl project Pin
geo_m15-Nov-03 2:18
geo_m15-Nov-03 2:18 
GeneralCasting an interface to an internal class Pin
Giles11-Nov-03 11:07
Giles11-Nov-03 11:07 
GeneralRe: Casting an interface to an internal class Pin
Tim Smith11-Nov-03 11:54
Tim Smith11-Nov-03 11:54 
GeneralRe: Casting an interface to an internal class Pin
Michael Dunn11-Nov-03 13:37
sitebuilderMichael Dunn11-Nov-03 13:37 
You're going down the inheritance tree (IThingy to CThingy) which puts the responsibility on you to make sure it's safe. If you go the other way, up the tree, it's always safe by C++ language rules:
CComObject<CThingy>* pThingy;
 
  if ( FAILED( CComObject<CThingy>::CreateInstance ( &pThingy ) ))
    return NULL;
 
  pThingy->AddRef();
  pThingy->SomeInternalStuff();
  return (IThingy*) pThingy;
CComObject is the most-derived class, derived from CThingy, which is derived from IThingy.

--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer.
  -- Michael P. Butler in the Lounge

GeneralRe: Casting an interface to an internal class Pin
Giles11-Nov-03 20:41
Giles11-Nov-03 20:41 
GeneralRe: Casting an interface to an internal class Pin
Trong14-Nov-03 6:48
Trong14-Nov-03 6:48 
GeneralStacked Dialog Pin
Sakusys11-Nov-03 0:31
Sakusys11-Nov-03 0:31 
GeneralActivex and resources Pin
roberto.mdv11-Nov-03 0:23
roberto.mdv11-Nov-03 0:23 
QuestionCan the operator be overloaded in ATL and how? Pin
sqwang10-Nov-03 13:30
sqwang10-Nov-03 13:30 
QuestionHow to gray checkbox in tree control. Pin
shivonkar9-Nov-03 20:00
shivonkar9-Nov-03 20:00 
GeneralSTL question. Pin
WREY9-Nov-03 10:03
WREY9-Nov-03 10:03 
GeneralRe: STL question. Pin
Christian Graus9-Nov-03 10:16
protectorChristian Graus9-Nov-03 10:16 
GeneralRe: STL question. Pin
WREY9-Nov-03 12:11
WREY9-Nov-03 12:11 
GeneralRe: STL question. Pin
ZoogieZork9-Nov-03 13:52
ZoogieZork9-Nov-03 13:52 
GeneralRe: STL question. Pin
WREY9-Nov-03 17:36
WREY9-Nov-03 17:36 
GeneralRe: STL question. Pin
jbarton10-Nov-03 7:25
jbarton10-Nov-03 7:25 
GeneralRe: STL question. Pin
WREY10-Nov-03 7:54
WREY10-Nov-03 7:54 
GeneralRe: STL question. Pin
jbarton11-Nov-03 4:42
jbarton11-Nov-03 4:42 
Generalofstream position and &gt;2GB files Pin
Jeremy Osner7-Nov-03 3:38
Jeremy Osner7-Nov-03 3:38 
GeneralRe: ofstream position and &gt;2GB files Pin
Christian Graus9-Nov-03 10:17
protectorChristian Graus9-Nov-03 10:17 
GeneralRe: ofstream position and &gt;2GB files Pin
Jeremy Osner9-Nov-03 15:50
Jeremy Osner9-Nov-03 15:50 

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.