Results 1 to 2 of 2

Thread: import dll file ?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    import dll file ?

    hi..
    i got mifare software written in vb.

    there are dll file, and a bas file. Seems that the bas file import/declare functions that provided by the dll file.
    what is the really use of bas file ?
    how can i extract functions in dll file by using c# ?
    - i tried to import the dll file, it said that "it is not a COM component..
    i'm new to all of this.
    can anyone give any brief explanation or solution to my C# ?

    sorry for my bad english
    thx for reading

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: import dll file ?

    If your library is not a COM component then the functions it contains will have to have been exported for you to use them, and you'll have to declare them as external function using the DllImportAttribute class, just like Windows API functions.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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