User forums > Help
Help with swap header/source
srins:
CB 8.02 REV 5602 WIN XP
When I right-click and try "Swap Header/Source" from the *.C source file, I prompted with Yes/No box "The file does not exist. Do you want to create it?". If I select "YES" it create a new *.h file, which I don't need.
The file extensions are '*.C' and '*.H' (not *.h, *.c).
I have the both header(*.H) and source (*.C) in the Project. I can see them both fine and open them fine. Just that the swap doesn't work for me.
I have toyed around various options in Project properties, Editor settings but nothing seems to do the trick. It is quite possible that I might have missed something obvious.
Help is very much appreciated.
-Srini
MortenMacFly:
--- Quote from: srins on June 19, 2009, 12:55:33 am ---The file extensions are '*.C' and '*.H' (not *.h, *.c).
--- End quote ---
I might also be a bug. In fact that's the first time I see anybody using capital letters for the file extension. When comparing the file extension this might be an issue because on windows this comparison should be case in-sensitive... Need to check that...
Jenna:
It works for me correctly on linux.
It also works on windows, but the extension shown in the editor tab is in lower-case, if I open the file with swap header/source.
If I then double-click the file in the project-tree, the extension is changed to uppercase (as on disk).
If both files are opened everything is okay.
srins:
Thanks for looking up on this issue.
Interestingly the swap works perfectly when I try from within Header file (*.H). It smoothly switches to appropriate C file.
So, the swap is not working for me from C to H only.
-Srini
MortenMacFly:
--- Quote from: srins on June 19, 2009, 02:59:24 pm ---So, the swap is not working for me from C to H only.
--- End quote ---
Can you provide a sample project? I cannot produce at all. Probably just strip down your project to a minimal sample and attach it to another post in this thread.
Navigation
[0] Message Index
[#] Next page
Go to full version