Get data from VARIANT
- From: 2dipikke <2dipikke@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Jul 2008 05:22:00 -0700
Hi,
I'm using a COM ActiveX inside my application written in C#.
I have no source of the ActiveX, just a small snippet.
There's an event in the ActiveX that pass some data using a VARIANT
structure as defined in the following snippet:
struct ImageInfo {
PBYTE Y;
PBYTE U;
PBYTE V;
}
ImageInfo* info = …;
VARIANT V;
V.vt = VT_BYREF | VT_UI1
V.pbVal = Info->Y.
Visual Studio translate the event signature with a 'ref object' parameter
for the VARIANT.
I need to reach the pbVal member and marshal it to get an array of bytes.
How should I do?
Thank you in advance
Marco
.
- Prev by Date: Re: StdCall vs. CDecl
- Next by Date: Do you need to release a MSMQ.MSMQManagement object from C#
- Previous by thread: returning and accessing an object via com
- Next by thread: Do you need to release a MSMQ.MSMQManagement object from C#
- Index(es):
Relevant Pages
|
Loading