[AccessD] DirWatcher - was RE: Cool stuff - was RE: using a dtsx in .Net

Eric Barro ebarro at verizon.net
Sat Apr 21 20:16:45 CDT 2007


John,

.Net takes care of registering any COM objects that you reference in your
projects. If you look at the bin folder where your project was compiled it
will contain an Interop.COMObject.dll file corresponding to the COMObject
that you referenced. That's just one of the "beauties" of .Net. :) When you
deploy the app to another machine all you need to do is to copy your
application DLL and the Interop DLLs to make it work.

Eric 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby
Sent: Saturday, April 21, 2007 4:23 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] DirWatcher - was RE: Cool stuff - was RE: using a
dtsx in .Net

Marty,

I didn't have to do a register on this machine since it was the one that I
created the VB.Net project on and the simple act of building it caused it to
be registered.  I will certainly look at that stuff if I need to do this on
another machine (actually use this thing).

John W. Colby
Colby Consulting
www.ColbyConsulting.com

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly
Sent: Saturday, April 21, 2007 6:52 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] DirWatcher - was RE: Cool stuff - was RE: using a
dtsx in .Net

Just wondering, if you used this method to register the com class dll.
It uses regasm and gacutil to remove any previously named dll and reinstalls
in the registry.
See :
http://samples.gotdotnet.com/quickstart/howto/doc/Interop/Building_Samples_C
OM2NET.aspx

the install batch file looks like this for your dll FX20Wrapper.dll

regasm
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\system.windows.forms.dll"

gacutil -u FX20Wrapper
regasm /u "VB2005\FX20Wrapper\bin\Release\FX20Wrapper.dll"

regasm /tlb "VB2005\FX20Wrapper\bin\Release\FX20Wrapper.dll"
gacutil -i "VB2005\FX20Wrapper\bin\Release\FX20Wrapper.dll"

To use Access set a reference to the tlb file that will be in a directory
like below depending on where you installed the project.
\VB2005\FX20Wrapper\bin\Release\FX20Wrapper.tlb

The tlb will allow Access to see the class definitions and do a compile.



--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.463 / Virus Database: 269.5.6/770 - Release Date: 4/20/2007
6:43 PM
 




More information about the AccessD mailing list