visual-studio

Are there any websites dedicated to the distribution of Visual Studio Macros?

Preferably a site that has macros searchable by Visual Studio version. ...

How do I create a native application using Visual C++ 2008?

I am getting started in C++. How can I setup Visual Studio 2008 to create native (not managed) code? ...

store dll in another folder not in same project other than bin.

ok... now this is something new for me.. I have a utility.dll file which is in my bin folder and i am accessing it in my current application. This part is working fine.... public partial class Reports1 : System.Web.UI.Page { [DllImport("Utility.dll")] public static extern bool GetErrorString(uint lookupCode, [MarshalAs(UnmanagedTyp...

Visual Studio Shell - Creating a Custom IDE.

I know this is a very broadly scoped question, but what do I need to know to begin creating a branded, custom IDE for course-ware using the VS Shell in isolated mode. Very little useful info on this beast is available through searches, so I'm hoping for some tips and references from gurus that have been through the apparently difficult ...

Testing Visual Studio 2008 Package

I'm developing a Visual Studio Integration Package. When I try to run the Unit Tests that are included in the unit test project that is included in the template I get the following failure on the first test: The test adapter 'VsIdeHostAdapter' threw an exception while running test 'MenuItemCallback'. Call was rejected by calle...

Find unused stored procedures in code?

Is there an easier way of cleaning up a database that has a ton of stored procedures that I'm sure there are some that aren't used anymore other than one by one search. I'd like to search my visual studio solution for stored procedures and see which ones from the database aren't used any longer. ...

Access control attribute in code

I gave a button an attribute called notetype. <asp:ImageButton ID="bttnSave" notetype="none" runat="server" ImageUrl="~/images/bttnSave.gif" onclick="bttnSave_Click" /> I have a function from a different button's click that sets that variable to some type. function addnotes(Type,IncId,Acc,Wit,Claim,Inj,Prop,Media) { var bttnopen...

Visual Studio design time event handling

I am trying to create a WPF wizard control in visual studio. I am successful except I would like to navigate the pages in design time by clicking the next and previous buttons. The pages are being written in xaml. I can navigate the pages by going to the properties window and changing the selected index, but I would like something more u...

Visual Studio 2008 on Windows x64 Installation error

I am trying to install Visual Studio 2008 on a Windows 7 x64 machine and I am unable to install it and don't want to give up Windows 7. Below is the error log. [11/05/09,15:21:08] Microsoft Visual Studio 2008 64bit Prerequisites (x64): [2] e:\setup..\wcu\64bitprereq\x64\vs_bsln.exe could not be unpackaged because it is not a cabinet. ...

Template not found for VS Shell Isolated IDE

When I try to create a Visual Studio Shell Isolated project, I get an error that says the specified template cannot be found. I have downloaded and installed the shell and VS SDK setups, and Google yields no results on my search. How could I start diagnosing the cause of this problem? ...

How do I use _W64 and __w64 in VC++?

There's such thing as __w64 in Visual C++ 9. I came across it while trying to port my native C++ DLL to 64 bit. In particular in crtdefs.h there's this nice snippet: #if !defined(_W64) #if !defined(__midl) && (defined(_X86_) || defined (_M_IX86)) && _MSC_VER >= 1300 #define _W64 __w64 #else #define _W64 #endif #endif which if I get it...

Editable FullPath property of a file in the Properties grid - Visual Studio 2008

I have a project in my VS 2008 solution containing file items. Each item have a standard read only property called "FullPath" in the Properties Grid. What is the easiest way to make the FullPath property of the Properties Grid editable? ...

How to export Visual Studio 2010 UML Modeling Diagrams

Hello! I recently created a very nice UML Class diagram inside Visual Studio 2010 (b2). The tools worked like a charm and I was able to model a rather complex domain within minutes. However, I cannot find any way to export my diagram as an image (PNG/JPEG/etc.). Does the modelling features in VS2010 support exporting diagrams as image...

Browser takes long time to render html controls asp.net

I have an aspx page showing lots of information in a tabular format on ajax tab container. Approximately 3 to 5 tabs are used. I have used some of AJAX controls such as CalendarExtendar, ValidationCallout etc on page. My problem is that the page is loaded fast but the browser takes long time for rendering the controls. On my local system...

How can I convince Visual Studio to not omit access modifiers when generating code?

Very often when Visual Studio generates code (for example generating an event handler stub) it omits access modifiers for members. I would like it to stop doing this. Is there a setting for this? ...

Automatic Deployment of Webservice

We've been using Visual Studio 2008 to deploy/publish our webservices for a while now and we'd like to automate the build (get code from sourcesafe, build, label the code, copy files to test pc,...). For our other projects we use Kinooks Visual Build but I can't get it to deploy as Visual Studio does. As the developers at Kinook advised...

Validating against generated xsd files in Visual Studio

I have around twenty XML files in various Visual Studio 2008 projects, each of which both defines certain objects and refers to objects in the file and other files. e.g. <some_object name="a" /> <some_object name="b"><refers_to ref="a" /></some_object> Files refer to other files using custom <include file="blah.xml" /> elements, rathe...

Error in Visual Studio

I get this error in visual studio and I don't know the reason. It doesn't even show the line number. Any clue? Error 1 error LNK2028: unresolved token (0A000041) "void __cdecl free_img(struct Image *)" (?free_img@@$$FYAXPAUImage@@@Z) referenced in function "double * __cdecl calc_zernike_moments(struct Image const *,int,stru...

Connect controls in Visual Studio 2010 UML Modeling Diagrams

I've tried to create UML diagram with MSVS 2010 b2 today and I've faced a problem. After I added controls from toolbox (such as Class, Interface) I could not connect these items! So connecting controls have been disabled on the toolbox when I tried to drag it on working area. How to connect UML controls? thx ...

Visual Studio setting for quoted text in script tags?

Not a direct programming question but related. I have been setting my fonts and colors in Visual Studio 2010. My quoted strings are showing as Maroon against a black background and I can't seem to find a setting to change the color. I tried to reset all my settings and the default with the white background still shows this color as ma...