Re: question about Delphi and Visual Studio .NET



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
.



Relevant Pages

  • Need to purchase AES code for Windows - Problem Solved
    ... none of which have passed the Monte Carlo output tests when compiled ... I really need some working source code plus visual studio project files. ... files that have been proven to pass the Monte Carlo tests in Win32 ...
    (sci.crypt)
  • Dead simple? Setting the caption of a static text label without MFC
    ... trying to do something ridiculously simple in a Win32 C++ ... any way I get the window handle of those labels using their ... how do I set the caption's of these static text boxes? ... that would help me along (with Visual Studio .NET would be a plus)? ...
    (microsoft.public.win32.programmer.ui)
  • HOWTO Get rid of LNK4078
    ... I don't seem to be able to get rid of this warning when building on Win32 Release Mode. ... I even deleted all files created by Visual Studio: ... IE6 SP1 Headers & Libraries ... WIN32 SDK Headers & Libraries ...
    (microsoft.public.vc.ide_general)
  • HOWTO Get rid of LNK4078
    ... I don't seem to be able to get rid of this warning when building on Win32 Release Mode. ... I even deleted all files created by Visual Studio: ... IE6 SP1 Headers & Libraries ... WIN32 SDK Headers & Libraries ...
    (microsoft.public.vc.language)