visual-studio-2005

Use of Edit.SelectToLastGoBack in Visual Studio

There is a command in Visual Studio 2005 called Edit.SelectToLastGoBack (bound to Ctrl + =). I presume it is supposed to select all the text between the current cursor position and the last 'Go Back' point, but I can't work out the algorithm it's using for deciding what that point is. Does anyone know how to use this potentially very ...

Help for code tranformation of VC++

I have a code in VC++ for developing windows through API which runs on Windows NT can this code be edited to run on windows XP. Every program show only one message Program needs Windows NT to be installed, to run. ...

How can I make a dialogbox that will look for my picture files in my computer using vb2005

I'm having difficulty coding in vb2005 for searching an image for my database storage. I made a employees system and i use to add picture to it, same with all of the his personal data. I want to make a button that will look for a file in mycomputer for an image to store in my picture box. Can anyone help me in this code. thanks in ad...

How to format a DateTime variable to get the Month, and then put the value into a string in C#? [VS2005]

DateTime dt = Convert.ToDateTime(dateTimePicker1.Text); //taken the DateTime from form string dt1 = String.Format("Y", dt); //trying to make so that it comes to "August 2009" Tried but all I get is dt1="Y". ...

Unable to start program in debug mode. Debug Dll installation issue?

Hi all. I've just get a new machine and try to checkout, build and launch my program. When hitting "launch in debug" button, I have this error message poping up from MS VS: Unable to start program 'xx'. This application has failed to start because the application configuration is incorrect. Reviex the manifest file for possi...

Blank text editor in Vis Studio

I have just installed VS 2005. I created a project. I added code to the project and then debugged the code. The program ran ok. I save the project. Everything saves fine. I go to open the project and the text editor is blank, or so it appears. After further investigation I notice that the code is there but I just can't see it. I ...

Move file associations from Visual Studio 2005 to 2008

Both Visual Studio 2005 and Visual Studio 2008 is installed on my PC, but when I open a .aspx or .master file from Explorer, it opens in 2005. I would like them to open in 2008. I could change the file associations manually, but there are quite a lot of file extensions to go through. Is there an easy way to give all the file associat...

Detecting precompiled headers

Is there a way for the preprocessor to detect if the code in current translation unit uses(or is creating) precompiled headers? --- The actual problem I'm facing right now is that I'm on a project that is abusing PCH by precompiling virtually all header files. That means there is none of the clear dependency management you can get from...

cannot use 'new' on the reference type; use 'gcnew' instead ? in VS 2005

I am using a C++ language I am getting a strange error when I am try to create a simple object of DataTable its giving error System::Data::DataTable* myDataTable = new DataTable(); even I tried this System::Data::DataTable myDataTable = new DataTable(); getting the following error please help. error C2750: 'System::Data::DataTable' :...

How can I multiply matrix greater than 4 x 4 in the vc++ using directx?

I have to multiply 12x12 matrix with 12x 1 matrix in VC++ directx. Which template library should I use with vs 2005 I want to do matrix multiplication faster too. ...

How to tell MSI not to ovewrite existing file in Setup & Deployment Project in VS2005?

Hi, I've got a Setup & Deployment Project in VS2005. One of the files that i'm installing is a SQLite data file. I'm about to release a new version for the software, but i found that if i run the update on existing installation it overwrites the data file. I've got an updated data file in the setup project so it's newer than already i...

How do I print to the debug output window in a Win32 app?

I've got a win32 project that I've loaded into Visual Studio 2005. I'd like to be able to print things to the Visual Studio output window, but I can't for the life of me work out how. I've tried 'printf' and 'cout <<' but my messages stay stubbornly unprinted. Is there some sort of special way to print to the Visual Studio output window...

How to insert values into database?

Hi guys, I have taken some text field and abd some labels and one submit and one reset button. I want to code like: when i enter some values in text boxes and click upon submit my record will get submitted into the database. And when i click upon reset then my form will get reset. Please let me know how will i code this scenario. Thank...

Can I remotely debug a linux machine from VS2005?

I am developing a cross-platform application in C++ in VS2005. I already know how to run a remote process on a windows box, attach it, and debug from my VS. Is there a way to do debug a running process on Linux for example? What about other *nix platforms such as Solaris or AIX? I can do emacs+gdb, but if this can be done from VS I'd pr...

Raising events in multi-threaded classes?

Raising events in multithreaded classes? I am running a class(gamepad handler) that uses many child threads to check for key input and the like then it raises events to my form to sort out the needed reaction, Is there a way to make the event raises on the same thread as the class itself. ...

Can you reorder columns in Report designer (bids 2005)

I have a reporting service report and I can't seem to figure out how to reorder the columns in the table control. Is this possible with editing the rdl file directly? ...

c# vs2005 .net 2.0: code optimization

What is the best way to see memory leaks or areas to optimize code in your .net source code? I am using vs2005, c# , .net 2.0 Any good free tools out there that I can safely install on my work desktop? ...

Build one project inside a solution from the command line

I am working on a large C++ solution in Visual Studio 2005. I want to log all of the output from the build of one project within that solution. The output window in VS seems to be malfunctioning. I suspect there is too much output for it to handle. I can't copy the output and I can't even save it to disk. My idea is to build the pro...

'Could not find project configuration' build error

I'm getting the build error 'error VCBLD0007: Could not find project configuration RELEASE|X64 to build.' when attempting to build in that configuration. Release|Win32 works fine. The configuration definitely does exist in the project. I'm building with vcbuild in VS2005 and running on a x64 box. Anyone have a hint? ...

Is there any method to move some source code from on folder to another easily in vs2005?

I'v write lots of code in c++ vs2005. I decided to move some source code to other folder. It make lots of compile errors, because of include error, Is there a tool to move source code easily, which can modify .h include automaticly? ...