Wrox Programmer Forums
|
BOOK: Professional VB.NET, 2nd Edition or 2003
This is the forum to discuss the Wrox book Professional VB.NET, 2nd Edition by Fred Barwell, Richard Case, Bill Forgey, Billy Hollis, Tim McCarthy, Jonathan Pinnock, Richard Blair, Jonathan Crossland, Whitney Hankison, Rockford Lhotka, Jan D. Narkiewicz, Rama Ramachandran, Matthew Reynolds, John Roth, Bill Sheldon, Bill Sempf; ISBN: 9780764544002
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VB.NET, 2nd Edition or 2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2004, 02:47 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 .NET COMonent in VB6

Using VB.NET 2003 on XP SP1 - Created MegaCalculator2 and MeanCalculator3 projects and added to a solution. Compiled, did not change any assemblyinfo.vb etc.

Used RegAsm to create and received output as follows:

.\VBProjects\TestMeanCalc\TestMeanCalc\MeanCalcula tor3\obj\Debug>regasm MegaCal
culator2.dll /tlb:MegaCalculator2.tlb
Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

RegAsm warning: No types were registered
Assembly exported to 'H:\VBProjects\TestMeanCalc\TestMeanCalc\MeanCalcu lator3\ob
j\Debug\MegaCalculator2.tlb', and the type library was registered successfully

.\VBProjects\TestMeanCalc\TestMeanCalc\MeanCalcula tor3\obj\Debug>regasm MeanCal
culator3.dll /tlb:MeanCalculator3.tlb
Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Types registered successfully
Assembly exported to '.\VBProjects\TestMeanCalc\TestMeanCalc\MeanCalcul ator3\ob
j\Debug\MeanCalculator3.tlb', and the type library was registered successfully

I then copied the .tlb and .dll files to my project file on VB6 machine and created the example Calc.exe application. I added my .tlb files as references and upon executing the line that reads as follows:

Set mobjCalc = New MeanCalculator3.MeanCalc

Throws a Run-Time error '429': ActiveX component can't create object.

I've tried regsvr32 to register the .dlls and got invalid entrypoint registration errors.

What should I try next? Probably missing some small detail. Any suggestions?

Clifford B Thomas





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17 First Try It Out paloyme BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 7 August 23rd, 2006 11:14 AM
Chapter 17 first Try It Out paloyme Visual Basic 2005 Basics 0 April 17th, 2006 04:34 AM
Chapter 17 Gaby BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 September 8th, 2005 11:50 AM
Chapter 16 & 17: Configure MSDE/ASP.NET 1.1 danascmitz BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 May 11th, 2004 12:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.