- one header file "view.h" - two corresponding source files "view.cpp" and "viewx.cpp" that both includes the header file "view.h" (in order to split the code in two files) - one of the source files has not the same name as the header file
When editing the source file "view.cpp" the command "Open Corresponding File" opens the header file correctly.
When editing the source file that name is not the same as the header file file "viewx.cpp" the command "Open Corresponding File" does nothing!
Thank you!
Sebastian
VA_X.dll file version 10.4.1626.1 built 2008.01.17 Licensed to: VA X: [email protected] (6-user license) Support ends 2008.05.15 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Courier New 13(Pixels) Comctl32.dll version 5.82.2900.2982 Windows XP 5.1 Build 2600 Service Pack 2 Single processor
Platform: Win32 Stable Includes: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include; E:\\C_Progs\\GP\\Inc; E:\\C_Progs\\GP\\Libraries\\Include;
Other Includes:
Stable Source Directories: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;
VA_X.dll file version 10.4.1626.1 built 2008.01.17 Licensed to: VA X: [email protected] (6-user license) Support ends 2008.05.15 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Courier New 13(Pixels) Comctl32.dll version 5.82.2900.2982 Windows XP 5.1 Build 2600 Service Pack 2 Single processor
Platform: Win32 Stable Includes: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include; E:\\C_Progs\\GP\\Inc; E:\\C_Progs\\GP\\Libraries\\Include;
Other Includes:
Stable Source Directories: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;
Currently these are unrelated pairs of files, but if you want to say "the file names are similar" then suddenly alt-o should view them as the same block of files.
If you need to split your code into three files have you considered "view.h", "view.cpp" and "view.inl" ?
If you "need" to split your code, have you considered that perhaps this is a design issue? Maybe you need to break the object down further to make it more comprehensible to you.
Really, with a tool like VAX and the VS IDE, if you are writting solid OO code, then why would you "need" to make what should be in one .cpp file into two?
Just curious. The "corresponding" .h file for AnyFile.cpp IS ONLY AnyFile.h by definition (of the C++ language)! What would you expect Alt-O to do when a .cpp file includes 10 .h files?????
In case you are a relatively new C++ programer (like me) I highly recommend the book "C++ Primer Plus" and any of the "Head Start" series. =)
Programming in C++
VA_X.dll 10.4.1626.0 Built 2008.01.17
(1-user license) Support ends 2009.01.29
DevEnv.exe version 9.0.21022.8 msenv.dll version 9.0.21022.8 Comctl32.dll version 6.0.2900.2982 Windows XP 5.1 Build 2600 Service Pack 2 Single processor Platform: Win32
Ok. You are right. I did this topic rashly without thinking enough about it!
Thank you all for the detailed answers!
VA_X.dll file version 10.4.1626.1 built 2008.01.17 Licensed to: VA X: [email protected] (6-user license) Support ends 2008.05.15 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Courier New 13(Pixels) Comctl32.dll version 5.82.2900.2982 Windows XP 5.1 Build 2600 Service Pack 2 Single processor
Platform: Win32 Stable Includes: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include; C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include; E:\\C_Progs\\GP\\Inc; E:\\C_Progs\\GP\\Libraries\\Include;
Other Includes:
Stable Source Directories: C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl; C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;