• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Member
    Posts: 6
    Registered: ‎08-27-2009

    Getlinks with 64 bit

    220 Views, 4 Replies
    12-30-2011 07:33 AM

    I am running 2012 64 bit on Win 7.  I have an external .exe, using VB.net, that works fine in a 32 bit environment.  However, while testing it on a 64 bit system I keep having problems with the getlinks.  Specifically:

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

    index is long

    entityset is a selection set

    objids is an array of longs    <-- I have also tried an array of objects with no luck

    linkTemplate is a CAO.LinkTemplate

    linkTypes is an Integer

          

    For index = 0 To entitySet.Count - 1

                    objIds(index) = entitySet.Item(index).ObjectID

    Next index

     

    linkSel = dbConnect.GetLinks(linkTemplate, objIds, linkTypes)  <-- errors here

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

    If I use "entitySet.Item(index).ObjectID" my return value is something like - 8796083315392

    howver if I use "entitySet.Item(index).ObjectID32" my return value is something like - 42

     

    I have looked on the boards and around the Net and have seen many references to this but I just have not seen much in the way of a fix.

     

    Any help is greatly appreciated.

     

    Thanks,

    JB

     

    

    

    Please use plain text.
    Distinguished Contributor
    Posts: 104
    Registered: ‎12-29-2005

    Re: Getlinks with 64 bit

    12-30-2011 12:33 PM in reply to: joelbrodeur1967

    Howdy,

     

    I thought ObjectId was: public struct ObjectId : IComparable<ObjectId>?

    How about an array of ObjectId's?

    r,

    dennis

     

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎08-27-2009

    Re: Getlinks with 64 bit

    12-30-2011 12:53 PM in reply to: joelbrodeur1967

    Thank you for the reply.  Maybe I am missing something here but in VB.net I am not able to make an array of objectids.  Perhaps I am missing a reference. 

     

    As a side note I am finding the same issue in reload labels.

     

    I have set VB to compile to x64 only - as indictaed in some other posts.

     

    Thank you,

    JB

    Please use plain text.
    *Expert Elite*
    Posts: 1,640
    Registered: ‎04-29-2006

    Re : Getlinks with 64 bit

    12-31-2011 02:46 PM in reply to: joelbrodeur1967

    Hi,

     

    As you're using the COM API, you should have more replies in the VBA forum.

     

    Did you try to use ObjectId3d instead of ObjectId ?

    The '32' suffixed propeties were provided to replace the non suffixed ones with 64 bits platforms.

    Gilles Chanteau
    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎08-27-2009

    Re : Getlinks with 64 bit

    01-03-2012 07:12 AM in reply to: _gile

    Thanks,

    I will move this over there and give it a try.

     

    Joel

    Please use plain text.