Results 1 to 8 of 8

Thread: how can i use DLL ?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Posts
    48

    Unhappy how can i use DLL ?

    Hi, can someone guide me how can i use a DLL in my code.

    thanks.

  2. #2
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033
    Read the COM course from Karl Moore, it is a very good start...
    Help keep this forum clean: Remember to mark your thread as resolved · Search before you post · Remember to rate posts that help

    VS2010: Visual Studio 2010 Keybinding Posters
    · Service Pack 1
    Tools: GhostDoc - automatically generates XML documentation comments
    · NuGet package Manager · PowerCommands IDE extensions
    Source Control: ankhsvn - integration for SVN
    · Windows Shell Extension for Subversion

    Development Laptop: Intel Core i5 430M 2.26 GHz @ 2.53 GHz
    · 4096 MB, DDR3 PC3-8500F (533 MHz), Kingston · ATI Mobility Radeon HD 5470 · 15.6 @ 16:9, 1366x768 pixel, HD LED LCD

    I follow:
    JoelOnSoftware - A weblog by Joel Spolsky, a programmer working in New York City, about software and software companies
    ScottGu's Blog - Scott Guthrie works for Microsoft as the Product Manager of the .NET Framework
    Portugal-a-Programar - Portuguese Developers Community
    .NET Rocks! - is a weekly Internet audio talk show for .NET Developers.

    Programming Languages:
    C#
    · VB.NET · JAVA · PHP · Javascript
    Other:
    XML
    · HTML · CSS · JQuery · SQL



    *** Proudly Portuguese ***

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You have to define the DLL and the function you want from it. Definitions go in Declarations section of a module and look a bit like this
    Code:
    Public Declare Function FuntionName Lib "my.dll" Alias "functionnameA" (Variable1 As Long etc etc) As Long
    You should find the actual declare along with the dll somewhere.

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    www.vbapi.com

    Most of the declares you will want to look for
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by crptcblade
    Most of the declares you will want to look for
    I assumed it was a third party one, in which case it wouldn't be there . If it is one of the Win32 API's, then indeed it will be, but if it is third party, there should be a declare in the documentation. Just copy/paste that into the declarations section of a module.

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    oh, yes, a third party dll won't be found there
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by crptcblade
    What was that for?!

  8. #8
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by chrisjk
    What was that for?!
    nothing, really, I just thought my post could use a smiley
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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