Click here to Skip to main content
15,890,123 members
Home / Discussions / COM
   

COM

 
GeneralRe: Visual C++ COM Component in Vb/ASP Pin
Carlos Antollini7-Jun-01 8:11
Carlos Antollini7-Jun-01 8:11 
GeneralATL ActiveX Control Generater Wrapper Classes Pin
John M. Drescher7-Jun-01 5:46
John M. Drescher7-Jun-01 5:46 
GeneralInstant Messenger Pin
Amit Dey7-Jun-01 5:09
Amit Dey7-Jun-01 5:09 
GeneralRe: Instant Messenger Pin
Henrik Sternberg9-Jun-01 4:39
Henrik Sternberg9-Jun-01 4:39 
GeneralRe: Instant Messenger Pin
Amit Dey9-Jun-01 4:53
Amit Dey9-Jun-01 4:53 
GeneralRe: Instant Messenger Pin
11-Jun-01 18:20
suss11-Jun-01 18:20 
GeneralBSTR arrays Pin
Alberto Bar-Noy6-Jun-01 2:49
Alberto Bar-Noy6-Jun-01 2:49 
GeneralRe: BSTR arrays Pin
27-Jun-01 6:27
suss27-Jun-01 6:27 
In my opinion a safe way to do this kind of operation is using a SafeArray.


vector<string>MyFileNameList__ ;
SAFEARRAY*BSTRSafeArray = SafeArrayCreateVector(VT_BSTR, 0, FileNameList__.size());

for (unsigned int index = 0 ; index < FileNameList__.size(); index++)
{

BSTR m_result = MyAnsiCtoBSTRFunct (FileNameList__[indx]) ;

reinterpret_cast<bstr*>(BSTRSafeArray->pvData)[index] = m_result ;

}
then if you want you can push it in a VARIANT struct

VARIANT *MYfileList ;

MYfileList->vt = (VT_BSTR | VT_ARRAY);
MYfileList->parray = const_cast<safearray*>(BSTRSafeArray);

Francesco Mattioli Software Developer francesco.mattioli@cedac.com
GeneralRe: BSTR arrays Pin
27-Jun-01 6:29
suss27-Jun-01 6:29 
GeneralCOM/DCOM book Pin
Derek Lakin6-Jun-01 2:24
Derek Lakin6-Jun-01 2:24 
GeneralRe: COM/DCOM book Pin
7-Jun-01 2:14
suss7-Jun-01 2:14 
GeneralRe: COM/DCOM book Pin
7-Jun-01 2:15
suss7-Jun-01 2:15 
GeneralRe: COM/DCOM book Pin
Derek Lakin7-Jun-01 4:02
Derek Lakin7-Jun-01 4:02 
GeneralRe: COM/DCOM book Pin
18-Jun-01 20:56
suss18-Jun-01 20:56 
GeneralRe: COM/DCOM book Pin
Derek Lakin19-Jun-01 1:26
Derek Lakin19-Jun-01 1:26 
GeneralPower Builder and COM Objects Pin
Alberto Bar-Noy5-Jun-01 23:26
Alberto Bar-Noy5-Jun-01 23:26 
GeneralActiveX control should not get selected in MSWord Pin
Anil krishna3-Jun-01 23:18
Anil krishna3-Jun-01 23:18 
QuestionHow to dynamicly bind the com-object Pin
2-Jun-01 22:46
suss2-Jun-01 22:46 
GeneralVerrry urgent, Control is not Coming into the program in WinNT Pin
Dhanush2-Jun-01 3:48
professionalDhanush2-Jun-01 3:48 
GeneralRe: Verrry urgent, Control is not Coming into the program in WinNT Pin
Michael P Butler3-Jun-01 22:37
Michael P Butler3-Jun-01 22:37 
GeneralRe:Re: Verrry urgent, Control is not Coming into the program in WinNT Pin
Anil krishna3-Jun-01 23:25
Anil krishna3-Jun-01 23:25 
GeneralRe:Re: Verrry urgent, Control is not Coming into the program in WinNT Pin
Anil krishna3-Jun-01 23:26
Anil krishna3-Jun-01 23:26 
GeneralRe: Verrry urgent, Control is not Coming into the program in WinNT Pin
Dhanush4-Jun-01 0:02
professionalDhanush4-Jun-01 0:02 
GeneralRe: Verrry urgent, Control is not Coming into the program in WinNT Pin
Michael P Butler4-Jun-01 0:34
Michael P Butler4-Jun-01 0:34 
GeneralRe: Verrry urgent, Control is not Coming into the program in WinNT Pin
Dhanush5-Jun-01 20:17
professionalDhanush5-Jun-01 20:17 

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.