Re: Can't fill a SafeArray of UDT in win64
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Mon, 21 Aug 2006 10:05:02 -0700
Can you post the _exact_ definition of your struct in IDL?
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Ayal" <ayal@xxxxxxxxxxxxxxxxx> wrote in message
news:exVW$%23SxGHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
I have a problem to fill a SAFEARRAY of UDT in x64. The reason is the size
of struct in C++ is not the same as the size in COM.
When I type sizeof(MyStruct) I get a different number then what is
returned
by IRecordInfo->GetSize()
For example
struct MyStruct
{
VARIANT v;
}
sizeof(MyStructs) gives 24, but IRecordInfo->GetSize() return 16.
In WIN32 it's OK.
Did I miss something?
Ayal
.
- Follow-Ups:
- Re: Can't fill a SafeArray of UDT in win64
- From: Ayal
- Re: Can't fill a SafeArray of UDT in win64
- References:
- Can't fill a SafeArray of UDT in win64
- From: Ayal
- Can't fill a SafeArray of UDT in win64
- Prev by Date: Re: How to get an OLE array of objects in Perl?
- Next by Date: Re: Can't fill a SafeArray of UDT in win64
- Previous by thread: Can't fill a SafeArray of UDT in win64
- Next by thread: Re: Can't fill a SafeArray of UDT in win64
- Index(es):
Relevant Pages
|