visual-studio-2008

How to execute a VS2008 command from Python and grab its output?

I wish to run tf changeset 12345 Using the Visual Studio 2008 Command tool. It is located in: "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\" and the command that gets launched is: %comspec% /k ""c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86 I would like to append the "tf changeset 12345" to it s...

How can I access the currently opened project's types(classes) from a Visual Studio add-in?

How can I access the currently opened project's types(classes) from a Visual Studio add-in(be able to create instances of those classes within the add-in)? Is this possible through reflection? Or maybe dynamically include the project's assembly as a reference? What I'd like to have in the end is a list of all types accessible from the p...

Is there a way to tell from code whether the application was developed in Visual Studio 2008 Express or Standard or Pro?

Hello, Is there a way to tell if the project was done in Visual Studio 2008 Express Edition or higher (pay) versions were used? Like if you were handed over a project and they ask you what version of Visual Studio was it created with (except the obvious 2005/2008/2010 difference). With regards, MadBoy ...

How to add menubar in my program with Visual Studio 2008 ?

I managed to create the menubar in the menu editor by clicking and writing text to each menu item i wanted. I cant see any button to get the code to include the menu in my program. How i can get this menu working? C++ ...

Is it possible to reference a string resource in the designer properties for a control in Visual Studio?

I am using Visual Studio 2008 and I am storing some string values in a resource file. I want to use the string values for things like a button's Text property. All of the examples I can find related to localization or storing strings in a resource file show you how to use a ResourceManager object and assign properties in code. However, I...

.obj to .cpp converter?

Is there any .obj to .cpp converter? Is it possible to do it? MICROSOFT VISUAL STUDIO auto-magically deleted my code files when pressed the F5 key. Please help me. i have the .obj files(VS forgot to delete them.ha ha ha). ...

how do I get items from listview to use them in combobox

Hello, I try to get the items from a listview to use them in a combobox, so I can select one of them to create an order. Im my application I use 3 listview in separate forms to store some informations. Based on the informations stored there I want to create a order. I'm using visual c++ 2008 express. Please help!!! ...

How to automatically publish a website on build in Visual Studio 2008?

I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built. I use Visual Studio 2008. ...

Failing to attach database

Hey! I am trying to attach a .mdf file in an asp.net 3.5 project to MS SQL Server 2008, so I will be able to open the database and edit it. I have tried to go to server management studio -> connect to server instance -> right-clicked databases and pressed attach -> press add in the "attach database" section. An explorer pops up but it is...

Visual Studio 2008 Debugger randomly dying

Hello All, I am having a rather bizarre error when trying to debug a .NET web application. My system: Windows 7 Ultimate (IIS7), Visual Studio 2008, DotNetNuke 4.8.2. I have a Web Application which I am trying to attach the debugger to w3wp.exe. I set a breakpoint in my code: could be an ascx.cs page or a library I am referencing. ...

How do I programmaticly set data source for Asp.net report control?

How do I programmaticly set data source for Asp.net report control? I have a VS 2008 report control and want to switch between a couple different reports. I can switch repots by setting the report source and refreshing the control but I can't see where to set the data source. Each report has it's own data source and if I set them to s...

InvalidCastException on Result of Indexing Into an ArrayList

I have an ArrayList filled with a bunch of Points and I want to loop over them, so I use this code: for (int i = 0; i < currentClicks.Count; i++) { if (i > 0) // Skip the first click { clickPos = currentClicks[i]; prevPos = currentClicks[i - 1]; } } and I get this error on the clickPos and prevPos lines: C...

Visual Studio 2008 SP1 throws exceptions while opening and closing any solution

Visual Studio 2008 is working well since 2008 on my computer. But today I observed a strange problem. Whenever I open/close any solution, new or existing one it takes long time and almost hung. It consumes lot of memory during this time. Did anyone face similar problem? ...

java through c sharp.

I would like to use a java applet which is on an html file as .. This java applet contains a textbox, and i want to access it as whenever I click a button in my c# app a certain txt appears there... I have already embedded it with the use of webBrowser.. Any sample code, or suggestion?!.. Note: development under visual studio 2008 an...

'MINMAXINFO' : undeclared identifier in MFC application

hi I tried to use MINMAXINFO to resize the window dynamically in MFC application (in VS 2008). i added OnGetMinMaxInfo function through properties window. When i compile the code, i get an error saying that 'ON_WM_GETMINMAXINFO': identifier not found 'MINMAXINFO' : undeclared identifier Please help me to resolve this. Regards, AH ...

Can u tell me how to display a composition & Dependency relationship in class diagrams Using VS 2008 IDE

i am trying to display a compostion and dependency relation ship in class diagram using vs 2008 but there are no diagrame associated with the above mention relation ship please help me with this ...

C# - Debug.WriteLine - is this function ASync?

Hello; I just came across a situation: I was debugging a thread which iterates through a large amount of data. I was using Debug.WriteLine to print which record is being processed. What just happened is that thread has reported that it has processed all records, however, Visual Studio's debug window is still displaying out. I am positiv...

Disabling .ccexclude Files

We are developing on Visual Studio 2008 with Clearcase integration. Some of our project files have rules which include all files (**) within a particular directory. Sometimes this results in Clearcase creating .ccexclude files. The IBM documentation on .ccexclude files, says that there is a way to disable the creation of these files, but...

Visual Studio Unit Tests : dll is not trusted

I'm struggling getting some unit tests running and wondering if anyone might have anything insightful. The setup is that we've got a bunch of referenced DLL's on a server and when I try and execute I get the old Test Run deployment issue: The location of the file or directory 'c:\source\ProjectName\bin\debug\3rdPartyLibrary.dl...

Migrating .NET 2.0 (VS2005) C# solution to .NET 3.5 (VS2008) - What problems to expect?

My team is looking into upgrading our large-ish C# solution (~30 projects, probably thousands of files) from VS 2005 to VS 2008. From your experience, what problems, if any, are likely to appear? Oh yeah, there are a few isolated components still using VS2003 that should also be upgraded to VS2008. ...