Re: Porting a C++ form from VS2003 to VS2005

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Edward Diener wrote:
I am porting projects from VS2003 to VS2005, using Managed C++ for both until I have the time to convert the VS2005 projects to C++/CLI. In porting one of my projects I had a WinForm.

In VS2003 the form shows up under my header files for the project with a special dark icon for the header file and another special icon under it for the .resX file. Opening the header file beings up the form in its design window. This is how it should work.

When I manually added the header and source files to my VS2005 project, the header file did not automatically addd the .resX fo itself under it. I had to separately add the .resX file to the project but the header file and its .resX file are totally disconnected in the IDE. There is no way I can bring up the form in design mode. Opening the header file just brings up its code and opening the .resX file just beings up an editor for .resX files with an Other, Add Resource, and Move Resource menu items.

How do I get VS 2005 to recognize my header file/.resX file as a form ? Once I do, and have /clr:oldSyntax for the project, will the form manager be smart enough to generate Managed C++ code for the form instead of C++/CLI ?

I found out that one must manually set the header file to a C++ form in order to get this to work properly in the IDE. I have already made a suggestion that the IDE should be able to figure this out automatically when adding header files to a project.
.



Relevant Pages

  • Porting a C++ form from VS2003 to VS2005
    ... I am porting projects from VS2003 to VS2005, using Managed C++ for both until I have the time to convert the VS2005 projects to C++/CLI. ... In VS2003 the form shows up under my header files for the project with a special dark icon for the header file and another special icon under it for the .resX file. ... Once I do, and have /clr:oldSyntax for the project, will the form manager be smart enough to generate Managed C++ code for the form instead of C++/CLI? ...
    (microsoft.public.vsnet.ide)
  • HELP! my breakpoints arent in sync with my source code !
    ... Recently I have noticed some weirdness with my .NET2003 visual studio IDE... ... I am writing some ATL code in a header file ... ... app in the debugger as usual and the breakpoint gets hit - BUT - the IDE ...
    (microsoft.public.vsnet.ide)
  • HELP! my breakpoints arent in sync with my source code !
    ... Recently I have noticed some weirdness with my .NET2003 visual studio IDE... ... I am writing some ATL code in a header file ... ... app in the debugger as usual and the breakpoint gets hit - BUT - the IDE ...
    (microsoft.public.vsnet.general)
  • HELP! my breakpoints arent in sync with my source code !
    ... Recently I have noticed some weirdness with my .NET2003 visual studio IDE... ... I am writing some ATL code in a header file ... ... app in the debugger as usual and the breakpoint gets hit - BUT - the IDE ...
    (microsoft.public.vsnet.debugging)
  • Re: lseek: Value too large for defined data type
    ... But if I dont include this header file, ... But i am seeing difference in output of the lseek. ... printf("File opening success\n"); ...
    (comp.os.linux.development.system)