Click here to Skip to main content
15,905,683 members
Home / Discussions / COM
   

COM

 
QuestionWindows Services Pin
Chandra.Anumakonda30-Sep-07 22:39
Chandra.Anumakonda30-Sep-07 22:39 
Questionsys files Pin
zon_cpp29-Sep-07 20:31
zon_cpp29-Sep-07 20:31 
AnswerRe: sys files [modified] Pin
Baltoro4-Oct-07 12:24
Baltoro4-Oct-07 12:24 
QuestionCOM Transaction Support Pin
SakthiSurya28-Sep-07 0:34
SakthiSurya28-Sep-07 0:34 
Questionthreading And Distributed transaction Pin
Fadi Abu-Mathkour25-Sep-07 7:58
Fadi Abu-Mathkour25-Sep-07 7:58 
AnswerRe: threading And Distributed transaction Pin
User 21559726-Sep-07 0:36
User 21559726-Sep-07 0:36 
QuestionIXMLDOMAttribute::put_value Pin
IWannaTalk24-Sep-07 3:36
IWannaTalk24-Sep-07 3:36 
AnswerRe: IXMLDOMAttribute::put_value Pin
Nathan Holt at EMOM24-Sep-07 10:56
Nathan Holt at EMOM24-Sep-07 10:56 
vippavlo wrote:
Can i save array of int values into attribute using put_value method????
Because i have some problem with this. It save only first element of array.
Maybe i have some error in my code,

int *arr = new int[ 5 ];
for( int i = 0 ; i < 5 ; i++ )
arr[ i ] = i;
VARIANT var;
var.vt = VT_BYREF|VT_INT;
var.pintVal = &arr[0];
hr = spXMLDOMAttribute->put_value( var );


I don't think you can just save an array to an attribute, but I do know that VT_BYREF doesn't make it an array. If this were to work at all, you would have to create a SAFEARRAY and make a variant of type VT_ARRAY | VT_INT

Nathan
GeneralRe: IXMLDOMAttribute::put_value [modified] Pin
IWannaTalk24-Sep-07 11:54
IWannaTalk24-Sep-07 11:54 
GeneralRe: IXMLDOMAttribute::put_value Pin
IWannaTalk25-Sep-07 23:35
IWannaTalk25-Sep-07 23:35 
GeneralRe: IXMLDOMAttribute::put_value Pin
Nathan Holt at EMOM26-Sep-07 12:40
Nathan Holt at EMOM26-Sep-07 12:40 
GeneralRe: IXMLDOMAttribute::put_value Pin
IWannaTalk27-Sep-07 4:12
IWannaTalk27-Sep-07 4:12 
Questionsimple helloworld program for caling java from c++ ! help ! Pin
amitamit19820-Sep-07 22:53
amitamit19820-Sep-07 22:53 
QuestionRun-Time Check Failure #0 Pin
donguy7620-Sep-07 16:38
donguy7620-Sep-07 16:38 
AnswerRe: Run-Time Check Failure #0 Pin
Nathan Holt at EMOM21-Sep-07 9:02
Nathan Holt at EMOM21-Sep-07 9:02 
QuestionUsing Com dll in ASP.NET gives Security error Pin
Chetan Patel19-Sep-07 18:48
Chetan Patel19-Sep-07 18:48 
QuestionAdding buttons to Explorer toolbar (Groove 'Folder sync' style) Pin
__DanC__19-Sep-07 4:31
__DanC__19-Sep-07 4:31 
QuestionWhy we need COM Pin
Nandu_77b18-Sep-07 3:17
Nandu_77b18-Sep-07 3:17 
AnswerRe: Why we need COM Pin
Nathan Holt at EMOM18-Sep-07 7:43
Nathan Holt at EMOM18-Sep-07 7:43 
GeneralRe: Why we need COM Pin
Nandu_77b19-Sep-07 5:31
Nandu_77b19-Sep-07 5:31 
GeneralRe: Why we need COM Pin
Baltoro4-Oct-07 12:44
Baltoro4-Oct-07 12:44 
QuestionAvoid hang of the component manager with com+ console messages [modified] Pin
Vider18-Sep-07 1:51
Vider18-Sep-07 1:51 
Questioncom and threading models,and a question about dlls? Pin
rozbeh18-Sep-07 0:18
rozbeh18-Sep-07 0:18 
AnswerRe: com and threading models,and a question about dlls? Pin
Nathan Holt at EMOM18-Sep-07 7:52
Nathan Holt at EMOM18-Sep-07 7:52 
QuestionCOM List over Network Pin
Fatbuddha 117-Sep-07 21:22
Fatbuddha 117-Sep-07 21:22 

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.