Solved

Public Not Creatable objects

Posted on 1998-10-08
4
640 Views
Last Modified: 2008-02-20
I am creating an Active X component to use with a standard exe program that must use Public Not Creatable as the instancing type. I have been told to create an object using 'Specials' as the type in the std exe, and a provide a method in the Active X component that returns the address of single (global) 'Specials' object in the Active X server. The std exe should then be able to access the single object and its methods. What does 'Specials' type mean?  How do I return the address of the global object? How do I go about this? I am a novice VB5 user.  
0
Comment
Question by:tlaver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:tlaver
ID: 1438984
Edited text of question
0
 
LVL 1

Accepted Solution

by:
abhinavm earned 200 total points
ID: 1438985
I don't know where you read this 'Specials' word. the meaning of PublicNotCreatable is that you can't create the instance of that class by using New or CreateObject. You have to provide one more object which is pulically creatable and which interns create this object and passes the reference to the program.
  for example you can't create the rdoconnection obejct by just saying new or create object you have to use the openconnection method of rdoenvironments to create rdoConnection.

0
 

Author Comment

by:tlaver
ID: 1438986
Thanks for the reply - I'll just check that I understand correctly: so now I will code a send object which will create my Public Not Creatable object. Then I create this second object from my other program (the standard exe) and ask the second object for the address of the object it created.

Now - if thats right - ho exactly to I get the address of the first object from the second object?
0
 
LVL 2

Expert Comment

by:joefunsmith
ID: 9593999
just a note on this older question... I think what tlaver was told to create; "an object using 'Specials' as the type" meant that he was to create a user-defined public data type called 'Specials' in the COM component that could be used in the standard exe.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question