visual-studio

How to load COM DLL at runtime

Hello, I have a VB6 COM DLL. I want to use it from C++. I know how to register it, generate a tlb file from the DLL, and #import it in C++. I'd like however, to load and use DLLs like this dynamically, at runtime, without knowing them in advance. Is this possible? Thanks, ...

MVC Project not present in Visual Studio Express

Hi Developers, I just installed Visual Studio 2010 Express via Web Platform. I forgot to install MVC 1.0, so i just downloaded it, and installed. Go til File -> New Project -> And there is no MVC project Just ASP.NET Web Application and some other stuff. I then downloaded MVC 2.0, and the same happend. In Control Panel -> Add/Remove P...

Error can not open source file "..."

Busy day today; asking more questions than usual... anyway.... I'm using VS2010 (downloaded via dreamspark) and although I can open the #include file by right clicking on it and pressing on Open Document, it complains "Error can not open source file "..."" which seems rather absurd. I'm using Qwt with Qt this time around and I'm specifi...

Shortcut to create automatic properties using Visual Studio 2008/2010 or Resharper 5

I have a class that contains a load of properties that contain results of some calculations e.g: public class Results { public double Result1 { get; set; } public double Result2 { get; set; } } In a different class I am doing calculations to populate the above properties, e.g: public class Calc { private Results Calc() ...

Visual Studio 2010 Web Performance Test / Load tests / Coded UI Tests. ANYONE REALLY USE THESE?

I can find some articles on how to use them but I can't seem to find anywhere peoples impression of them using them in real projects. I have been trying to figure out how to use them and I've had alot of problems. Can someone out there who uses these tools on the job give me thier impression? Are there better alternate tools available? ...

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. ...

Ignoring build number when referencing dll

I have one solution with a .NET 4.0 project (C#) that produces a delayed signed dll, that I dotfuscate and sign. EDIT: This is how I version the dll: [assembly: AssemblyVersion("0.7.0.*")] [assembly: AssemblyFileVersion("0.7.0.0")] I have another solution with a .NET 4.0 project (C++/CLI) that references the signed dll and produces a...

Compressing a database to a single file?

Hi all. In my contact manager program I have been storing information by reading and writing comma delimited files for each individual contact, and storing notes in a file for each note, and I'm wondering how I could go about shrinking them all into one file effectively. I have attempted using data entry tools in the visual studio toolbo...

VB.Net 2008 Chrome or Firefox control

I'm trying to figure out a way to have multiple sessions at the same website at the same time. I've been using the SHDocVw.InternetExplorer control in Visual Studio 2008 to open a web browser and log in, but at times we need to use a separate login. I haven't found a way to do this using just internet explorer (it just uses the credent...

Eclipse vs. Visual Studio: What are the features in Eclipse that are not present in Visual Studio and vice versa?

I keep hearing Eclipse is better than or way ahead than Visual studio but when I installed eclipse I felt it is very clunky and hard to use interface. So I want to know what is so great about Eclipse and if there are others who agree with me. I also could not find a similar question that talks about the specific features about Eclipse a...

does VS express conflict with professional ??

I just recently installed VS 2008 Professional on my computer and I already have C++ and C# express on my computer. But for some strange reason I can not find the executable for VS professional 2008. when I go into program files and look under visual studios 2008. All i see is a bunch of tools but no vs 2008 exe ...

Fix formatting of aspx file in Visual Studio?

I have a file with a lot of this kind of thing in it: <asp:TableCell ID="TableCell9" runat="server">Company Organization:</asp:TableCell><asp:TableCell ID="TableCell10" runat="server"> How can I get the formatter to change it to shows like this: <asp:TableCell ID="TableCell9" runat="server">Company Organization:</asp:TableCell> ...

Visual Studio Editor, MEF in-Depth

I have been having difficulty simply writing a Visual Studio Editor Extension with MEF (Managed Extensiblity Framework). I thank those who answered my previous question, as they helped me know that I need to work with MEF. I've been trying to learn MEF for the Visual Studio Editor from MSDN's page, Extending the Editor, but it appears t...

Customize MS dynamic CRM entity in visua studio 2008

Hi, I have installed the MS dynamic CRM on my windows server 2003. I want to add the javascript to the one of entity that has drop down control. let say Opportunity entity. But I don't know how to open the CRM in visual studio so that i can make changes. I have installed CRM explorer as well as Install the CRM Solution Framework(under f...

Error handling in VS/C# build events.

I have just written a small utility to be used in a pre-build event. The utilty works fine when run as standalone, but does nothing when used in the build event. Is there a standard way of noticing and dealing with error conditions in build events, or is that the domain of more advanced build control? ...

Help Me Writing a Simple Regular Expression

I have the following text: txtAddressSup.Text I want the Sup to be replaced by Cus while the whole text remains as is. I have many texts that are in this format: xxxxxxxSup.xxxxx ...

Changing compiler

Can I use compiler from VS 2010 while using VS2008? ...

C++ - Is it possible to implement memory leak testing in a unit test?

I'm trying to implement unit testing for my code and I'm having a hard time doing it. Ideally I would like to test some classes not only for good functionality but also for proper memory allocation/deallocation. I wonder if this check can be done using a unit testing framework. I am using Visual Assert btw. I would love to see some samp...

How do I stop the designer from filling in my properties with null values?

When I add a control to a form, visual studio assigns various of the properties of that form a value of null in the auto-generated designer code. I don't want the designer to make the redundant assignment (the value is already null). Can anyone tell me how to prevent it? example MyControl has property public SomeClass MyProperty {...

C# .net updates versus compile time debugging. How to stop the oddities?

Are we reduced to ClickOnce to manage our application state for our users? We use our own installer and Visual Patch currently. When our users update using our Visual Patch download (we can reproduce this) we get errors from the updated versions which never show up in our dev enviroment. Since our developer state is not 'updated' wi...