VS 2005 Express is now free, even for commercial!

A forum to store posts deemed exceptionally wise and useful
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

One last thing I forgot to remark; My executable went down from 65 kb to 17kb! Icon resource included and everything...good...gooooddd...buuuuuuuuuuuuahahahahahhahahahahah!!!! :twisted: :twisted: :twisted: :twisted: :twisted:

ps. GFX: how do you disable or change the warning level?
Guest

Post by Guest »

hehe no my is 900kb right now but i already kicked directx8/9 out. i have to kick the rest of that unneeded stuff (for me) out too, i guess then it will be at 300-500 8) and with the compiler optimisations maybe even lower

to the crappy files it creates: a few of them you can turn of (like manifest for example i think .. all in the projects opions settings)

but i have a suggestion:

set the output dir to whereever you want to have the .exe to. then the rest will be just in Debug and Release dirs which you never have to touch, but the exe will be moved to the dir you have choosen.


turn off the warning level:

you have to go to Project/[yourproject] Properties

then you will get a menu. there you have to select "Configuration Properties" and then select the "C/C++" submenu. there you will find a list with settings on the right with a column named "warning level". when you click on it, a list should appear and there you can select "OFF".

now all the "drink-your-milk" warnings are gone :D :D


ps: you can set the output directory in the same menu, but under "Configuration Properties->General" :)
AndyCR
Posts: 110
Joined: Tue Nov 08, 2005 2:51 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

i noticed that it somehow loses directx 8 support using this compiler, acts like it isnt compiled in. just a note.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Greatest New feature so far is the Code Definition Window. Shows the code of the function your cursor is on in the edit window from the header where it's defined. Very useful, even works on CTORS!!
Image
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Oh to build, I disabled warning 4996 and added user32.lib, glu32.lib, gdi32.lib, AdvAPI32.Lib to the input in Linker Settings. Builds with no errors and no warnings
Image
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

You don't need to add these libs to all the projects. Just change the default inherited vsprops file.

From the docs about how to integrate the PlatformSDK:
Step 4. Update the corewin_express.vsprops file.

You just need to take one more step(..) You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and change the string that reads:

AdditionalDependencies="kernel32.lib"

to

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Thanx GFX and Baal and all of you guys! All of your tips worked great!. :D

But what will be better: to add the libs manually in the project or make them a default changing "corewin_express.vsprops"? I mean, are they necessary if we compile other projects? Won't these libs be overused in projects that don't require them?

hehehe, now more porting to do....
:wink:
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

libs are static, so only the code needed in the final .exe is included from the lib, so it shouldn't affect size. Those libs are, however, only for windows GDI calls and other WinAPI calls.
Image
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

With Visual C++ 2003/2002 and VC6 these libs are always added to the projects by default. The only reason this is not the case for Visual C++ 2005 Express is, that by default it does not come with the PlatformSDK. There is no harm in adding them to the corewin_express.vsprops, it only makes life easier when converting old projects and it doesn't clutter your project settings. Like Spintz said, executable size is not affected by this.
Guest

Post by Guest »

you can also adjust compiler settings in the IDE, no need to edit around in .cfg files lol :)
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

There is no way, through the IDE, to update the default lib's that are linked, the only way, is as Ball mentioned, through the corewin_express.vsprops file.
Image
Guest

Post by Guest »

Hmm, been messing about with the VC++ Express offering... typical MS. Too much crap, everything *including* the kitchen sink... :roll:

I'm sure it has it's redeeming points for some but personally, I'll stay with Code::Blocks, the gcc compiler and the gdb debugger. 8)
Guest

Post by Guest »

if i would have started windows right now i could show you.

there is a menu where you can set the default compiler settings/paths and that stuff, so im sure like hell that you can also set the default libs that are used.

dont know exactly, though.


ps: have to go now, see you tomorrow (yeah, lan party lol)
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I double checked, there is no way, even searching the MS support site, it tells you to modify the file. You can only change paths, not the actual default libs in the IDE.
Image
Guest

Post by Guest »

i checked it a few minutes ago, you were right spintz :)
Post Reply