Click here to Skip to main content
15,914,010 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: data not being inserted/updated [modified] Pin
Kurt _B27-Jun-06 2:59
Kurt _B27-Jun-06 2:59 
QuestionAtl executable without Interface Pin
ROWALI21-Jun-06 18:29
ROWALI21-Jun-06 18:29 
AnswerRe: Atl executable without Interface Pin
Stephen Hewitt27-Jun-06 2:11
Stephen Hewitt27-Jun-06 2:11 
QuestionLinking external library to ATL Pin
ROWALI19-Jun-06 19:34
ROWALI19-Jun-06 19:34 
AnswerRe: Linking external library to ATL Pin
Milton Karimbekallil20-Jun-06 18:23
Milton Karimbekallil20-Jun-06 18:23 
AnswerRe: Linking external library to ATL Pin
Igor Vigdorchik21-Jun-06 4:20
Igor Vigdorchik21-Jun-06 4:20 
QuestionNeed help to return string value from COM Pin
agarunk19-Jun-06 4:40
agarunk19-Jun-06 4:40 
AnswerRe: Need help to return string value from COM [modified] Pin
Roozbeh6919-Jun-06 9:44
professionalRoozbeh6919-Jun-06 9:44 
I assume that you don't use attributes in your project, and you want to have a property named 'Title' of type BSTR (COM string type)
in your IDL file:

interface IYourInterface: IDispatch{
[propget, id(1), helpstring("property Title")] HRESULT Title([out, retval] BSTR *pVal);
[propput, id(1), helpstring("property Title")] HRESULT Title([in] BSTR newVal);
};

in the header file of your object:

public:
STDMETHOD(get_Title)(/*[out, retval]*/ BSTR *pVal);
STDMETHOD(put_Title)(/*[in]*/ BSTR newVal);

private:
_bstr_t m_bstrTitle; // variable holding the property value

and in the implementation file of your object:

STDMETHODIMP CYourClass::get_Title(BSTR *pVal)
{
*pVal = m_bstrTitle.copy();
return S_OK;
}

STDMETHODIMP CYourClass::put_Title(BSTR newVal)
{
m_bstrTitle = _bstr_t(newVal);
return S_OK;
}


-- modified at 15:53 Monday 19th June, 2006
GeneralRe: Need help to return string value from COM Pin
agarunk20-Jun-06 0:10
agarunk20-Jun-06 0:10 
GeneralRe: Need help to return string value from COM Pin
Milton Karimbekallil20-Jun-06 2:14
Milton Karimbekallil20-Jun-06 2:14 
GeneralRe: Need help to return string value from COM Pin
agarunk20-Jun-06 3:31
agarunk20-Jun-06 3:31 
GeneralRe: Need help to return string value from COM Pin
Pharago16-Jul-06 1:35
Pharago16-Jul-06 1:35 
QuestionKeyboard focus Pin
Roozbeh6917-Jun-06 22:16
professionalRoozbeh6917-Jun-06 22:16 
QuestionVS7 & ATL: Exposing an enum on a COM interface Pin
Ian McLauchlan17-Jun-06 10:15
Ian McLauchlan17-Jun-06 10:15 
AnswerRe: VS7 & ATL: Exposing an enum on a COM interface Pin
Milton Karimbekallil20-Jun-06 2:25
Milton Karimbekallil20-Jun-06 2:25 
Questionactivex Pin
marcoslav16-Jun-06 2:11
marcoslav16-Jun-06 2:11 
AnswerRe: activex Pin
Milton Karimbekallil20-Jun-06 2:32
Milton Karimbekallil20-Jun-06 2:32 
Questioninclude Pin
yoti1115-Jun-06 6:11
yoti1115-Jun-06 6:11 
AnswerRe: include Pin
Milton Karimbekallil20-Jun-06 2:29
Milton Karimbekallil20-Jun-06 2:29 
QuestionATL with C code.. pls looooooooooooooook hereeeeeeeeeeeeeee Pin
marcoslav15-Jun-06 2:13
marcoslav15-Jun-06 2:13 
AnswerRe: ATL with C code.. pls looooooooooooooook hereeeeeeeeeeeeeee Pin
Igor Vigdorchik16-Jun-06 7:26
Igor Vigdorchik16-Jun-06 7:26 
Questionhow to use IMultiMediastream ::GetDuration() Pin
GANsJob15-Jun-06 1:17
GANsJob15-Jun-06 1:17 
Questiontype library interface marshalling Pin
rana7413-Jun-06 23:07
rana7413-Jun-06 23:07 
AnswerRe: type library interface marshalling Pin
Roger Stoltz14-Jun-06 1:49
Roger Stoltz14-Jun-06 1:49 
QuestionCustomizing controls Pin
Nishad S12-Jun-06 0:10
Nishad S12-Jun-06 0:10 

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.