Results 1 to 5 of 5

Thread: Data Class into dll

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Ok have data tables declared as classes. One class per table. How do l now take these classes and combine them into a dll file.

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

    Post

    Add all the classes into a new ActiveX DLL project and compile. VOILA!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Thanks Clunietp,

    For the ActiveX dll project, in prioperties what do l set as the starting point, in a normal project would be something like Sub Main().

    Do l then need to register the dll.

    Need to get the dll happening because of major project where the same databases are used by multiple exes across a distributed client/server environment

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

    Post

    there is no Sub_Main(), but the Class_Initialize event is fired when your object is instantiated.

    VB Automatically registers the DLL on the machine that you build it on when you compile it, otherwise run REGSVR32.EXE DllName.DLL to register it on the client machine

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Thanks again Clunietp.

    Managed to get an example up and running, this will save alot of work later in my current project.

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