visual-studio-2005

How to static linking to POCO library in VS2005 C++

I have below settings done, but looks like it's still not working. Properties > C/C++ > Preprocessor > Preprocessor Definitions += POCO_STATIC Properties > Linker > Input > Additional Dependancies = PocoNetmt.lib PocoFoundationmt.lib What did I miss? Please advise, thanks. ...

Using assembly names containing the word "update" in Visual Studio 2005

I've been using Visual Studio 2005 for a few years and I've come across a problem which I'm wondering whether its me being stupid. I'm using Windows Vista and I can't debug a project with an assembly name containg the word "update" without running Visual Studio in administrator mode. For example, I created a new windows forms applicati...

WinAPI CIniFile::ReadFile() can't read ini file

IDE: VS2005 Is there anyway to know why ReadFile() failed? I can't find the reason some of the INI can't be read. Thanks. EDIT: CIniFile iniFile; iniFile.SetPath( "C:\\Services\\Server\\Server.INI" ); if( iniFile.ReadFile()) my code... The program never gets in the if block. And, sorry for the confusing. I use this library for ...

DataGridView: how to make scrollbar in sync with current cell selection?

I have a windows application with DataGridView as data presentation. Every 2 minutes, the grid will be refreshed with new data. In order to keep the scroll bar in sync with the new data added, I have to reset its ScrollBars: dbv.Rows.Clear(); // clear rows SCrollBars sc = dbv.ScrollBars; dbv.ScrollBars = ScrollBars.None; // continue to ...

How to connect from vs 2008 to sql server 2008

How can I connect from vs2005 to remote Sql Server (Sql Server 2008 ) when I connect I have amessage mean that is not support connecting from VS2005 to Sql Server 2008 ...

How to get a nice view of data structure in debugger?

I am debugging a Visual C++ project that uses Rogue Wave a lot. I would like to see content of RW containers easily, i.e. i want to see list elements instead of this: What are my options? Can autoexp.dat do this? ...

Migrating a big project in MFC from Visual C++ 6.0 to Visual Studio 2005

I am maintaining a big project (~250k loc, not counting code generated from idl) in Visual C++ 6.0, that uses Visibroker (VB for short) 5.2.1 (which is a CORBA implementation from Borland). Recently, the other module that communicates with my project was upgraded to VB 8.0 and I got a bunch of incompatibility issues. Since VB 5.2.1 is no...

Work with VS 2010 on a project for VS 2005

I have a project on SourceSafe that the team work with VS 2005. I have installed VS2010 and like some features of this version. Is there a way that I keep the project to day with SourceSafe, but however work locally with VS2010. Say, I could not add new files to solution, but at least obtain, modify and archive the existing ones. ...

Log4cxx sample program and steps to compile

Hi guys Hoping someone can help out.. I've been scouring the net for a simple how-to to get a good log4cxx program working, with steps on setting up the libraries, dependants, directives, library paths etc etc.. as of yet i've found a lot of valuable but disjointed information.. trying to pull it all together has been a bit of a nightma...

Possible to combine Visual Studio 2005 with .NET Compact Framework 3.5 and Windows Mobile 6?

We only have Visual Studio 2005. We're developing an application for Windows Mobile 6 and would like to use the .NET Compact Framework 3.5. However VS 2005 defaults to the 2.0 framework (for Windows Mobile 5). It all works fine, but I would still like to use the 3.5 framework. Is this possible in some way? ...

Using the Windows 7 and DirectX SDKs with VS2005

I have Visual Studio 2005 and want to teach myself DirectX in my free time. I downloaded the latest Windows 7 and DirectX SDKs. According to Microsoft's website, the latest DirectX SDK is not compatible with Visual Studio 2005 (I assume they mean it's not compatible with the SDK it came with). Can I configure VS2005 to use the SDKs I dow...

Run Visual Studio with Administrator Rights using app.manifest [ExecutionLevel]

I need to change the key in a registry in order to restrict the user from using Task Manager, since it is an Kiosk application. My code for changing the registry is working perfectly for Administrator account. But my application is going to be run in normal user account. When i tried to run my application in normal user account, i get th...

subreport with image not display data in crystal report asp .net vs 2005

I currently have a crystal report that generating in Visual Studio 2005 which has a sub-report. I've linked the sub-report to dataset and dataset has one table call image and it contain column system.byte[]. main report link to another dataset . main report has parameters and sub report has only image field. but when run main report d...

VS2005 project has dependency that is not built

I have VS2005 solution that contains many projects and dependencies (some C++, some C#) - in the past it compiled successfully. when I rebuild all the solution it fails on a project claiming dll is missing (dll that was needed to built before according to dependency). the thing is that from time to time it fails on random project (not ...

issues regarding UAC prompt

I want to implement a UAC prompt for an application in visualc++ the operating system is 32bit x7460(2processor) Windowsserver 2008 the exe is myproject.exe through manifest.. Here for testing i wl build the application in Windows XP OS and copy the exe in to system containg the Windowsserver vistamachine and replace it So what i did i...

Fix for Visual Studio 2005 not showing filename or line on errors in web pages when compiling?

A project I'm on requires Visual Studio 2005. One annoyance is that when a website project in the solution, any compile errors from .aspx or .ascx files show up like: (0,0): warning CS0168: The variable 'ex' is declared but never used (0,0): warning CS0162: Unreachable code detected (0,0): warning CS0168: The variable 'ex' is declared...

Problems loading a project in Visual Studio 2005 design view

Whenever I open Visual Studio 2005, it opens correctly and without any errors. But when I load my project and try opening it in the design view it does not load. Actually, I get the error "Visual Studio 2005 (not responding)." What should I do to fix this error? ...

How do I enable code coverage in Visual Studio 2005?

I have looked at this question; http://stackoverflow.com/questions/2872158/ and the F1 page, but that doesn't help me much. I have set the profiling on and rebuilt, but I can't find the 'Data and Diagnostics' page, or see anything which resembles a coverage data file in the project folder. What I am trying to do get an equivalent to 'g...

Stop unit tests from running

I would like to prevent all subsequent unit tests from running when certain conditions are met in a unit test. Is this possible in Visual Studio 2005? ...

tips about creating VisualStudio LanguageService (for languages similar to java)

I need to create in very short period of time proof of concept for Visual Studio Language Service supporting "Java-like" languages. I would like to ask you about experience with creating VisualStudio LanguageServices or similar addins. Where I should prepare for really hard battle and what is easier to implement than it appears to be ? ...