Click here to Skip to main content
15,925,602 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATl problem Pin
Bob Davis6-Nov-02 19:47
Bob Davis6-Nov-02 19:47 
GeneralRe: ATl problem Pin
Jörgen Sigvardsson7-Nov-02 12:05
Jörgen Sigvardsson7-Nov-02 12:05 
QuestionHelp Me,How to return a Interface from a method? Pin
Bob Davis6-Nov-02 17:39
Bob Davis6-Nov-02 17:39 
AnswerRe: Help Me,How to return a Interface from a method? Pin
Christian Graus6-Nov-02 19:10
protectorChristian Graus6-Nov-02 19:10 
AnswerRe: Help Me,How to return a Interface from a method? Pin
Jörgen Sigvardsson7-Nov-02 12:08
Jörgen Sigvardsson7-Nov-02 12:08 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Anders Molin7-Nov-02 15:22
professionalAnders Molin7-Nov-02 15:22 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Jörgen Sigvardsson7-Nov-02 22:03
Jörgen Sigvardsson7-Nov-02 22:03 
GeneralRe: Help Me,How to return a Interface from a method? Pin
Anders Molin8-Nov-02 1:14
professionalAnders Molin8-Nov-02 1:14 
Sorry, you are right, I should not try to be smart that late at night Blush | :O

Usually I do it this way:


STDMETHODIMP CClient::get_Devices(IDevices **pVal)
{
  //return a pointer to the devices collection...
  HRESULT hr = m_Devices->QueryInterface(__uuidof(IDevices), (void**)pVal);
  if (FAILED(hr))
  {
    return E_FAIL;
  }
  return S_OK;
}


- Anders

Money talks, but all mine ever says is "Goodbye!"
Generalvector<list struct XXX> Pin
IMiracle5-Nov-02 15:54
IMiracle5-Nov-02 15:54 
GeneralRe: vector<list struct XXX> Pin
Christian Graus5-Nov-02 16:16
protectorChristian Graus5-Nov-02 16:16 
GeneralRe: vector<list struct XXX> Pin
IMiracle5-Nov-02 16:19
IMiracle5-Nov-02 16:19 
GeneralRe: vector Pin
Christian Graus5-Nov-02 16:43
protectorChristian Graus5-Nov-02 16:43 
GeneralRe: vector Pin
Jörgen Sigvardsson7-Nov-02 12:11
Jörgen Sigvardsson7-Nov-02 12:11 
GeneralNewbie STL typedef question Pin
Ravi Bhavnani5-Nov-02 5:43
professionalRavi Bhavnani5-Nov-02 5:43 
GeneralFixed Pin
Ravi Bhavnani5-Nov-02 8:13
professionalRavi Bhavnani5-Nov-02 8:13 
GeneralRe: Fixed Pin
Alexandru Savescu5-Nov-02 23:19
Alexandru Savescu5-Nov-02 23:19 
GeneralRe: Fixed Pin
Ravi Bhavnani6-Nov-02 3:34
professionalRavi Bhavnani6-Nov-02 3:34 
GeneralRe: Newbie STL typedef question Pin
Michael Dunn7-Nov-02 18:11
sitebuilderMichael Dunn7-Nov-02 18:11 
GeneralRe: Newbie STL typedef question Pin
Ravi Bhavnani10-Nov-02 5:04
professionalRavi Bhavnani10-Nov-02 5:04 
GeneralRe: Newbie STL typedef question Pin
Jörgen Sigvardsson11-Nov-02 21:22
Jörgen Sigvardsson11-Nov-02 21:22 
GeneralRe: Newbie STL typedef question Pin
Michael Dunn12-Nov-02 4:43
sitebuilderMichael Dunn12-Nov-02 4:43 
GeneralRe: Newbie STL typedef question Pin
Tim Smith12-Nov-02 6:21
Tim Smith12-Nov-02 6:21 
GeneralRe: Newbie STL typedef question Pin
benefactor11-Nov-02 18:47
benefactor11-Nov-02 18:47 
GeneralRe: Newbie STL typedef question Pin
Ravi Bhavnani12-Nov-02 1:10
professionalRavi Bhavnani12-Nov-02 1:10 
GeneralUser requirements Pin
Matthew R. Miller4-Nov-02 12:34
Matthew R. Miller4-Nov-02 12:34 

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.