How to use .vb files?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to use .vb files?

  1. #1
    Anu Guest

    How to use .vb files?


    Hello,

    In a web application,I want to shift my VB dll functions into a class
    file in .net(file with .vb extention but not .aspx.vb).Can somebody please
    expain me hot to use it and deploy?

    Regards,
    Anu

  2. #2
    sr Guest

    Re: How to use .vb files?


    "Anu" <anu@email.com> wrote:
    >
    >Hello,
    >
    > In a web application,I want to shift my VB dll functions into a class
    >file in .net(file with .vb extention but not .aspx.vb).Can somebody please
    >expain me hot to use it and deploy?
    >
    >Regards,
    >Anu


    If I am understanding you. You want convert your VB6 DLLs to .NET do this
    by adding a class and your aspx.vb files (code behind) call the .vb files
    in a similar way that you would call them in VB6

    cSupportMember is a .vb file

    Dim cSupport As New cSupportMember()
    cSupport.insMemberPassword(AccountID, MemberID, UserID, UserID, True, EditorID)


  3. #3
    Anu Guest

    Re: How to use .vb files?


    Hello Sr,


    I read somewhere that all .vb files need to be converted to dll and must
    be placed in bin directory while deploying.Do you know more about it?


    Regards,

    Anu



    "sr" <vb.@127.0.0.1> wrote:
    >
    >"Anu" <anu@email.com> wrote:
    >>
    >>Hello,
    >>
    >> In a web application,I want to shift my VB dll functions into a

    class
    >>file in .net(file with .vb extention but not .aspx.vb).Can somebody please
    >>expain me hot to use it and deploy?
    >>
    >>Regards,
    >>Anu

    >
    >If I am understanding you. You want convert your VB6 DLLs to .NET do this
    >by adding a class and your aspx.vb files (code behind) call the .vb files
    >in a similar way that you would call them in VB6
    >
    >cSupportMember is a .vb file
    >
    >Dim cSupport As New cSupportMember()
    >cSupport.insMemberPassword(AccountID, MemberID, UserID, UserID, True, EditorID)
    >



  4. #4
    Jay B. Harlow [MVP - Outlook] Guest

    Re: How to use .vb files?

    Anu,
    Are you using VS.NET?

    Simply add your .vb files to your ASP.NET project, when you compile the
    project they will automatically be included in the .dll that is created for
    all of your .aspx.vb files. This DLL will be placed in the bin folder of
    your web project.

    Alternatively you can create a Class Library project, place all of your .vb
    files in this Class Library, then reference the Class Library from your Web
    Project. VS.NET will place the DLL in your bin folder.

    If you are not using VS.NET, you will need to manually compile your .vb
    files into a class library (.dll) then place this dll in the bin folder of
    your web project. From within your aspx pages you will need to manually
    reference and import this class library.

    Hope this helps
    Jay

    "Anu" <anu@email.com> wrote in message news:3f1d19bd$1@tnews.web.devx.com...
    >
    > Hello,
    >
    > In a web application,I want to shift my VB dll functions into a

    class
    > file in .net(file with .vb extention but not .aspx.vb).Can somebody please
    > expain me hot to use it and deploy?
    >
    > Regards,
    > Anu




  5. #5
    Anu Guest

    Re: How to use .vb files?


    Hi Jay Harlow,

    Thank you for information.

    Yeah,I am using VS.net.So you mean all .vb(.aspx.vb and .vb) files will
    be referred through a single Dll thats placed in Bin directory?

    OK!!

    I will try and if I get any more doubts will get back on this forum.


    Regards,

    Anu

    "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow@email.msn.com> wrote:
    >Anu,
    >Are you using VS.NET?
    >
    >Simply add your .vb files to your ASP.NET project, when you compile the
    >project they will automatically be included in the .dll that is created

    for
    >all of your .aspx.vb files. This DLL will be placed in the bin folder of
    >your web project.
    >
    >Alternatively you can create a Class Library project, place all of your

    .vb
    >files in this Class Library, then reference the Class Library from your

    Web
    >Project. VS.NET will place the DLL in your bin folder.
    >
    >If you are not using VS.NET, you will need to manually compile your .vb
    >files into a class library (.dll) then place this dll in the bin folder

    of
    >your web project. From within your aspx pages you will need to manually
    >reference and import this class library.
    >
    >Hope this helps
    >Jay
    >
    >"Anu" <anu@email.com> wrote in message news:3f1d19bd$1@tnews.web.devx.com...
    >>
    >> Hello,
    >>
    >> In a web application,I want to shift my VB dll functions into a

    >class
    >> file in .net(file with .vb extention but not .aspx.vb).Can somebody please
    >> expain me hot to use it and deploy?
    >>
    >> Regards,
    >> Anu

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center