Results 1 to 13 of 13

Thread: creating a dll ..FINALLY RESOLVED!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    creating a dll ..FINALLY RESOLVED!!

    hi i am developing a 3 ntier webform .. i have managed to create one of my class.vb as a dll. now i am trying to create a dll which has the previous dll in it put i keep on getting an error that the file of the previous dll can not be found.

    my imports of my businesslogic class are as follows(this is the class that is giving me errors to create a dll)

    VB Code:
    1. Imports System
    2. Imports Study.DataLayer1 'study is the name of my project and datalayer1 is the namespace of my previous dll
    3. Imports System.Data
    4. Imports System.Data.OleDb
    5. Imports System.Reflection

    in the vs.net command prompt i write as follows- well actually i tried so so many.. me really tired of this... can someone please please help

    VB Code:
    1. vbc /t:library c:\inetpub\wwwroot\study\businessobjects\businesslogic.vb /out:c:\inetpub\wwwroot\study\bin\businesslogic.dll /r:system.dll,system.data.dll,system.xml.dll  c:\inetpub\wwwroot\study\bin\dataobj1.dll

    i get the error DataLayer1 is not defined...
    Last edited by sonvel; Mar 18th, 2005 at 08:20 AM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..

    can someone please help would really appreciate it .. thanks in advance guys....

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Arrow Re: creating a dll ..

    Why do you insist on using the commandline compiler? Get yourself a copy of the IDE and all these problems will vanish immediately. All the Compile Output paths are customaizable per project anyway.
    I don't live here any more.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..

    hi.. what is the IDE? i do not want to use the compiler but it is the only thing i found that can create a dll for me.. could you tell me what is IDE and how i can get it..?? thanks for your reply...

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: creating a dll ..

    Ever heard of SharpDevelop or Visual Studio .NET?

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  7. #7
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: creating a dll ..

    Quote Originally Posted by sonvel
    hi.. what is the IDE? i do not want to use the compiler but it is the only thing i found that can create a dll for me.. could you tell me what is IDE and how i can get it..?? thanks for your reply...
    OMG! I can't believe you don't know about this. Go to a computer shop and buy a copy of Visual Basic.Net. Install it and you will have the IDE (Integrated Development Environment). It looks like this screenshot...

    It has the compiler built-in so you never need to mess about with commandlines (unless you have some special need to do so). DLLs are just an everyday option for the IDE. The standard Version of VB.Net is easily good enough to create high-end applications in windows.

    Your productivity will improve 100x if you get this.

    What have you been using to write your code with, Notepad?

    The IDE has intellisense that completes your keywords, gives you a list of all the members of any object you use, on the fly syntax help, dynamic help as you type!! You cannot live as a .net coder without the IDE. Its that simple.
    Attached Images Attached Images  
    I don't live here any more.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..

    heya thanks for your reply .. i have visual studio.net installed.. i know this might sound strange that i asked what IDE is but i am doing the asp.net quickstart tutorials and it specifies that to create a dll you have to you the

    VB Code:
    1. /t:library /out: /r:

    i have created one dll and it works fine.. now i have created another class which i want to create as a dll which in it imports another dll which i have created.. and i get the error that my imports is not defined.

    wossname told me to use the IDE instead of the command line prompt.. i am using the command line prompt that comes with the vs.net tools, because the tutorial i am doing mentions that.. wossname is saying that there is a quicker way using IDE....

    can you help me please cause me really getting confused... thanks for your reply really appreciated....

  9. #9
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: creating a dll ..

    For starters, because you said this is an ASP.NET project, you should have posted it in the ASP.NET forum.

    That said, when you compile an ASP.NET web application, it automatically creates the .dll file for you. All you then have to do is get the .dll file out of the bin directory on your web server, copy it to the destination server into the bin directory at the root of the site directory structure (unless it's been specified differently) and ensure your page has the Imports statement to bind it to the codebehind.

    If you use Microsoft Visual Studio .NET to do all of this, it will automatically put your imports statement in the HTML for you.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  10. #10
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: creating a dll ..

    Quote Originally Posted by sonvel
    heya thanks for your reply .. i have visual studio.net installed.. i know this might sound strange that i asked what IDE is but i am doing the asp.net quickstart tutorials and it specifies that to create a dll you have to you the

    VB Code:
    1. /t:library /out: /r:

    i have created one dll and it works fine.. now i have created another class which i want to create as a dll which in it imports another dll which i have created.. and i get the error that my imports is not defined.

    wossname told me to use the IDE instead of the command line prompt.. i am using the command line prompt that comes with the vs.net tools, because the tutorial i am doing mentions that.. wossname is saying that there is a quicker way using IDE....

    can you help me please cause me really getting confused... thanks for your reply really appreciated....

    Just forget commandlines. Open up visual studio and open your project with it (Or start a new Class Library project and add your code to it).

    Then look at the Build menu, click Rebuild Solution COngratulations you now have a compiled DLL.

    There are loads of options to play with and you can customize your compile paths if you need to send compiled files to specific locations.

    You ned to spend some time playing with the IDE before you try to use it properly because it is a complex tool, but you should get intop it pretty fast.

    Try doing a hello-world program to get your self into the swing of things.

    Dont even think about commandlines ever again.
    I don't live here any more.

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..

    hi thanks guys for your reply..
    wossname i do have vs.net installed i just didnt know that called it IDE as well.. i have not been using notepad.. i have been using vs.net - asp.net,webforms and vb.net to create this dll.. i am using the asp.net quickstart tutorials...

    thanks for your replies and sorry if i sounded stupied by asking about IDE but i am never shy to ask something i dont know id rather ask than pretend that i know it all.. thanks for your replies guys i really appreciate and for always teaching me more stuff...

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..

    hi wossname i have done as you have specified to me i added a class library to my project and added code to the class that comes with it.. i copied the dll which is in bin folder of the classlibraryProject and pasted it in the MyProject bin.

    when i am trying to call the imports statement(to call the classlibraryProject dll which i have pasted) in my aspx.vbfile in myproject it doesnot allow me to add it..

    i have rebuild the solution and both my project and classlibraryProject.

    can you tell me why this is happening.. thanks

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    Re: creating a dll ..FINALLY RESOLVED!!

    heya just a short note resolved everything.. i added a referenc of the class library to myproject ..thanks for all your help........

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