Click here to Skip to main content
15,897,704 members
Home / Discussions / COM
   

COM

 
Generalexporting datagrid details into word Pin
sujithapril25-Nov-04 12:49
sujithapril25-Nov-04 12:49 
Generalinserting problem with OLEDB Pin
seans00225-Nov-04 4:55
seans00225-Nov-04 4:55 
GeneralRe: inserting problem with OLEDB Pin
Steve S29-Nov-04 22:50
Steve S29-Nov-04 22:50 
GeneralRe: inserting problem with OLEDB Pin
seans00230-Nov-04 3:30
seans00230-Nov-04 3:30 
QuestionHow to use variable types defined in a COM in Matlab Pin
tpndtbk24-Nov-04 1:12
tpndtbk24-Nov-04 1:12 
Generalabout "access is denied" at DCOM Pin
pig123423-Nov-04 21:01
pig123423-Nov-04 21:01 
GeneralI got A Queistion about COM+ Pin
Rassul Yunussov21-Nov-04 0:44
Rassul Yunussov21-Nov-04 0:44 
QuestionHow do I return a SAFEARRAY from an ATL object? Pin
Crappity Crap19-Nov-04 13:15
Crappity Crap19-Nov-04 13:15 
I have this strange bug witih safearrays. I was hoping you understood what is going on, so I could learn something from my mistake.


The interface I’ve designed has a method Foo

[id(7)] HRESULT Foo([in] SAFEARRAY(double)* pSA);


The function goes like this:
Foo(SAFEARRAY** pSA)
{
//destroy the incoming array
SafeArrayDestroy (pSA);
//create a new one of desired size
*pSA = SafeArrayCreateVector(VT_R8,0,10);
return S_OK;
}

In VB, I am calling the function:
Public Sub Func()
Dim arr1() as double
Dim arr2(1) as double

Obj.Foo(arr1)
MsgBox UBound (arr1)
//messagebox reports UBound is 9

Obj.Foo(arr2)
MsgBox UBound (arr2)
//messagebox reports UBound 1

End Sub

AnswerRe: How do I return a SAFEARRAY from an ATL object? Pin
Steve S21-Nov-04 22:31
Steve S21-Nov-04 22:31 
AnswerRe: How do I return a SAFEARRAY from an ATL object? Pin
Anonymous6-Dec-04 3:54
Anonymous6-Dec-04 3:54 
QuestionIZoneIdentifier interface? Pin
dandy7218-Nov-04 11:11
dandy7218-Nov-04 11:11 
AnswerRe: IZoneIdentifier interface? Pin
geo_m19-Nov-04 3:20
geo_m19-Nov-04 3:20 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 4:59
dandy7219-Nov-04 4:59 
GeneralRe: IZoneIdentifier interface? Pin
dandy7219-Nov-04 7:33
dandy7219-Nov-04 7:33 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 0:47
geo_m23-Nov-04 0:47 
GeneralRe: IZoneIdentifier interface? Pin
dandy7223-Nov-04 7:20
dandy7223-Nov-04 7:20 
GeneralRe: IZoneIdentifier interface? Pin
geo_m23-Nov-04 22:52
geo_m23-Nov-04 22:52 
GeneralRe: IZoneIdentifier interface? Pin
geo_m24-Nov-04 1:42
geo_m24-Nov-04 1:42 
GeneralRe: IZoneIdentifier interface? Pin
dandy7225-Nov-04 5:11
dandy7225-Nov-04 5:11 
GeneralRe: IZoneIdentifier interface? Pin
geo_m26-Nov-04 3:11
geo_m26-Nov-04 3:11 
GeneralRe: IZoneIdentifier interface? Pin
dandy7226-Nov-04 5:36
dandy7226-Nov-04 5:36 
QuestionHow to return a vector or an array? Pin
tpndtbk18-Nov-04 2:59
tpndtbk18-Nov-04 2:59 
AnswerRe: How to return a vector or an array? Pin
User 21559718-Nov-04 18:46
User 21559718-Nov-04 18:46 
GeneralRe: How to return a vector or an array? Pin
Steve S18-Nov-04 23:23
Steve S18-Nov-04 23:23 
GeneralRe: How to return a vector or an array? Pin
User 21559718-Nov-04 23:39
User 21559718-Nov-04 23:39 

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.