Tigah
June 29th, 2007, 08:07 AM
Hi there,
i need some help with an ActiveX Control under VC++ .Net
The Method is defined as:
UploadBuffer(VARIANT* VarPBuffer).
After using the Wizzard i got a Windows Form and a Wrapper Class for the control with the following signature:
public short UploadBuffer(ref object VarPBuffer)
and ILDasm shows
UploadBuffer:int16(Object&)
Now here's the problem
I got an array of unsigned chars which need to be transfered to the activex controll buffer. In VC++ with MFC this was done this way:
COleVariant *m_Buffer;
CByteArray *m_Array;
...
...
m_Array = new CByteArray;
m_Array->SetSize (1024 * 768);
m_Buffer=new COleVariant (*m_Array);
How do i get this thingie working under .Net ;/ It's really driving me crazy (And no i can't just recompile the ocx because its comercially sold and the source code is not available)
i need some help with an ActiveX Control under VC++ .Net
The Method is defined as:
UploadBuffer(VARIANT* VarPBuffer).
After using the Wizzard i got a Windows Form and a Wrapper Class for the control with the following signature:
public short UploadBuffer(ref object VarPBuffer)
and ILDasm shows
UploadBuffer:int16(Object&)
Now here's the problem
I got an array of unsigned chars which need to be transfered to the activex controll buffer. In VC++ with MFC this was done this way:
COleVariant *m_Buffer;
CByteArray *m_Array;
...
...
m_Array = new CByteArray;
m_Array->SetSize (1024 * 768);
m_Buffer=new COleVariant (*m_Array);
How do i get this thingie working under .Net ;/ It's really driving me crazy (And no i can't just recompile the ocx because its comercially sold and the source code is not available)