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

ATL / WTL / STL

 
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 
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 
I also have a problem about BSTR Parameter,codes as below:
HRESULT GetBSTR3([out]BSTR* bufName1,[out,retval]BSTR* bufName2)
{
USES_CONVERSION;
CComBSTR b(L"hello,you have called GetBSTR3");
*bufName1=b.Copy();

TCHAR buf[]=TEXT("it is return value");
*bufName2=T2BSTR(buf);
}

VB Client as below:

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

running these codes, runtime error

if I write codes as below:
str2 = a.GetBSTR3 str1

compile error

how can I do it?


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 
GeneralRe: Window handle in Active-x in ATL Pin
AghaKhan16-Dec-04 3:16
AghaKhan16-Dec-04 3:16 
GeneralRe: Window handle in Active-x in ATL Pin
Jörgen Sigvardsson18-Dec-04 14:29
Jörgen Sigvardsson18-Dec-04 14:29 
Generala global #define Pin
dSolariuM12-Dec-04 18:52
dSolariuM12-Dec-04 18:52 

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.