Click here to Skip to main content
15,915,172 members
Home / Discussions / COM
   

COM

 
AnswerRe: Retrive COM Interfaces Pin
vishalmore11-Oct-05 1:54
vishalmore11-Oct-05 1:54 
AnswerRe: Retrive COM Interfaces Pin
User 21559711-Oct-05 8:37
User 21559711-Oct-05 8:37 
GeneralRe: Retrive COM Interfaces Pin
benjamin2311-Oct-05 16:53
benjamin2311-Oct-05 16:53 
GeneralRe: Retrive COM Interfaces Pin
User 21559711-Oct-05 21:03
User 21559711-Oct-05 21:03 
QuestionOPC Pin
Marc Soleda10-Oct-05 4:29
Marc Soleda10-Oct-05 4:29 
Questioninsert a object when the activex container Initializing Pin
ccto6-Oct-05 6:46
ccto6-Oct-05 6:46 
QuestionWebBrowserControl & DISPID_AMBIENT_DLCONTROL Pin
AlexR1236-Oct-05 6:28
AlexR1236-Oct-05 6:28 
QuestionSafeArrayCreate(Ex) Failure.... Pin
morenz6-Oct-05 2:46
morenz6-Oct-05 2:46 
Hi Folks Wink | ;)
I finished burning my brain with system-level configuration of my com, and now I get the first "normal" errors.

I have a Variant that contains an array of a structure (4 int), and 2 other int, that are rows and columns (of the image I must import)

In this piece of code

HRESULT Image2Variant (IVA_Image Source, VARIANT *Dest)
{

SAFEARRAYBOUND sabRGB[6]
sabRGB[0].lLBound = 0;
sabRGB[0].cElements = Source.columns * Source.rows;
sabRGB[1].lLBound = 0;
sabRGB[1].cElements = Source.columns * Source.rows;
sabRGB[2].lLBound = 0;
sabRGB[2].cElements = Source.columns * Source.rows;
sabRGB[3].lLBound = 0;
sabRGB[3].cElements = Source.columns * Source.rows;
sabRGB[4].lLBound = 0;
sabRGB[4].cElements = 1 // the only columns value
sabRGB[5].lLBound = 0;
sabRGB[5].cElements = 1 // the only rows value

VariantInit(Dest);
Dest->vt = VT_VARIANT | VT_ARRAY;
Dest->parray = SafeArrayCreate(Dest->vt, 1, saRGB);

....

Dest->parray is NULL, so I think that function fails, but I don't know why...
Suggestions?
Thanx
Morenz
AnswerRe: SafeArrayCreate(Ex) Failure.... Pin
David_Leikis6-Oct-05 5:17
David_Leikis6-Oct-05 5:17 
GeneralRe: SafeArrayCreate(Ex) Failure.... Pin
morenz7-Oct-05 0:21
morenz7-Oct-05 0:21 
QuestionAccessing COM componenets from Java Pin
kozu5-Oct-05 8:07
kozu5-Oct-05 8:07 
AnswerRe: Accessing COM componenets from Java Pin
Carsten Leue21-Oct-05 22:45
Carsten Leue21-Oct-05 22:45 
QuestionCOM objects in VC#...client in VC++6... how??? Pin
nonothing5-Oct-05 7:55
nonothing5-Oct-05 7:55 
QuestionRegistering Proxy/stub DLL Pin
David_Leikis5-Oct-05 4:34
David_Leikis5-Oct-05 4:34 
AnswerRe: Registering Proxy/stub DLL Pin
Roger Stoltz11-Oct-05 2:31
Roger Stoltz11-Oct-05 2:31 
GeneralRe: Registering Proxy/stub DLL Pin
David_Leikis11-Oct-05 2:59
David_Leikis11-Oct-05 2:59 
GeneralRe: Registering Proxy/stub DLL Pin
Roger Stoltz11-Oct-05 3:24
Roger Stoltz11-Oct-05 3:24 
QuestionCoCreateInstance Pin
Chirag_Saglani5-Oct-05 0:46
Chirag_Saglani5-Oct-05 0:46 
AnswerRe: CoCreateInstance Pin
Jörgen Sigvardsson5-Oct-05 2:19
Jörgen Sigvardsson5-Oct-05 2:19 
GeneralRe: CoCreateInstance Pin
Chirag_Saglani5-Oct-05 17:30
Chirag_Saglani5-Oct-05 17:30 
AnswerRe: CoCreateInstance Pin
vishalmore11-Oct-05 2:07
vishalmore11-Oct-05 2:07 
QuestionQuestion to Gurus Pin
Jagadeesh VN4-Oct-05 20:35
Jagadeesh VN4-Oct-05 20:35 
AnswerRe: Question to Gurus Pin
vishalmore11-Oct-05 2:24
vishalmore11-Oct-05 2:24 
QuestionStrange, even stranger errors with my DCOM... (Long MSG) Pin
morenz4-Oct-05 3:29
morenz4-Oct-05 3:29 
AnswerRe: Strange, even stranger errors with my DCOM... (Long MSG) Pin
morenz5-Oct-05 4:31
morenz5-Oct-05 4:31 

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.