Click here to Skip to main content
15,914,160 members
Home / Discussions / COM
   

COM

 
GeneralRe: CreateInstance does not work in MFC DLL Pin
Paul M Watt8-Jun-02 9:07
mentorPaul M Watt8-Jun-02 9:07 
GeneralCOM+ Session With C# (NOT in ASP.Net) Pin
MikeC#6-Jun-02 4:22
MikeC#6-Jun-02 4:22 
GeneralPassing ordinary functions to COM object Pin
Hans Ruck4-Jun-02 0:58
Hans Ruck4-Jun-02 0:58 
GeneralRe: Passing ordinary functions to COM object Pin
Rama Krishna Vavilala4-Jun-02 1:25
Rama Krishna Vavilala4-Jun-02 1:25 
GeneralRe: Passing ordinary functions to COM object Pin
Hans Ruck4-Jun-02 1:40
Hans Ruck4-Jun-02 1:40 
GeneralRe: Passing ordinary functions to COM object Pin
Paul M Watt8-Jun-02 9:08
mentorPaul M Watt8-Jun-02 9:08 
GeneralRe: Passing ordinary functions to COM object Pin
Paul M Watt8-Jun-02 9:11
mentorPaul M Watt8-Jun-02 9:11 
GeneralInexperienced with COM arrays Pin
Robin3-Jun-02 21:02
Robin3-Jun-02 21:02 
I need pass an array of data in a variant to an API call. I'm not sure if I'm passing the data correctly as I'm new to COM.

I appreciate if someone could verify the below snippet has a obvious problem when using COM arrays because the API call does not produce the intended results with the array data I passed.


// generate 3 element array of floats
SAFEARRAY *psa = SafeArrayCreateVector( VT_R4, 0, 3 );
float HUGEP *dp = 0;

SafeArrayAccessData( psa, (void HUGEP**)&dp );

dp[0] = 6;
dp[1] = 7;
dp[2] = 8; // set array to 6,7,8

SafeArrayUnaccessData( psa );

VARIANT va;
va.vt = VT_ARRAY | VT_R4;
va.parray = psa;

// pass va to API that takes a variant
Blah( va );

SafeArrayDestroy( psa );

GeneralRe: Inexperienced with COM arrays Pin
Ernest Laurentin10-Jun-02 5:26
Ernest Laurentin10-Jun-02 5:26 
GeneralRe: Inexperienced with COM arrays Pin
Robin10-Jun-02 21:57
Robin10-Jun-02 21:57 
GeneralRe: Inexperienced with COM arrays Pin
Ernest Laurentin13-Jun-02 20:15
Ernest Laurentin13-Jun-02 20:15 
GeneralRe: Inexperienced with COM arrays Pin
Robin13-Jun-02 20:42
Robin13-Jun-02 20:42 
GeneralRe: Inexperienced with COM arrays Pin
Ernest Laurentin14-Jun-02 4:50
Ernest Laurentin14-Jun-02 4:50 
GeneralRe: Inexperienced with COM arrays Pin
Robin14-Jun-02 6:33
Robin14-Jun-02 6:33 
GeneralRe: Inexperienced with COM arrays Pin
Ernest Laurentin14-Jun-02 6:44
Ernest Laurentin14-Jun-02 6:44 
GeneralRe: Inexperienced with COM arrays Pin
Robin16-Jun-02 20:46
Robin16-Jun-02 20:46 
GeneralRe: Inexperienced with COM arrays Pin
Ernest Laurentin19-Jun-02 18:28
Ernest Laurentin19-Jun-02 18:28 
GeneralExcel automation for starters Pin
Zizilamoroso3-Jun-02 6:50
Zizilamoroso3-Jun-02 6:50 
GeneralRe: Excel automation for starters Pin
2-Jul-02 2:58
suss2-Jul-02 2:58 
GeneralATL COM DLL and Bitmaps Pin
Ranjan Banerji1-Jun-02 19:37
Ranjan Banerji1-Jun-02 19:37 
GeneralRe: ATL COM DLL and Bitmaps Pin
Ranjan Banerji2-Jun-02 6:16
Ranjan Banerji2-Jun-02 6:16 
GeneralRe: ATL COM DLL and Bitmaps Pin
Todd.Harvey20-Aug-02 11:13
Todd.Harvey20-Aug-02 11:13 
GeneralWindows Protected Storage using "IPStorage" class Pin
David Lau1-Jun-02 8:22
David Lau1-Jun-02 8:22 
GeneralWTL ScrollView scrolling problem! Pin
ramjan1-Jun-02 5:25
ramjan1-Jun-02 5:25 
QuestionSCODE or HRESULT or...? Pin
Member 9631-May-02 9:16
Member 9631-May-02 9:16 

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.