Re: How standard control class names are generated in VS2005

Tech-Archive recommends: Fix windows errors by optimizing your registry




Why this class name (format) is changed from VS2003? Will it be changed for
compiling application on each time? For some applications,in VS2003, the
class name is not changed for each build.

The class name isn't set at compile time, and VS has nothingto do with
it. The Windows Forms assembly handles the naming at runtime.

I don't know why it changed. But I consider it to be an implementation
detail that I shouldn't care about or rely on.


I am using some WIN32 APIs in my projecty for idendifying some controls.
For that I will have to pass class name as one of the parameter. I would like
that the method should be generic for both VS2003 and VS2005. For each
version ,I dont want to change the class name. Is there any generic way to
handle this issue?

Can't you look up the class name from the window handle (with the
GetClassName function)?


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • Re: OS X, Linux, dreaming...
    ... Would be nice to have a metastatement to allow DDT LISTBOX and COMBOBOX ... controls to do everything in ZERO-based indexes. ... it does not work for WINDOWS ... Forward referencing at compile time is not supported. ...
    (comp.lang.basic.powerbasic)
  • Re: Establishing Site Context
    ... i added the refernce and there are no compile time issues, ... Does my PC require any client installation of windows ... >Did you add a reference to the DLL? ... >> I have copied the sharepoint dll and my PC is Windows ...
    (microsoft.public.sharepoint.portalserver.development)
  • Cygwin mutt, . not mapped, no good biff program?
    ... At work I'm stuck using Windows. ... I'd really like to find a tray app that monitors ... 1.4.2.1i with +BUFFY_SIZE enabled at compile time. ...
    (comp.mail.mutt)
  • RE: identifying 64-bit Windows from 2.3.5?
    ... If I have installed 2.3.5 from the python.org Windows installer, ... and sys.maxint are both set at compile time. ... Check out the new MSN Search! ...
    (comp.lang.python)
  • Re: CType question
    ... As Mattias said ... the compiler must know at compile time to do type converison. ... > The docs say that the typename parameter of CType can be: ...
    (microsoft.public.dotnet.languages.vb)