Re: question about Delphi and Visual Studio .NET
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Fri, 16 Feb 2007 17:35:48 -0600
Adam Sandler wrote:
I have a question about Delphi (NOT Delphi.NET... just plain ol
Delphi) and Visual Studio .NET. For those with VS .NET experience,
does VS .NET have an equivalent of the Delphi property 'tag'... the
property which used to store additional integer value or pointer
information for special needs in an application?
Visual Studio is an IDE. It doesn't have properties.
You're asking about what's provided by the component libraries. In the VCL, TComponent introduces the Tag property, which all descendants inherit. In the Win32 version, its type is Integer. In the .Net version, its type is System.Object, or TObject.
So which component library are you using in Visual Studio? MFC? Win32? ..Net FCL?
Once you know what you're using, you can ask in the appropriate newsgroup whether the components have any provision for storing an arbitrary, developer-defined piece of data.
If you're using plain Win32, look at the SetWindowLong function with the gwl_UserData index. Also check out the SetProp function. If you're using the FCL, check for the Tag property. If you're using MFC, then I don't know.
--
Rob
.
- References:
- question about Delphi and Visual Studio .NET
- From: Adam Sandler
- question about Delphi and Visual Studio .NET
- Prev by Date: Re: The Zen nature of a Delphi database application
- Next by Date: Re: The Zen nature of a Delphi database application
- Previous by thread: question about Delphi and Visual Studio .NET
- Index(es):
Relevant Pages
|