473,671 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access the creator object of a class

I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max
Nov 15 '05 #1
2 1500
Max,

You aren't going to be able to get this unless your child takes a
reference to the parent that created it. Either that, or you need to have
some sort of class factory that creates your objects, which will hold
references to the objects that it creates.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Max-Ph. Blickenstorfer" <ma*@mbs-software.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max

Nov 15 '05 #2
Thank you Nicholas,
I need to use a server side db connection and pass this in some way to the
client-activated remote objects (who are created server side). Ideally I
could catch/control the object creation in the host application (how that
then). The host app does create the db connection and registers the service.
So basically if there is possibility to trap a create-object request in the
host app we could assign the connection through a setMethod before returning
the ref. to the proxy. ???

Best Regards
Max
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:Oy******** ******@tk2msftn gp13.phx.gbl...
Max,

You aren't going to be able to get this unless your child takes a
reference to the parent that created it. Either that, or you need to have
some sort of class factory that creates your objects, which will hold
references to the objects that it creates.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Max-Ph. Blickenstorfer" <ma*@mbs-software.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I am currently in a black hole looking for a way accessing the creator
object of a class within the class. Something like parent of winform
controls.

Thanks for you time

Max


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2458
by: Juan Cabanela | last post by:
I am a relatively new user to MySQL running version 4.0.17 on MacOS X 10.3.3 (this is the "current version" installed by the Fink package manager). I login to mysql as root mysql -u root -p and issue the following commands:
3
5353
by: Kevin Steffer | last post by:
Hi group I have a webform which I want to make an ftp connection for a filetransfer from. The thing is when I use the WebRequest class it says "The URI prefix is not recognized" and my URI is ftp://localhost/ Then I discovered that the WebRequest class has a RegisterPrefix method which takes a string as prefix and it needs a System.Net.IWebRequestCreate but how is such one made ?
13
5821
by: Mark | last post by:
I am looking for a switchboard creator alternative for my MDB. Can anyone help me? Thanks for your help, Mark
3
2133
by: Mike Marriott | last post by:
Hello all, Newbie Here (please go easy, you cant make me fell more stupid than I allready do) I have a small, but complex data base, in Access 2000, that I am creating, I have allready starting to add data to it. Alot of data (around 30 hours work, creating and entering data). I did a stupid thing, I protected the thing. . . . Using the Security
6
1474
by: Guoqi Zheng | last post by:
Sir, Some times, I developed class library to use on other sites. When I am testing the application, I often get an error of access is denied to that assembly. How can I check the problem? Below is the error message from debug. I am using ASP.NET 1.1 on XP machine. Parser Error Message: Access is denied: 'HtmlToText'.
2
995
by: John B | last post by:
I have a situation where I need to control the creation of a class. I need to be able to create it externally but only by classes that I define. To accomplish this I thought of the following process: Define a delegate that returns an instance of my class. Pass this an instance of this delegate to any classes that I want to be able to create instances of myclass. i.e.
1
1947
by: jliebman | last post by:
All, I recently started at a company that has a number of older MS Access 97 database applications that support production and order fulfillment. There is one database with which I have the following problems: 1) no one can make modifications to the database except by logging in using the database creator's userid and password on the workstation used by that person, who has of course left the company. Anyone else
2
1942
by: wilkinson.philip | last post by:
I have a javascript object which dynamically generates a table adding, deleting and moving rows as the user clicks on buttons or links. Problem is when I generate a table row and add the javascript method call to my class, I have to put the object instance name variable of the class in order for it to be called from the onclick=function(). This is seriously limiting, but I'm stuck for a way round it. Heres a edited of the code so you get...
3
2204
by: alan | last post by:
Hello all, I'd like to know if there is a nice method of defining a functor creator which accepts an N-ary function and returns a functor based on that function. For example I have a function: template<class X, class Y, class Z> X function(Y, Z); Passing it to the functor creator will give a functor equivalent to: template<class X, class Y, class Z>
0
8401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8603
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7444
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2060
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.