|
Hi prathuraj,
prathuraj wrote: The IPL priority order is stored
If you are referring to driver loading order, there are no guarantees of order (outside of partitioning into SYSTEM_BOOT, etc). See Services[^] in MSDN.
Jeff
|
|
|
|
|
#include<iostream.h>
in the above line , is it right to say that #include is a pre processor directive.
|
|
|
|
|
Nilish wrote: #include<iostream.h>
in the above line , is it right to say that #include is a pre processor directive. \
The #include directive tells the preprocessor to treat the contents of a specified file as if those contents had appeared in the source program at the point where the directive appears.
I hope that this answers your question.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Sir, can u please explain a little bit more?
|
|
|
|
|
Nilish wrote: Sir, can u please explain a little bit more?
what don't you understand then ?
|
|
|
|
|
Basically, it replaces the #include line with the contents of the header file you include.
|
|
|
|
|
Straight from MSDN.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Nilish wrote: n the above line , is it right to say that #include is a pre processor directive.
yes. every keyword that starts with a # is a preprocessor directive, and is told to work before the compiler actually starts its processing, thus the name pre-processor.
something totally different, you should prefer including <iostream> rather than <iostream>.h (notice the .h at the end of the file name). I'm not even sure the later one exists...
|
|
|
|
|
Oops - didn't see your reply. VS2005 is the first to not have iostream.h
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It's also true to say that it's not standard C++. The iostream.h header is deprecated and should not be used.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
In the MSDN documentation of CreateFont, it says that the font height is calculated by,
nHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);
Here, what is meant by the value 72 ?
- NS -
|
|
|
|
|
There are 72 points per inch.
|
|
|
|
|
But my doubt is that in the windows settings the default DPI is 96. This value got from the display properties (WinXP). So I am really confused from where this 72 came...
- NS -
|
|
|
|
|
NS17 wrote: But my doubt is that in the windows settings the default DPI is 96
Which is why MulDiv is used to convert "dots" to points (using 72 which is the number of points in
an inch).
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
|
Since on 72-dpi system you'll get (ignoring sign) nHeight=PointSize, I guess 72 it's, say, their (MS) reference display dpi.
(Of course it's only an hypothesis...)
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.
|
|
|
|
|
Hi all.
I want to add some custom menus in ‘Microsoft Front page’ application and also I want to handle click events on those custom menus.
Like…
I want to add custom menu and on click event of it, I want to open the currently selected image from Front page in MS-Paint.
This is something possible through ‘Add Ins’.
Can anybody please educate me more about creating ‘Add In’ Dlls, where to keep or how to register these Dlls with Front page?
A sample code for Add In Dlls would be most appreciated.
Thanks
Sameer Thakur
|
|
|
|
|
in my MFC applcn,i want to insert a combobox in a toolbar.hw to do this?
|
|
|
|
|
See Here[^] and here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
What's wrong with these code: a new field named "Field19" is created. i wanna set all the values in Field19 are "abc:
CDaoDatabase db;
CDaoTableDef tableDef(&db);
db.Open("C:\\ktt.mdb");
tableDef.Open("Table3");
CDaoRecordset recset( &db );
tableDef.CreateField("Field19",dbText,255,dbUpdatableField | dbVariableField);
if ( !recset.IsEOF() )
recset.MoveLast();
while( !recset.IsEOF() )
{
recset.SetFieldValue("Field19","abc");
recset.MovePrev();
}
|
|
|
|
|
Hi,
Well it depends on the recset.SetFieldValue("Field19","abc"); function.
Is everything operating corrcetly inside the function?Have you tried to use GetLastError() What is the debugger informing you?Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi.
In the MDI program that I've created, after I have "save as..", the title bar changed to the filename that I put in the save as dialog. How can I retain the old filename in the title bar?
|
|
|
|
|
The title bar is set with SetWindowText. It's set by the framework, you'd need to change it after this occurs, but the thing is, the filename is obviously being saved in a member variable, if you change the frame text without changing this value, clicking save won't do what you'd expect. So, I'd recommend stepping into the MFC code to work out the stuff that happens in a save as that you want to reverse.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Aint,
You can overwrite SetTitle() in your CDocument derived class. This Method will be called after Sav'ing and Save As'ing.
|
|
|
|