Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 2nd, 2003, 06:15 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default publicly creatable object

I have a n-tier project. Apon running it I get an error message --
no publicly creatable object. The startup object is a form. I have it set as the startup object. I have moved many files around my hard drive, is is possible to mess up the guid on a form? Any help will be greatly appreciated. Thanks, Charlie...

 
Old September 3rd, 2003, 06:34 AM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is because you are trying to pass your n-tier component in a Public function accessible from outside your program. To correct the problem, change the type of your n-tier to Object in the function definition. Inside that function, you can set the Object variable to a n-tier variable and use that variable.

Stéphane Lajoie





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Publicly Declared Base-Class Methods icecrew VB.NET 1 November 17th, 2006 05:42 PM
Serializing Object Graph - Assigning Object to Jag venkat.kl C# 0 August 28th, 2006 10:39 AM
Object Reference not set to an instance of object srinivas_chakka ASP.NET 1.0 and 1.1 Professional 0 February 8th, 2006 11:56 AM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
Error Occurred creating Report Object: Object does sa_moizatyahoo Classic ASP Professional 0 February 1st, 2005 10:29 AM





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