Solved

Public Not Creatable objects

Posted on 1998-10-08
4
625 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now