|
Thanks for the quick replay. Everything is clear now. And I never heard about case insensitive of file name.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: And I never heard about case insensitive of file name.
If you are programming C/C++ under Linux/UNIX, the case is sensitive.
If you are programming C/C++ under Windows, it is not.
Case of file names is dependent on the file system design of operating systems.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: If you are programming C/C++ under Windows, it is not.
Yes I'm Windows user, so it is nice to see that. But as a practice I always define the header file name as it is on .cpp file.
I appreciate your help all the time...
Eranga
|
|
|
|
|
In addition, you can use this way under Windows (I mean the "/"). It is because C/C++ were started under UNIX platforms originally in 1974 and 1979.
#include "../../inc/sys/test.h"
and
#include "D:/include/test2.h"
Maxwell Chen
|
|
|
|
|
ya, I test it. Better to follows a one way to do this. So it can be easy to work with in future
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: And I never heard about case insensitive of file name
File Names are Case Insensitive since DOS
Bram van Kampen
|
|
|
|
|
Ooh, really...
I thought it is only for DOS and linking files like this.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: #include "Complex.h"#include ".\complex.h"#include "complex.h"
Line1 + Line3 Identical: File names are Case Insensitive under windows.
Line2: The '.\' means 'Current Directory, i.e. the directory that the OS considers 'current' when the compiler hits the line. It is very doubtfull that this will work consistently across platforms. It will probably work consistently in your current project. As soon as you step outside that, it ma or may not work. Why go through all this in the File, Just set another search path for header files in your options.
Bram van Kampen
|
|
|
|
|
If I include it within <> it only search the include directory, isn't it?
I appreciate your help all the time...
Eranga
|
|
|
|
|
#include "" tells the compiler to search the file in the current project directory first
#include <> means to search the file in the compiler headers directory. commonly, under Windows, it is somewhere in Program Files/.
|
|
|
|
|
#include<...> means to search first tru a list of 'Standard' directories. You can edit or change that list through your Project/Settings options. At the time of writing the standard, the fear was that someone had his own working library and header file like say 'stdio.h', which at that time could have crashed some one's code when they took the standard on board. Hence the '<...>' is for 'standard' files.
NB, from an Old Hand: Use <...> ONLY for standard files , and "..." for ALL your own includes as a matter of form!
It eill save you heartache over time, untill you gain full understanding of how your compiler searches include directories.
Bram van Kampen
|
|
|
|
|
Why d'you say this to ME ?
|
|
|
|
|
|
#include<...> means to search first tru a list of 'Standard' directories. You can edit or change that list through your Project/Settings options. At the time of writing the standard, the fear was that someone had his own working library and header file like say 'stdio.h', which at that time could have crashed some one's code when they took the standard on board. Hence the '<...>' is for 'standard' files.
NB, from an Old Hand: Use <...> ONLY for standard files , and "..." for ALL your own includes as a matter of form!
It eill save you heartache over time, untill you gain full understanding of how your compiler searches include directories.
Bram van Kampen
|
|
|
|
|
|
Does visible style is true ?
|
|
|
|
|
|
Did you try with to add controls to form with code not visual,did you have same problem?
|
|
|
|
|
Not yet.
It's ok in vc6.
I've uninstalled vs2008 just now.
I'll try vs2005 tomorrow.
Thanks all the same.
|
|
|
|
|
I hope you didn't uninstall VS 2008 just because your
controls didn't show up
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Another reason is that it is bit slow and lack of a class wizard at least in the beta version.
I've tried to report the control problem to ms.
|
|
|
|
|
Does anyone know how to retrieve a Hard Disk Serial number from the Hardware.(i.e. one that corresponds(or is supposed to do so) with the label on the Device. (or, for that matter, any other number that identifies a machine.) I am trying to put together some licencing software. Is there any code about I can readlly use free in a small commercial app, whitout delving into too many details.
Happy New Year to All
Bram van Kampen
|
|
|
|
|
Bram van Kampen wrote: Does anyone know how to retrieve a Hard Disk Serial number
Use Win32_PhysicalMedia class of WMI to get the hard disk serial number.
|
|
|
|
|
Naveen wrote: Use Win32_PhysicalMedia class of WMI to get the hard disk serial number.
Thanx
Do you have a brief example
Bram van Kampen
|
|
|
|
|
Bram van Kampen wrote: Do you have a brief example
Sorry i dont have. but i am sure you will find some if you google or check Microsfot script center[^]. Check this [^]link also( its in vb )
|
|
|
|