Sign in to follow this  
KennithTheMenith

Visual Studio questions

Recommended Posts

Hi, I have been using *nix based systems for the past few years and want to move some of my work over to Windows. 1) I have "Microsoft Development Environment 2002 7.0.9466" installed but am having some issues getting code to compile, specifically large numbers of template classes. As far as I can tell, this is an issue with VC++ and there has been a big improvement with VC++ Toolkit .NET 2003 (version 1.01, which is also VC++ version 7.1.something??), which I can download from MS, who claim it works 'alongside' Visual Studio. Can I download this, install it and use it within my current installation of Visual Studio? Am I going to have to buy the lastest VS to get the benefits of the IDE and compiler? 2) (General Question) What is going on with .dll .lib (and .def) files? I appear to be building against .lib and running with a .dll? Sorry if these are really obvious, finding clear explanations feels a bit like swimming in porridge and I am feeling a little disorientated.

Share this post


Link to post
Share on other sites
1) Considering you already have VS 7.0 (a.k.a 2002), you can try and download the VS 7.1 (a.k.a 2003 toolkit). I assume it will work (I have 2003 so I haven't tried). Playing witht the path settings in the IDE (and possibly environment variables) may do the trick without overwriting the 2002 stuff (look at the IDE's command line options, there may be things you can toggle there) .

2) In windows, you don't directly link to dynamic libraries (.dll). You link against import libraries (.lib). Part of the confusion comes from the fact that there are two types of .lib files, actual static libraries containing code, and import libraries that just forward to the DLL. You can generally tell the difference from the size alone [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by Pipo DeClown
I have a question too: how do I give typedef's and my own datatypes color, in VS.NET2003?

User's Keywords doesn't work for me.


I don't know, I use Visual Assist.

Share this post


Link to post
Share on other sites
in VS6 usertypes.dat in the vs\vc\bin\ dir or something ( search this file name out in the help files... sry )

you would define your datatype names in this file... and then
the usertypes option for formating changes the color of the
names listed in the document.

Share this post


Link to post
Share on other sites
Quote:
Original post by Pipo DeClown
I have a question too: how do I give typedef's and my own datatypes color, in VS.NET2003?

User's Keywords doesn't work for me.


This doesn't work for you?

Share this post


Link to post
Share on other sites
Quote:
Original post by Verg
Quote:
Original post by Pipo DeClown
I have a question too: how do I give typedef's and my own datatypes color, in VS.NET2003?

User's Keywords doesn't work for me.


This doesn't work for you?


Dude, I don't want to add every class/struct I wrote in a txtfile. I'm talking about the automatic thingee. I guess Visual Assist offers that.. Hmm..
Thanks anyway. It's here too.

Share this post


Link to post
Share on other sites
Quote:
Original post by KennithTheMenith

1) I have "Microsoft Development Environment 2002 7.0.9466" installed but am having some issues getting code to compile, specifically large numbers of template classes. As far as I can tell, this is an issue with VC++ and there has been a big improvement with VC++ Toolkit .NET 2003 (version 1.01, which is also VC++ version 7.1.something??), which I can download from MS, who claim it works 'alongside' Visual Studio. Can I download this, install it and use it within my current installation of Visual Studio? Am I going to have to buy the lastest VS to get the benefits of the IDE and compiler?



Just overwrite cl.exe and link.exe in your vc7 folder with the new compiler / linker. It works flawlessly, but the new command line switches for optimization, like /G7 and /arch:SSE require manually entering on the "advanced" line of the properties dialog.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this