DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How create dll file with vb

  1. #1
    Ken Guest

    How create dll file with vb


    Hi,
    I created a dll file with vb. When I call it, I got "Can't find Dll entry
    point"
    error. Please help.


    Thank you
    Ken

  2. #2
    Willy Van den Driessche Guest

    Re: How create dll file with vb

    VB can only create activeX DLLs. The only "entry points" there are, are the
    4 standard entrypoints (DLLGetClassObject, DLLCanUnloadNow, ....) . If you
    want to call procedures from a VB DLL (from another VB thing), the thing
    that comes closest is a Global Multi Use Class (One of the properties of a
    class) and putting a reference on your DLL from the other project (Project /
    References...)
    Hope this helps.
    --
    Van den Driessche Willy
    For a work in progress :
    http://users.skynet.be/wvdd2/index.html
    "Ken" <kenchk@ipoline.com> wrote in message
    news:3c117021$1@147.208.176.211...
    >
    > Hi,
    > I created a dll file with vb. When I call it, I got "Can't find Dll entry
    > point"
    > error. Please help.
    >
    >
    > Thank you
    > Ken




  3. #3
    Ken Guest

    Re: How create dll file with vb


    Thank you,
    Ken

    "Willy Van den Driessche" <Willy.Van.denDriessche@skynet.be> wrote:
    >VB can only create activeX DLLs. The only "entry points" there are, are

    the
    >4 standard entrypoints (DLLGetClassObject, DLLCanUnloadNow, ....) . If

    you
    >want to call procedures from a VB DLL (from another VB thing), the thing
    >that comes closest is a Global Multi Use Class (One of the properties of

    a
    >class) and putting a reference on your DLL from the other project (Project

    /
    >References...)
    >Hope this helps.
    >--
    >Van den Driessche Willy
    >For a work in progress :
    >http://users.skynet.be/wvdd2/index.html
    >"Ken" <kenchk@ipoline.com> wrote in message
    >news:3c117021$1@147.208.176.211...
    >>
    >> Hi,
    >> I created a dll file with vb. When I call it, I got "Can't find Dll entry
    >> point"
    >> error. Please help.
    >>
    >>
    >> Thank you
    >> Ken

    >
    >



  4. #4
    Randy Guest

    Re: How create dll file with vb


    Ken,

    If you are going to be accessing "global" data or state data in the dll object,
    GlobalMultiuse will not work if called from seperate objects. As far as I
    know, you cannot create a truly "global" object from an activex dll as each
    reference from seperate objects will create seperate instances of the dll.
    What you can do is create an dll object at an entry point to your program
    and pass it around. I do this with a database connection object and a call
    stack object to maintain only one instance of each throughout my program.
    Willy can probably comment more articulately on this than I can.

    Randy

    "Willy Van den Driessche" <Willy.Van.denDriessche@skynet.be> wrote:
    >VB can only create activeX DLLs. The only "entry points" there are, are

    the
    >4 standard entrypoints (DLLGetClassObject, DLLCanUnloadNow, ....) . If

    you
    >want to call procedures from a VB DLL (from another VB thing), the thing
    >that comes closest is a Global Multi Use Class (One of the properties of

    a
    >class) and putting a reference on your DLL from the other project (Project

    /
    >References...)
    >Hope this helps.
    >--
    >Van den Driessche Willy
    >For a work in progress :
    >http://users.skynet.be/wvdd2/index.html
    >"Ken" <kenchk@ipoline.com> wrote in message
    >news:3c117021$1@147.208.176.211...
    >>
    >> Hi,
    >> I created a dll file with vb. When I call it, I got "Can't find Dll entry
    >> point"
    >> error. Please help.
    >>
    >>
    >> Thank you
    >> Ken

    >
    >



  5. #5
    Willy Van den Driessche Guest

    Re: How create dll file with vb

    > If you are going to be accessing "global" data or state data in the dll
    object,
    > GlobalMultiuse will not work if called from separate objects. As far as I
    > know, you cannot create a truly "global" object from an activex dll as

    each
    > reference from separate objects will create separate instances of the dll.
    > What you can do is create an dll object at an entry point to your program
    > and pass it around. I do this with a database connection object and a call
    > stack object to maintain only one instance of each throughout my program.
    > Willy can probably comment more articulately on this than I can.


    Ken,
    Of course you're right.
    Without wanting to confuse Ken the standard "trick with the pigeon" then is
    store the global data in a bas module, with your GMU classes sharing the
    data in the Bas module. Unfortunately, global data in a BAS module isn't
    global either. Variables in the BAS module are stored in TLS (Thread local
    storage), meaning you get a separate value per thread. If you use
    singlethreading in your DLLs (like I do for exactly that reason), then
    that's enough. If you want a singleton and still use multi-threading, you
    can still get true global data by making use of the ROT (running object
    table). The latter technique is slightly more advanced and is described in
    the excellent book by Matthew Curland (see www.power.com and buy the book if
    you need advanced programming - it's worth it).
    --
    Van den Driessche Willy
    For a work in progress :
    http://users.skynet.be/wvdd2/index.html
    "Randy" <rbaron@shrinenet.org> wrote in message
    news:3c1a1671@147.208.176.211...
    >
    > Ken,
    >
    >
    > Randy
    >
    > "Willy Van den Driessche" <Willy.Van.denDriessche@skynet.be> wrote:
    > >VB can only create activeX DLLs. The only "entry points" there are, are

    > the
    > >4 standard entrypoints (DLLGetClassObject, DLLCanUnloadNow, ....) . If

    > you
    > >want to call procedures from a VB DLL (from another VB thing), the thing
    > >that comes closest is a Global Multi Use Class (One of the properties of

    > a
    > >class) and putting a reference on your DLL from the other project

    (Project
    > /
    > >References...)
    > >Hope this helps.
    > >--
    > >Van den Driessche Willy
    > >For a work in progress :
    > >http://users.skynet.be/wvdd2/index.html
    > >"Ken" <kenchk@ipoline.com> wrote in message
    > >news:3c117021$1@147.208.176.211...
    > >>
    > >> Hi,
    > >> I created a dll file with vb. When I call it, I got "Can't find Dll

    entry
    > >> point"
    > >> error. Please help.
    > >>
    > >>
    > >> Thank you
    > >> Ken

    > >
    > >

    >




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