visual-studio-2008

EntityFramework Connection problem

Hello Everyone. I have a solution in Visual Studio 2008 with 3 projects. One Web Application and 2 class libraries. The entity framework model is in a class library and the start project is the web application. I used to have this problem: "The specified named connection is either not found in the configuration, not intended to be use...

Entity Framework filter on foreign key

Depot_ID is a foreign key in the database table Address. In my entity model i noticed that the foreign keys are not listed in the diagram var Address = db.ADDRESS.Where(a => a.Depot_ID == id.Value); This does not work as Depot_id is a foreign key in the Address table. What do I need to do to filter on this field? ...

AxImp Generated Reference

I've recently been working on a C#/VS2008 project which requires 3 ActiveX controls. I created a .NET wrapper using AxImp.exe for the controls, and added them as references to my project. The code had been working without any trouble for a few days. Yesterday, I pulled a clean version from our version control server (the wrapper DLLs w...

Getting error when I attempt to debug an ASP.NET 3.5 web site using Visual Studio 8.

Hi, I'm getting the following error when I attempt to debug a web site I've created with Visual Studio 8, and ASP.NET 3.5 Framework. Anyone know how I can fix this issue? Thanks, Greg ... Auto-attach to process '[8036] aspnet_wp.exe' on machine 'S418-B-XA2A' failed. Check for one of the following. The application you are ...

Visual Studio Breakpoint Macro to modify a value?

I'm debugging an application (C++), and I've found a point in the code where I want to change a value (via the debugger). So right now, I've got a breakpoint set, whereupon I do: Debugger reaches breakpoint I modify the variable I want to change I hit F5 to continue running lather, rinse, repeat It's hitting this breakpoint a lot, s...

opening a file format

Hi there, I've been looking on certain sites for some time now, but I cant seem to find anything usable about file formats. There is a certain file format on my computer, which I want to re-create to make add-ons for a program. Unfortunatly I would be the first to do so for that certain format, which makes it all the more hard. There a...

#include <map> statement consuming lot of time for building my project using VS 2008

One of my project is not building (after so many hours also) ... Its not proceeding further ... The psuedocode is like this: While building my project with Visual Studio 2008: #pragma message("This is going to Include map.h") #include <map> #pragma message("The Included operation of map.h over") For the above code snippet, the build ...

How to stop visual studio from opening my winforms controls in the designer.

Hi, When I want to edit/view the code for a winforms control/form i created, I need to right-click in the solution and select "view code". The default action for opening the file is "view designer". This appears to be the case for any C# file containing a class that inherits from a winforms control, even if this is indirectly. The d...

How can I call a C++ dll from VS2008

Well I have created a DLL using the Article from CP. For creating this DLL aslso, I have used VS2008. Now I am not sure how can I call this DLL from another C++ application created in VS2008. When I click on Refrences>Add New Reference this is asking for the project folder not for the DLL path. In the Code Project article , there are f...

Command Line C++ Program to Send an EMail

I'm using VS2008 & C++ and I'm trying to create a command line program that sends an email. I've looked on line and found some sample programs but none will compile for me. Does anyone have an example program for me? Thanks ...

D3DXCreateTextureFromFileInMemoryEx gets stuck

Hello, I Use D3DXCreateTextureFromFileInMemoryEx to load a texture. It's working fine for first 3 files but at the 4th file it remains stuck. I use "break all" and the call stack shows calls from D3DX9_42.dll and at the top is ntddl.dll. I can't see function names. I use Win7 64 bits machine with VS2008 SP1. I let the application run f...

Disposing of Crystal Reports

Hi all I have a number of report viewers set up, each of which can open a number of crystal reports. This all works fine. I am wanting to streamline how i dispose of the reports in the DisposeOfReports() event. At the minute i do the following: If (_rpt1 IsNot Nothing) Then _rpt1.Close() _rpt1.Dispose() End If If (_rpt2...

how to pass a string value into a gridview in C sharp

hey i have a query.... i have extracted data from database..currently that information is in a string variable...my point is to pass that string value into a gridview in the application..i have already created the gridview with checkbox list fitted into it...on inserting the values will the gridview will expand dynamically ??..if no the...

What kind of machine do we need for C# developer

Hello, I need to know what kind of machine is the best for a C# developer with Visual Studio 2008 software. We have a solution with 30 - 40 projects, and every time we build the solution it takes about 2 minutes. So if a developer builds this application 20 - 30 times a day, we have a lot of waiting time. Is it the hard drive we need t...

Where is a .net Application Icon Stored?

I'm trying to figure out where my application's icon is stored in VS 2008. On the startup project's application properties, I added an icon with the setting "Embed manifest with default settings." I'd like to programatically display the icon in the application, but I can't figure out where the icon is being stored. How can I get a refe...

Why does creating multiple Tool Windows breaks other tool windows dockable state

I have a simple Visual Studio AddIn that exposes documentation and snippets, each on a separate tool windows. Both use the same UserControl. At any time, the user can double-click on document items inside the tool window to open the document item inside another Tool Window, that shows up in Visual Studio's documents zone (right next to t...

ASP.net dateADD help

Hey all, i have the following code to populate a dropdown to coinside with a companies 2008-2010 calander year. This is the output: 2008 Period 1: 11/30/2008 - 12/27/2008 2008 Period 2: 12/28/2008 - 1/24/2009 2009 Period 3: 1/25/2009 - 2/21/2009 2009 Period 4: 2/22/2009 - 3/21/2009 2009 Period 5: 3/22/2009 - 4/18/2009 2009 Period ...

Is there a known bug in Visual Studio 2008 for using drop target in C++ when running Visual Studio as administrator?

We have an application that allows a user to drag a picture to a window and that window is a drop target (using OLE). When this code is run in the debugger and the Visual Studio instance is run as administrator (right click from desktop) then the target drop is not allowed. If the exe is run on its own it works fine. If the visual stu...

How to Categorize Visual Studio AddIn Commands

I would like my AddIn commands to appear their own category, in the tools menu's customize dialog. Right now, they appear under the Addins category. ...

why std::queue doesn't support clear() function ?

Hi, I have requirement like this. For a function, i get input as a stream of numbers. I mean, function keeps on getting called with single number in each call. I am using queue for storing stream of numbers. I need to process a collected set of numbers only when some condition is satisfied. If condition is not satisfied i need to throw...