Re: passing array structure from vb to vc++ dll
- From: "Mike D Sutton" <EDais@xxxxxxxx>
- Date: Thu, 4 Aug 2005 16:40:59 +0100
> Iam facing problem when passing array of structure to a function in vb
> to vc++ dll.
> i followed the steps given by the experts in google groups.
> but still iam facing the problem.
> so please any body can help me and if possible please give me some
> samples
<code snipped>
"c(128) As Integer" declares an array of _129_ signed integers where as I'd
bet your c declaration declares it as "short c[128];" which actually
declares 128 signed integers. If so then change your declaration to read
"c(0 To 127) As Integer" and you should get the correct results through
(this will also keep the array indices the same in both your VB and C
applications.)
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/
.
- Follow-Ups:
- Re: passing array structure from vb to vc++ dll
- From: Mike D Sutton
- Re: passing array structure from vb to vc++ dll
- References:
- passing array structure from vb to vc++ dll
- From: niranjan
- passing array structure from vb to vc++ dll
- Prev by Date: Re: using PlaySound within a dll
- Next by Date: Re: passing array structure from vb to vc++ dll
- Previous by thread: passing array structure from vb to vc++ dll
- Next by thread: Re: passing array structure from vb to vc++ dll
- Index(es):