Results 1 to 9 of 9

Thread: Creating a DLL

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    Hi.
    I've been told to consult some books that would help me building up my own .dll.

    I was wondering if, before I buy one of these books, I could find some good help on the internet. Maybe microsoft.com? I didn't find anything explanatory enough there.

    I simply need to compile a .dll and use it in one of my application. I've read on some people using their own dll in here. Please help me out!

    Thanks,

    David Laplante

  2. #2
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    you can't create a dll using VB. For this, you need Visual C++

    a good source of information is the MSDN.
    have a look at
    http://www.msdn.microsoft.com/default.asp

    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  3. #3
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Post

    Depending on what your definition of a "real" dll is. You can create dll's in VB, they are called "Active X" Dlls. They are not a "real" dll in the sense that they still require the VB runtime library, however if your using the dll from a VB program that runtime library has to be there anyway. If you want to create a "real" dll that doesn't reguire any runtime support that you would have to use C.

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    VB Creates COM DLLs, which are different than standard C++ Dlls.

    COM Dlls (in my opinion) are much more powerful than standard DLLs. They might not be as fast as C++ DLLS, but you can quickly create reusable components. You also get the benefits of COM & DCOM (Location transparency, Interface compatibility [hopefully], language independance, etc.)

    COM/ActiveX Components are much more powerful than standard DLLs.

    FYI -- You can create COM (ActiveX) Dlls using C++.....would you guys not consider these REAL DLLs as well?


    [This message has been edited by Clunietp (edited 02-07-2000).]

  5. #5
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Post

    I couldn't agree with you more Clunietp. I guess I had forgoten that VB created DLL are really COM Dll's. Maybe its because I don't really care where the DLL was created. I'll I know is that I can create resuable and realible DLL's with VB. I guess I'm not a purist that believes that you can only build real with C++.

    As lonq as we continue to support and promote VB as real language maybe someday the rest of the programmer community will believe us (Okay I'll get off my soapbox now)


    [This message has been edited by Glenn (edited 02-07-2000).]

  6. #6
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Post

    For folks that can't understand what's going on here....

    The verdict is :
    You CAN use an activex dll with your VB application!

    --------------------------------------------

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    Okay then I will try to build my DLL using Visual C++, but... then I need to code in C? This should not be a problem but, can't I build up a dll using VB code?

    Thanks for your time!

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    In VB, I just tried starting up a new project. At the 'New Projet' screen, I choosed 'ADDIN'... Then in the file menu, the option Make MyAddIn.dll. It'll build up a dll, but is that what I need?

  9. #9
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    No I don't think so
    for real dlls you'll need C++

    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

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