RSS
 

Posts Tagged ‘Visual Studio’

VC++ directories (include, libraries…) in Visual Studio 2010

23 feb

In Microsoft Visual Studio 2010 VC++ directories are no longer a property of the IDE, so it is not possible to modify them from Tools->Options->Projects and Solutions->VC++Directories, it is necesary to specify them as project properties.

However, those who installed VS2010 on a box where a previous version was already installed, will find the same predefined directories. This is an annoying problem if those directories are outdated: suppose you install a newer version of some libraries (e.g. boost): then you need to remove the older one, but how?

Here’s the solution: go to $(USERPROFILE)\appdata\local\microsoft\msbuild\v4.0 and edit the profile files there (Microsoft.Cpp.Win32.user.props, in most cases).

 
No Comments

Posted in geek

 

ILOG CP optimizer: iostream.h not found?

16 feb

I was trying IBM ILOG CP optimizer C++ API but found this error (Visual Studio 2010):

error C1083: Cannot open include file: ‘iostream.h’: No such file or directory

The error was located in ilosys.h and for a few seconds I thought I had to edit all the library .h files!!! :-(

Fortunately I discovered it’s not necessary, simply

#define IL_STD

and things will work smoothly.

Enjoy Constraint Programming!

 
No Comments

Posted in geek

 

Unavailable Visual Studio Intellisense in C++ projetcs

10 nov

Sometimes, in C++ projects, Visual Studio IntelliSense stops working with apparently no reasons. There are many official and non official guides on how to troubleshoot it and they almost always say that, given some conditions are respected, if IntelliSense doesn’t work, it is suggested to delete its database to let Visual Studio rebuilds it. To be able to do it, it is necessary to close the current solution, otherwise windows wouldn’t allow the access to the .ncb file.

However this procedure apparently doesn’t work for me. Read the rest of this entry »

 
2 Comments

Posted in geek

 

l’installazione di Visual Studio

16 set

Per installare Visual Studio 2008 su Vista c’è voluto poco più di un ora. In assoluto è un tempo lungo ma rispetto al 2005 – che come dice Edo richiede patch, service pack e palle varie – è molto poco.

Mi butto gioioso nello sviluppo :-)

 
No Comments

Posted in geek

 

stupido visual studio!

08 feb

Visual Studio mi fa arrabbiare perché è infido. Dopo aver passato quattro giorni a installarlo e disinstallarlo e reinstallarlo, cercando di scoprire l’ordine corretto con cui installare i vari service pack che servono, pensavo di aver risolto il problema. Invece, a distanza di qualche tempo, ecco che ricomincia a piantarsi nel bel mezzo del debug, proponendomi di reinstallarlo per risolvere il problema (una dll mancante, dice).

Che palle :(

 
No Comments

Posted in geek, me