PDA

Click to See Complete Forum and Search --> : Data Class into dll


jritchie
Jan 5th, 2000, 03:17 AM
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.

Clunietp
Jan 5th, 2000, 12:29 PM
Add all the classes into a new ActiveX DLL project and compile. VOILA!

jritchie
Jan 6th, 2000, 05:02 AM
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

Clunietp
Jan 6th, 2000, 12:19 PM
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

jritchie
Jan 6th, 2000, 12:24 PM
Thanks again Clunietp.

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