Click here to Skip to main content
15,890,506 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Help me with OLE error ( RPC_E_CANTCALLOUT_ININPUTSYNCCALL ) Pin
Jörgen Sigvardsson23-Dec-04 7:00
Jörgen Sigvardsson23-Dec-04 7:00 
GeneralRe: Help me with OLE error ( RPC_E_CANTCALLOUT_ININPUTSYNCCALL ) Pin
User 21559723-Dec-04 22:22
User 21559723-Dec-04 22:22 
GeneralWrong vector ctor used with iterator Pin
Johann Gerell21-Dec-04 20:03
Johann Gerell21-Dec-04 20:03 
GeneralRe: Wrong vector ctor used with iterator Pin
Stuart Dootson21-Dec-04 22:19
professionalStuart Dootson21-Dec-04 22:19 
GeneralRe: Wrong vector ctor used with iterator Pin
Johann Gerell22-Dec-04 0:32
Johann Gerell22-Dec-04 0:32 
GeneralRe: Wrong vector ctor used with iterator Pin
Stuart Dootson22-Dec-04 0:38
professionalStuart Dootson22-Dec-04 0:38 
GeneralRe: Wrong vector ctor used with iterator Pin
Johann Gerell22-Dec-04 0:49
Johann Gerell22-Dec-04 0:49 
Generalabout parameter of BSTR Pin
yingkou21-Dec-04 0:44
yingkou21-Dec-04 0:44 
I am a beginer of learning programming by ATL ,I have writen a interface as below:
HRESULT GetBSTR1([out,retval]BSTR* bstrInfo)
{
CComBSTR b(L"hello,you have called GetBSTR1");
*bstrInfo=b.Copy();
return S_OK;
}
HRESULT GetBSTR2([out]BSTR* bstrInfo)
{
CComBSTR b(L"hello,you have called GetBSTR2");
*bstrInfo=b.Copy();
return S_OK;
}

and VB Client Codes as below:

Private Sub Command1_Click()
Dim a As New ATLTESTLib.TestOne
Dim str1, str2 As String
str1 = a.GetBSTR1
MsgBox (str1)
a.GetBSTR2(str2)
MsgBox (str2)
End Sub

problem is str1 is OK,but str2 is empty,why?
GeneralRe: about parameter of BSTR Pin
Vi222-Dec-04 4:20
Vi222-Dec-04 4:20 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 15:21
yingkou22-Dec-04 15:21 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 15:28
yingkou22-Dec-04 15:28 
GeneralRe: about parameter of BSTR Pin
ThatsAlok22-Dec-04 17:21
ThatsAlok22-Dec-04 17:21 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 18:34
yingkou22-Dec-04 18:34 
GeneralRe: about parameter of BSTR Pin
Vi223-Dec-04 2:34
Vi223-Dec-04 2:34 
GeneralRe: about parameter of BSTR Pin
yingkou23-Dec-04 12:22
yingkou23-Dec-04 12:22 
GeneralATL, WTL , CTL, MFC...whatever Pin
Mridang Agarwalla16-Dec-04 22:03
Mridang Agarwalla16-Dec-04 22:03 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
ThatsAlok16-Dec-04 23:12
ThatsAlok16-Dec-04 23:12 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
Alex Korchemniy17-Dec-04 13:31
Alex Korchemniy17-Dec-04 13:31 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
Jörgen Sigvardsson18-Dec-04 14:25
Jörgen Sigvardsson18-Dec-04 14:25 
GeneralWTL / Why the associated window is not destroyed Pin
million6016-Dec-04 21:02
million6016-Dec-04 21:02 
GeneralRe: WTL / Why the associated window is not destroyed Pin
Michael Dunn20-Dec-04 7:45
sitebuilderMichael Dunn20-Dec-04 7:45 
GeneralRe: WTL / Why the associated window is not destroyed Pin
youyo30-Dec-04 21:16
youyo30-Dec-04 21:16 
GeneralActiveX ctrl not loading in browser Pin
Muhammad Azam16-Dec-04 20:13
Muhammad Azam16-Dec-04 20:13 
GeneralWindow handle in Active-x in ATL Pin
AghaKhan14-Dec-04 14:37
AghaKhan14-Dec-04 14:37 
GeneralRe: Window handle in Active-x in ATL Pin
Jörgen Sigvardsson15-Dec-04 9:32
Jörgen Sigvardsson15-Dec-04 9:32 

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.