Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Public Not Creatable objects

Posted on 1998-10-08
4
Medium Priority
?
647 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 400 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

916 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