|
You should add the tools.h file folder to the Include Directories list of Visual Studio .
(Tools->Options menu item, then Project and Solutions->VC++ Directories node, then Include files item of Show Directories for listbox).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
sir i followed as you said but im still getting the same error.
|
|
|
|
|
Do you included it using double quotes, i.e. with #include "tools.h" ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
yes sir..still getting the same error
|
|
|
|
|
ashwiny wrote: #include "tools.h"
If you right-click this statement, can you open the tools.h file?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have tried but cannot sir
|
|
|
|
|
Then that's your clue that the IDE has no idea how to find that file. What version of VS are you using?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
On the Options dialog, click the Directories tab. Is the directory that contains the tools.h file listed there?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
What happens if you change the #include statement so that it contains an absolute path to the tools.h file?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i dont get you sir..how to change it?
|
|
|
|
|
Change the #include statement to also include the absolute path to the tools.h file, like:
#include "c:/some_path/tools.h" As it currently stands, you are using a relative path.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
While ask this species questions we prefer to shown only debug window's result will be very easy way to find a solution.
|
|
|
|
|
im getting the same error..fatal error C1083: Cannot open include file: 'tools.h': No such file or directory
|
|
|
|
|
I have a view whic is derived from CView
on top of that view i have a tree controls which is derived from CtreeCtrl
now i wanna make the background of the tree control with gradient
i know how to paint gradient color
now please let me know where to write the gradient code ?
in View which is derived from Cview? -- seems its not working coz on top of this view Tree ctrl is sitting?
then shud i place the code onPaint() of CTreeCtrl? - tried and its not working as u can see only color but not tree nodes
then shud i place it OnEraseBkgnd?
please let me know
|
|
|
|
|
heyyyy friends
i found solution
I had to keep gradient code on OnEraseBkgnd() of CTreeCtrl
|
|
|
|
|
Hi.
Thanks for the last responses. After reading further, seticon etc is not whta I wanted to accomplish. I want to change the actual exe icon of the file shown in the directories after I compile. I found out that the FIRST ICON that is listed in the resources VC use this as its icon. My problem is that I can conditional compile and want to be able to change this icon just by setting a define etc. Can anyone suggest how to do this? I do not know how to do this association of this to any lets say ICON after recompilation. I do not want to set it after I start the program.
I hope I am clear enough.
Thanks for the help.
Stan the man
|
|
|
|
|
I believe you can use #defines, etc, in your resource files. Just edit your .rc file (might have to do it in an external editor) and do something like:
#ifdef MY_CONDITION
IDR_MAINFRAME ICON "res\\my_icon_1.ico"
#else
IDR_MAINFRAME ICON "res\\my_icon_2.ico"
#endif
That's for an MFC app, but it should be similiar for other types too.
Where you define MY_CONDITION is up to you. Could do it in resource.h or in the .rc file itself or include another file.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Stan the man wrote: I found out that the FIRST ICON that is listed in the resources VC use this as its icon. My problem is that I can conditional compile and want to be able to change this icon just by setting a define etc.
If you are using VC resource editor, then right click on the Icon, select properties and enter the macro name in the condition edit box. So whenever this macro is used then that particular icon will be included else it won't be.
From VC Help:
Condition
Determines the inclusion of the resource. For example, if the condition is _DEBUG, this resource would be included only in debug builds.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Did you get my reply and mail?
|
|
|
|
|
Hamid. wrote: Did you get my reply and mail?
No I didn't receive a mail or reply from you.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
I sent you two mails and also a reply with codeproject([mail]) and it was a question for my why you didnt answer to my mail?(of course Yahoo answered to me mail address not found,did you change your mail?
|
|
|
|
|
Hamid. wrote: I sent you two mails
I didn't so far get any mails from you .
By the way what was it about?
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
I have this address of you (NIBUTHOMAS@nestec.net) but it doesnt work.
Well it was for new year I think its late for happy new year
|
|
|
|