getting started use dll for shared code.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AshleyT

    #1

    getting started use dll for shared code.

    I have create a dll that contains a funtion that passes back a boolean.
    This being my first time using a dll, I am looking for a simple example of
    what to do next that will allow me to run the dll from a vb.net windows app
    or a aspx project. Does any one know of a vb.net example of the whole
    process of creating a vb.net dll and then being able to use it in a vb.net
    application?

    Thanks for any help you can provide.
  • Christopher Kimbell

    #2
    Re: getting started use dll for shared code.

    This is what I would do:

    Create a solution.
    Add in the dll project to the solution
    Add in the exe/aspx project to the solution

    In the exe/aspx project, add a project reference to the dll project. You can
    do this from the solution explorer, right click on the references node.

    From the exe code, add whatever VB.NET uses to include the namespace the dll
    uses, I'm a C# guy.
    Then use the object located in the dll as any other object.


    Chris

    "AshleyT" <AshleyT@discus sions.microsoft .com> wrote in message
    news:A5F6E256-53F2-4B58-A7CD-30BAE3849265@mi crosoft.com...[color=blue]
    >I have create a dll that contains a funtion that passes back a boolean.
    > This being my first time using a dll, I am looking for a simple example of
    > what to do next that will allow me to run the dll from a vb.net windows
    > app
    > or a aspx project. Does any one know of a vb.net example of the whole
    > process of creating a vb.net dll and then being able to use it in a vb.net
    > application?
    >
    > Thanks for any help you can provide.[/color]


    Comment

    Working...