Click here to Skip to main content
15,917,538 members
Home / Discussions / COM
   

COM

 
Questionhelp req in interoperatibility of com & .net Pin
arusmemon3-Oct-05 4:17
arusmemon3-Oct-05 4:17 
QuestionCOM getting phased out ? Pin
prcontact@hotmail.com3-Oct-05 2:56
prcontact@hotmail.com3-Oct-05 2:56 
GeneralRe: COM getting phased out ? Pin
Jörgen Sigvardsson3-Oct-05 6:20
Jörgen Sigvardsson3-Oct-05 6:20 
AnswerRe: COM getting phased out ? Pin
GizzoF3-Oct-05 21:34
GizzoF3-Oct-05 21:34 
Questionword addins Pin
a0kboy3-Oct-05 2:10
a0kboy3-Oct-05 2:10 
QuestionInvokeHelper In COM Pin
nvamshi3-Oct-05 1:35
nvamshi3-Oct-05 1:35 
AnswerRe: InvokeHelper In COM Pin
Anonymous3-Oct-05 8:06
Anonymous3-Oct-05 8:06 
QuestionAxAcroPDFLib ???? Pin
Walt12330-Sep-05 0:09
Walt12330-Sep-05 0:09 
AnswerRe: AxAcroPDFLib ???? Pin
Walt12330-Sep-05 15:53
Walt12330-Sep-05 15:53 
QuestionPassing Events to ActiveX Controls Pin
Ashwin kumar Gurujala29-Sep-05 23:29
Ashwin kumar Gurujala29-Sep-05 23:29 
QuestionPassing Events to ActiveX Controls Pin
Ashwin kumar Gurujala29-Sep-05 23:29
Ashwin kumar Gurujala29-Sep-05 23:29 
QuestionProblem with UTF-8 data Pin
Veera Raghavendra28-Sep-05 21:03
Veera Raghavendra28-Sep-05 21:03 
QuestionHow to put a struct into a VARIANT? Pin
morenz27-Sep-05 23:23
morenz27-Sep-05 23:23 
AnswerRe: How to put a struct into a VARIANT? Pin
GizzoF28-Sep-05 0:05
GizzoF28-Sep-05 0:05 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz28-Sep-05 3:47
morenz28-Sep-05 3:47 
GeneralRe: How to put a struct into a VARIANT? Pin
Mike Dimmick28-Sep-05 5:09
Mike Dimmick28-Sep-05 5:09 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz29-Sep-05 1:27
morenz29-Sep-05 1:27 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz30-Sep-05 0:36
morenz30-Sep-05 0:36 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz30-Sep-05 3:28
morenz30-Sep-05 3:28 
AnswerRe: How to put a struct into a VARIANT? Pin
Rory Solley29-Sep-05 0:49
Rory Solley29-Sep-05 0:49 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz30-Sep-05 0:42
morenz30-Sep-05 0:42 
GeneralRe: How to put a struct into a VARIANT? Pin
Rory Solley30-Sep-05 4:10
Rory Solley30-Sep-05 4:10 
Yes, use sizeof(YourStruct). If you have embedded structs, you're going to have to be more creative e.g.

sizeof(YourStruct) + (sizeof(YourEmbeddedStruct) * NumberOfEmbeddedStructs)

etc.
It can get tricky if your structs contain "variable" data, such as strings. In the past, I've either defined the maximum size of the string (and therefore constrained the array inside the struct definition) or I've added a counter then a pointer, e.g.

...
unsigned long ByteCount;
unsigned char* pByteData;
};

The count tells the caller how big the variable data is. Hope that helps.
GeneralRe: How to put a struct into a VARIANT? Pin
Jörgen Sigvardsson3-Oct-05 6:22
Jörgen Sigvardsson3-Oct-05 6:22 
GeneralRe: How to put a struct into a VARIANT? Pin
Rory Solley3-Oct-05 22:20
Rory Solley3-Oct-05 22:20 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz4-Oct-05 3:09
morenz4-Oct-05 3:09 

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.