Results 1 to 3 of 3

Thread: [02/03] Reference to a non-shared member requires an object reference

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    16

    [02/03] Reference to a non-shared member requires an object reference

    Iam currently wirting a vb.net 2003 dll which links to a 3rd party com dll.
    I have successfuly created a com class project and registerd the dll using regasm.

    There is very little docs (not a surprize) and when calling the below function

    ProcessXMLFile("C:\myxl.xml)

    I get a bulid error saying "Reference to a non-shared member requires an object reference"
    I have found lots of refrences to this error online, but none that help in this situation.

    I relise the information is a little thin, not sure I have any more info but if you need more ask and I will try and provide.

    Thanks in advance

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [02/03] Reference to a non-shared member requires an object reference

    What is the code for ProcessXMLFile?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2005
    Posts
    16

    Re: [02/03] Reference to a non-shared member requires an object reference

    Edneeis,

    Thanks I have managed to get further

    I am creating an object "Fred"
    and calling as below.

    returnmsg = fred.ProcessXMLFile("c:\myxml.xml")

    This solves the object Refrence issue although I am now stuck with internal process.xml errors. I am not sure I am creting the correct object.

    No one said it would be easy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width