As a minimum you should remove Byval from the X and Y parameters.

Regards
Uffe

----- Original Message ----- 
From: "sagent100" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, November 09, 2008 6:36 PM
Subject: [mitab] Bug in mitab_c_set_points function using VB.NET ? (i am
getting crazy !!)


> Hi,
>
> I am getting crazy !
> Please anyone were able to use the function mitab_c_set_points in a
> VB.Net program ?
>
> I have this definition function:
>
> Declare Sub mitab_c_set_points Lib "mitab.dll"
> Alias "[EMAIL PROTECTED]" (ByVal feature As Integer, ByVal part
> As Integer, ByVal vertex_count As Integer, ByVal x As Double, ByVal y
> As Double)
>
> dim ldbl_PosX(10) as double
> dim ldbl_PosY(10) as double
> ..
> ..
> ldbl_PosX(0) = -64.542125
> ldbl_PosY(0) = -37.492778
>
> mitab_c_set_points(li_feature, 0, 1, ldbl_PosX(0), ldbl_PosY(0))
>
>
> but when I want to use it I get this message:
> "Attempted to read or write protected memory. This is often an
> indication that other memory is corrupt."
>
> I will appreciate a loy any help !!
> thank you !
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/mitab/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to