|
So, does that mean for vc 6.0 (with version == 1300), #pragma once is not executed ? If yes, does that mean the file will be compiled every time we build it ?
|
|
|
|
|
Shilpi Boosar wrote: for vc 6.0 its value is 1000.
Are you sure? I just checked and it returned 1200
BTW I have sp5 installed. Will that change the compiler version?
|
|
|
|
|
Sorry. For vc 6.0 (version is >= 1000).
So everything is fine. Thanks for the discussion.
|
|
|
|
|
Yes it is 1200 .
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
The _MSC_VER macro will have one of the following values depending upon the particular Microsoft compiler: Compiler _MSC_VER value
-------- --------------
C Compiler version 6.0 600
C/C++ compiler version 7.0 700
Visual C++, Windows, version 1.0 800
Visual C++, 32-bit, version 1.0 800
Visual C++, Windows, version 2.0 900
Visual C++, 32-bit, version 2.x 900
Visual C++, 32-bit, version 4.0 1000
Visual C++, 32-bit, version 5.0 1100
Visual C++, 32-bit, version 6.0 1200
.....
from http://support.microsoft.com/kb/65472[^]
|
|
|
|
|
To add to Mukesh's reply:
It tells the compiler that there are no side effect from multiple inclusions, i.e. including it twice has the same effect as including it once.
It is similar to include guards (#infdef foo_h #define foo_h ... #endif), but is a bt more strict and offers better performance: the compiler does not need to open the file again, and parse the entire text.
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist
|
|
|
|
|
SherTeks wrote: #if _MSC_VER > 1000
See here.
SherTeks wrote: #pragma once
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello all,
I am trying to make a progress bar in a dialog box. What i want to do is as soon as dialog box is displayed the progress bar should start running.
i am writing code for running progressbar in OnInitDialog so its not showing progress bar runnning.
How can i do it?
Thanks in advance
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
ThatsMe. wrote: i am writing code for running progressbar in OnInitDialog
Can you show the code?
|
|
|
|
|
code is like....
this is my OnInitDialog() function
BOOL CExeCreatorDlg::OnInitDialog()
{
CreatingExe(i);
return TRUE;
}
and in this function i am stepping up the progress bar and setting its position....
obviously i know untill dialog box return value it'll not be created and how could progress bar show up.... so where i should call my function i am not getting this
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
If you continuously step the progress bar inside a loop, it will not get a chance to paint. So what you have to do is Create a thread, and call CreatingExe() from that thread.
If you are not doing any other processing, you can and a timer and set the progree bar position from that function.
|
|
|
|
|
Hi,
SetUp timer in OnInitDilag like this
<br />
BOOL CExeCreatorDlg::OnInitDialog()<br />
{<br />
SetTimer(this->m_hWnd, 1,1000,0);<br />
}<br />
and In OnTimer Call you function CreatingExe(i);<br />
void CExeCreatorDlg::onTimer(UINT Id)<br />
{<br />
CreatingExe(i);<br />
}<br />
<br />
thanks<br />
Nitheesh<br />
<br />
<br />
<br />
|
|
|
|
|
Please let me know how should I be able to get the values from a property file. I am badly stuck with this.
THanks
|
|
|
|
|
What do you call a property file exactly ? Please provide a precise description of what you are trying to achieve.
|
|
|
|
|
Property files are those which have key's and its values..
Following is the listing of my property file. Which I hav to read and get the values.. The left of '=' is key and right side is value.
#Details about files
file_name=lg
Max_file_size=1
No_of_file_backups=5
# modes
Mode_min=MIN
Mode_mid=MID
Mode_max=MAX
|
|
|
|
|
What did you already try, where are you stuck ? (please, see the posting guidelines at the top of this message board)
|
|
|
|
|
I might have to use some getproperty() function. In which we specify the key. This function returns the associated value to the key in the properties file. This is what I know. Now I don't know how to use getproperty() function. What's it's syntax and the header file to be included in the project.
|
|
|
|
|
pl_kode wrote: I might have to use some getproperty() function
Sorry, never heard about such function . Is that a proprietary function ? If yes, then we won't be able to help you a lot, you should ask the guy who wrote the function how to use it.
(BTW, are you working in C++ ? )
|
|
|
|
|
Yes I am working on C++. This is an inbuilt funtion in some header file. that I am not able to figure out.
|
|
|
|
|
It needs to extract files to a directory according to where the application is installed.
modified on Friday, April 25, 2008 12:55 AM
|
|
|
|
|
You can get it searching for the application folder in registry or just listing the contents of the hard disk till you find it, then extract the files there where you need. The NSIS allows you to make the installator using conrecte scripting and selecting folders dinamically (choosen by the user or given internally), reading/writing to the registry and many other features.
But I think there is not any tool to make it all automatic. You should programm it by yourself
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Dear friends,
I've a log file and this file is getting updated regularly. Now i want to develop an application which *monitors* this file and display the contents of this file. If there is any new addition in this file, the application should immediately update the text in GUI window ? How can i do so.
Imtiaz
|
|
|
|
|
|
Here is one example.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm writing MFC dialog based application.
I changes the background's color from the default Grey one.
How can I change also the menu color? I can't find how to do it.
Thanks, for any help.
|
|
|
|