Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / June 2003

Tip: Looking for answers? Try searching our database.

Call .NET COM object from unmanaged code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MacDermott - 29 Jun 2003 01:36 GMT
I've developed a COM object using VB.NET, and was happily calling it from an
Access application.
Then I tried to run it on another machine.
The second machine has the .NET framework installed, but not VS.
(It also has Access installed, of course.)
I have transferred the Access mdb file and the .tlb file from the .NET
application, and I have registered the .tlb file.

The Access application runs fine, but once it gets to instantiating the COM
object, it says
   "Active X cannot create object"

Is there something else I need to have on the second machine for this to
work?
   (Slightly OT side question - .NET also creates a dll file, but I can't
register it.  What's it for?)

   TIA -
       - Turtle
Wray Smallwood - 29 Jun 2003 21:17 GMT
If you can run it on the test system, what you have done is create a CCW dll
from the .NET dll. The CCW dll is the one you register, but it also needs
the .NET dll which is the meat of the code.

Refer to: Microsoft .NET/COM Migration and Interoperability in the MSDN, and
any number of other articles it refers like: Exposing .NET Framework
Components to COM

You're working with the right ammunition, you just haven't figured out how
to get the safety off.

Wray

> I've developed a COM object using VB.NET, and was happily calling it from an
> Access application.
[quoted text clipped - 15 lines]
>     TIA -
>         - Turtle

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.