|
We tried VS 2010 this week (the official release). Our link time is cut by 50%, that's enough for us to switch to 2010. We hope microsoft will continue to imporve link time because it is still slow for our projects...
Note that incremental linking is working on our biggest project with 2010. The problem is that it failed when static library are modified (even if "Link Library Dependency" and "Use Library Dependancy Input" are set). We make a lot of developement in static library... Fast solution build solved this problem for VS 2003 but there is no version for 2010.
So for us 2010 is better than 2005 even if we had expected a better improvement. The only problem with 2010 is IncrediBuild: there is no version available yet...
Frédéric
|
|
|
|
|
Thank you for the update
Glad to hear that VS2010 have improved the linker times. Still using VS2005 in our main production.
Our developers are now getting quad core machines with hyper threading (Shown as 8 cores in the Task Manager)
When using the /MP compiler option, then the compile on a single computer is pretty much the same as if using Incredibuild.
Also the developers NOT using Incredibuild experience that incremental linking is actually working more often than normal.
|
|
|
|
|
hi all,
i am actually trying to load a readonly file into my application.
i am using CFileStatus's Getstatus method to find out the value of dwFileAttributes value.
i am getting the value as 33..
my doubt is, do we get this value as 33 for all readonly files?? but in msdn, its been given as 1 for readonly file..
thanks,
rakesh.
|
|
|
|
|
The status is a flag value, what means every bit that is set has his own meaning.
In your case 33 equals 0x21 (hex) equals 100001b (binary), what means the first and the sixth
bits are set.
Now if you look at th attributes:
enum Attribute {
normal = 0x00,
readOnly = 0x01,
hidden = 0x02,
system = 0x04,
volume = 0x08,
directory = 0x10,
archive = 0x20
};
You will see the 33 (0x21) means it is a readOnly and an archived file (0x01 + 0x20 == 0x21).
Greetings
Covean
|
|
|
|
|
Rakesh5 wrote: my doubt is, do we get this value as 33 for all readonly files??
Nope, according to ducomentation 33 means 'archive' AND 'read-only'.
You should test the least significative bit of the m_attribute byte, in order to get the read-only property, for instance
bool isReadOnly = (status.m_attribute & CFileStatus::Attribute.readOnly) == CFileStatus::Attribute.readOnly;
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am facing a tedious task of converting whole application(which have hundreds of solution files) from visual studio 2005 to visual studio 2008.
Please help in minizing the work of opening every solution file in 2008 and converting and saving.
Also please help me in chaging the project settings for all these files at once and building all the solutions.
|
|
|
|
|
Ouch. Please let me know if you learn how to update these automatically via the command line.
For the project settings, I have all of my projects using .vsprops files for project settings.
You also might be able to modify the .vcproj files, but back them up first just in case.
|
|
|
|
|
make a backup of the 2005 files and than convert a simple project and compare the differences. So sometimes you only have to change a version string.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Thanks for the reply. Yeah I know using the command promt to convert the files to vs2008. But again it will open up the wizard to convert. I am expecting a tool/shortcut methos to convert a series of .sln files located in a folder at one shot. Is it possible to do that?
|
|
|
|
|
I don't know of an automated tool. I do know that the VS 2008 converter sometimes makes mistakes, the most notorious of which is failing to bring over the /O2 optimize setting in release builds.
|
|
|
|
|
Seems you can run VS 2008 with command line parameter "/convert". Hope this[^] article helps.
-Suhredayan
|
|
|
|
|
Hi,
Recently I attempted a interview. There they ask me one question,
" You have a file with employee records, with fields empno, emp name and salary. Now you have to retrieve employee information based on the employee name"
For this what I answered is, I will write a vector and based on the emp no I will search the records.
For this he again ask me what happens when that particular file is in terabytes of memory records.
Please can any one knows the approach for retrieve a emprecord from a big file based on the number....
Thanx in advance........
sampath-padamatinti
|
|
|
|
|
One solution is to build an index to the records in the file.
|
|
|
|
|
Hasnt the application which had written such file, an API too solve such tasks
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
He may have raised the terabyte issue only because you mentioned about vector. Maybe he was expecting something else - like it is may not be a good idea to search employee information based on name, since there may be duplicates.
-Suhredayan
|
|
|
|
|
I don't know where to ask this.. I have to make function in NASM that receives array and its size, then returns array.. ex. 1,2,3,4,5--> output: 5,4,3,2,1
Can anyone help me with this, because i don't know how to do it!?
Best regards
|
|
|
|
|
Aljaz111 wrote: I don't know where to ask this
The NASM Forum[^] sounds like a good place.
|
|
|
|
|
Hi All,
i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:-
HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid);
and
HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}");
but failing in both the cases.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Maybe you need to check HRESULT to see what is wrong.
However, have you called CoInitialize or CoInitializeEx first?
And finally, you can write:
HRESULT hres = sobj.CreateInstance(OLESTR("ScriptObj.ScriptObj"));
|
|
|
|
|
|
do you have researched desktop messages, can you share your fruit to me?
for ins, if i refresh destop, what message does the desktop gain?
thank you very much
|
|
|
|
|
It is not clear what you want to do but i will assume you want to force the desktop to be redrawn, try this:
::InvalidateRect(NULL, NULL, TRUE);
and see if it produces what you wish or not.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
thank you all the same, but i want the message whick desktop gains when i refresh desktop, i use spy++, but too message to distinguish
|
|
|
|
|
What exactly do you mean by "refresh"?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
"refresh" just is a action for repainting the desktop, you can do the action by pressing right mouse button on the desktop and clicking the refurbish item on the pop-up menu
|
|
|
|