Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
GeneralCOM Interop Pin
Ungi.1-Mar-04 21:28
Ungi.1-Mar-04 21:28 
GeneralRe: COM Interop Pin
killerslaytanic1-Mar-04 21:49
killerslaytanic1-Mar-04 21:49 
GeneralRe: COM Interop Pin
Ungi.1-Mar-04 21:53
Ungi.1-Mar-04 21:53 
GeneralRe: COM Interop Pin
killerslaytanic1-Mar-04 22:09
killerslaytanic1-Mar-04 22:09 
GeneralRe: COM Interop Pin
Ungi.1-Mar-04 22:17
Ungi.1-Mar-04 22:17 
GeneralRe: COM Interop - boxing fault? Pin
Ungi.1-Mar-04 23:29
Ungi.1-Mar-04 23:29 
GeneralRe: COM Interop - boxing fault? Pin
killerslaytanic2-Mar-04 18:58
killerslaytanic2-Mar-04 18:58 
GeneralRe: COM Interop - boxing fault? Pin
Ungi.2-Mar-04 19:07
Ungi.2-Mar-04 19:07 
Of course I will post if I have the solution.

I really think that it is a boxing failure:
I have an array with four elements. To call the method of the ocx I have pass a reference to the first element of the array. But this element is a TypeValue and no reference value. So it is boxed --> put into the heap. But only the first(!!) element!!! So the ocx gets a reference to that element and writes the data into it and also writes data into the next 3 elements. But the other 3 elements aren't in the heap. At the end of the call my first element gets unboxed back into the stack and it has the correct value but the other 3 haven't.

Currently I try to pass through a SAFEARRAY. But there is a lot of studiing because I never used to work with MFC and ClassWizard and so on (only C/C++). But I think I am on the right way!
GeneralProblem solved Pin
Ungi.4-Mar-04 20:15
Ungi.4-Mar-04 20:15 
GeneralDatagrid Rows Pin
Reinier van de Wetering1-Mar-04 19:13
Reinier van de Wetering1-Mar-04 19:13 
GeneralMethod <Summary> descriptions Pin
Reebop1-Mar-04 11:52
sussReebop1-Mar-04 11:52 
GeneralRe: Method <Summary> descriptions Pin
Meysam Mahfouzi1-Mar-04 17:45
Meysam Mahfouzi1-Mar-04 17:45 
GeneralRe: Method <Summary> descriptions Pin
Heath Stewart1-Mar-04 18:15
protectorHeath Stewart1-Mar-04 18:15 
GeneralRe: Method <Summary> descriptions Pin
Meysam Mahfouzi1-Mar-04 18:17
Meysam Mahfouzi1-Mar-04 18:17 
GeneralRe: Method &lt;Summary&gt; descriptions Pin
Reebop1-Mar-04 22:32
sussReebop1-Mar-04 22:32 
Generalfog in opengl Pin
shedid1-Mar-04 9:29
shedid1-Mar-04 9:29 
GeneralRe: fog in opengl Pin
Nick Parker1-Mar-04 9:36
protectorNick Parker1-Mar-04 9:36 
GeneralRe: fog in opengl Pin
shedid4-Mar-04 6:55
shedid4-Mar-04 6:55 
GeneralClient Disconnected. Pin
HAHAHA_NEXT1-Mar-04 8:39
HAHAHA_NEXT1-Mar-04 8:39 
GeneralRe: Client Disconnected. Pin
Heath Stewart1-Mar-04 9:21
protectorHeath Stewart1-Mar-04 9:21 
GeneralRe: Client Disconnected. Pin
HAHAHA_NEXT1-Mar-04 10:52
HAHAHA_NEXT1-Mar-04 10:52 
GeneralRe: Client Disconnected. Pin
Heath Stewart1-Mar-04 10:59
protectorHeath Stewart1-Mar-04 10:59 
GeneralRe: Client Disconnected. Pin
RNEELY2-Mar-04 6:38
RNEELY2-Mar-04 6:38 
QuestionServicedComponent: How to tell you are in a transaction? Pin
Le centriste1-Mar-04 8:29
Le centriste1-Mar-04 8:29 
AnswerRe: ServicedComponent: How to tell you are in a transaction? Pin
Heath Stewart1-Mar-04 9:18
protectorHeath Stewart1-Mar-04 9:18 

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.