Author |
Topic |
|
fmaddin
New Member
6 Posts |
Posted - Aug 21 2004 : 4:44:54 PM
|
Alt-G is great to find what header a symbol is defined so you can know what header to include. If VA-X knows this info, it could automatically add the correct #include on request. I wouldn't care if it didn't get it right 100% of the time.
-frank |
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Aug 22 2004 : 06:44:29 AM
|
Problem here is: MAX_PATH is defined in windef.h
windef.h is included in windows.h
Same goes for several functions. How long will you wait for VAX finding the correct #include buried down in the various headers?
|
|
|
|
Cezariusz
Tomato Guru
Poland
244 Posts |
Posted - Aug 22 2004 : 08:56:52 AM
|
Stefan, As Frank says "I wouldn't care if it didn't get it right 100% of the time". For example NetBeans in case of ambiguity presents a list of possible choices. It could work at least for simple cases, for example for classes declared in the current project. |
Cezariusz Marek https://midicat.net/ |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Aug 23 2004 : 3:07:53 PM
|
this has been asked before, and WT's comment was that if VAX inserts the wrong header, even occasionally, this is very bad!
however, offering a suggestion, or a list of possible headers sounds good to me so long as it is the user to says which header to include, rather than VAX, it shouldnt be a problem.
case=226 |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Aug 24 2004 : 09:22:41 AM
|
Another problem will be where to insert this line. At the begining of the file? After a file comment header if it exists? After the sometimes used "#ifdef _THISFILEINCLUDEDALREADY_" line? After any already existing "#include"? What about dependencies in existing included files? I think it might be the best to just put the line in the clipboard so the user can paste it where ever appropriate. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Aug 24 2004 : 4:46:09 PM
|
very good point, i have updated the case with this |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|