Click here to Skip to main content
15,920,053 members
Home / Discussions / COM
   

COM

 
QuestionConnect to external InProc Server ? Pin
Mark Janveaux4-Aug-02 20:45
Mark Janveaux4-Aug-02 20:45 
AnswerRe: Connect to external InProc Server ? Pin
Jawid7-Aug-02 5:32
Jawid7-Aug-02 5:32 
AnswerRe: Another way - ROT Pin
Vi27-Aug-02 6:04
Vi27-Aug-02 6:04 
GeneralReceive events in vb from an interface returned by a method Pin
farrukh khalil4-Aug-02 19:19
sussfarrukh khalil4-Aug-02 19:19 
GeneralRe: Receive events in vb from an interface returned by a method Pin
Vi24-Aug-02 20:16
Vi24-Aug-02 20:16 
GeneralComAddin and addin Pin
Gheyret4-Aug-02 18:53
Gheyret4-Aug-02 18:53 
QuestionATL Problems?? Pin
Leesen3-Aug-02 22:56
Leesen3-Aug-02 22:56 
AnswerRe: ATL Problems?? Pin
Vi24-Aug-02 20:12
Vi24-Aug-02 20:12 
// Must have more than 1 inderection of pointer<br />
// In idl-file [...] HRESULT OneStudent([out,retval]IStudent* *pVal);<br />
STDMETHODIMP CTeacher::get_OneStudent(IStudent* *pVal)<br />
{<br />
  AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
  // TODO: Add your implementation code here<br />
  *pVal = m_aStudent;<br />
  if( m_aStudent != NULL )<br />
    m_aStudent->AddRef();<br />
  return S_OK;<br />
}<br />
<br />
// In idl-file [...] HRESULT OneStudent([in]IStudent* newVal);<br />
STDMETHODIMP CTeacher::put_OneStudent(IStudent *newVal)<br />
{<br />
  AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
  // TODO: Add your implementation code here<br />
  if( m_aStudent != NULL )<br />
    m_aStudent->Release();<br />
  m_aStudent = newVal ;<br />
  if( m_aStudent != NULL )<br />
    m_aStudent->AddRef();<br />
  return S_OK;<br />
}<br />


In VB you should use the "Set" operator to assign one object to another.
Set s = t.OneStudent<br />



With best wishes,
Vita
QuestionHow to get CLSID for the underlying object. Pin
cagey2-Aug-02 10:04
cagey2-Aug-02 10:04 
AnswerRe: How to get CLSID for the underlying object. Pin
soptest2-Aug-02 13:17
soptest2-Aug-02 13:17 
GeneralRe: How to get CLSID for the underlying object. Pin
Gertjan Schuurmans4-Aug-02 2:55
Gertjan Schuurmans4-Aug-02 2:55 
GeneralCOM+ Remote Transient Event Subscription Pin
d2hilst2-Aug-02 3:56
d2hilst2-Aug-02 3:56 
QuestionImplemented QueryStatus... but I get idl errors? Pin
Tommy Svensson2-Aug-02 0:23
Tommy Svensson2-Aug-02 0:23 
AnswerRe: Implemented QueryStatus... but I get idl errors? Pin
Vi22-Aug-02 1:22
Vi22-Aug-02 1:22 
GeneralCreating a Typelib Pin
Brigg Thorp1-Aug-02 7:13
Brigg Thorp1-Aug-02 7:13 
GeneralRe: Creating a Typelib Pin
Vi21-Aug-02 19:31
Vi21-Aug-02 19:31 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:36
sussStanford Powers31-Jul-02 18:36 
General! SPAM ! Pin
soptest1-Aug-02 7:01
soptest1-Aug-02 7:01 
QuestionNow why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 6:42
Tommy Svensson31-Jul-02 6:42 
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
soptest31-Jul-02 9:07
soptest31-Jul-02 9:07 
GeneralNeed a starting point Pin
yeeeooowww31-Jul-02 6:18
yeeeooowww31-Jul-02 6:18 
GeneralIDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 5:34
tm31-Jul-02 5:34 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
Lily1831-Jul-02 6:14
Lily1831-Jul-02 6:14 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 7:35
tm31-Jul-02 7:35 
GeneralCreating a Microsoft Word plugin ! Pin
Maerlin31-Jul-02 5:00
Maerlin31-Jul-02 5:00 

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.