visual-studio

"Access violation reading location" troubles retrieveing buffer from directx

The problem I am having is with the following ID3D10Texture2D *pBackBuffer; hr = mpSwapChain->GetBuffer(0, __uuidof(ID3D10Texture2D), (LPVOID*) &pBackBuffer); Below is my code... #include "DX3dApp.h" bool DX3dApp::Init(HINSTANCE hInstance, int width, int height) { mhInst = hInstance; mWidth = width; mHeight = height;...

How can i reload my layout and apply the changes in silverlight 4

i do a localized application using silverligth 4. after changing my culture thread i do LayoutRoot.Children.Clear(); MainPage MyPage = new MainPage(); LayoutRoot.Children.Add(MyPage); but i get an error "value does not fall within the expected range" how can i reload the layout to apply the language changing ...

do you have to get rid of the WinMain to turn a project into a lib

say I built an application called App1 with a lot of classes in a single project. And I decide that I want to build another project called App2 and I want to use those same classes so I decide to turn App1 into a lib file. Must I remove the WinMain function to do so or can I leave it and the compiler will ignore the winMain in the lib fi...

how to create a more accurate Break Point or Try/Catch

I have two FOR loops that the outer will repeat 64 times some where I know there is a index out of bound error How can I set a good break point or try/catch block,etc that exactly shows me the index and line of code that is causing the problem. ( C# WinApp) Thanks all. ...

turning a project into a static library

I checked out the microsoft documents. it shows how to create a static library upon creation of the project. but not necessarily on how to convert a previously made project, into a static library. So my question is, where do I go to turn my previously made project, into a static lib. so I can include it in my other projects ...

How to get the IBM DB2 provider to work with Entity Framework 4.0

Can someone please tell me how to get the DB2 provider to show up in the "Change Data Source" dialog window? Steps: Right-click on the edmx design surface. Select "Update Model from Database" On the Update Wizard, click "New Connection" Next to the "Data source" textbox, click "Change..." In the Change Data Source window, I am only ...

Cannot compile .NET CF project containing Design time attributes without Visual Studio?

I'm working on a .NET Compact Framework 3.5 app. I have an automated build machine that does not have Visual Studio installed, and all has been fine. I'm trying to a a new solution containing control projects that have DesignTimeAttributes.xmta files. MsBuild on the build machine is failing with cannot find file, C:\Program Files\Micr...

Background worker not working right

I have created a background worker to go and run a pretty long task that includes creating more threads which will read from a file of urls and crawl each. I tried following it through debugging and found that the background process ends prematurely for no apparent reason. Is there something wrong in the logic of my code that is causing ...

Creating a VS 2010 Project with only content files.

I have some content files that I would like to share between a number of projects in Visual Studio. I have put these files in their own project, set the build action to "Content", and the copy to output directory to "Copy if newer". I would like all these files to be copied to the bin/debug directory of the projects that reference them...

Include GAC Assemblies in Bin

Any ideas how to force a GAC DLL into referenced? Here is my issue, I constantly use a 3rd party DLL that registers itself into the GAC, and when I use it in my project, it reads it from the gac, and when I deploy, I'm always forgetting to add the DLLs since it is not located in the Bin/Referenced folder. Anyway to force Visual Studio ...

Visual Studio 2010 F# Library Debugging

VS Version 10.0.30128.1 RC1Rel I have a solution that contains an F# Library and an F# Console application, which references the library (through the referenced projects). I want to be able to step into the library from the console APP, but it is stepping over instead. Is this a known issue? Has anybody had success accomplishing de...

How to Profile the CPU Activity of a Visual Studio Program

Imagine i have a program doing a lot of things wasting about 90% of CPU. I need a way to know (through visual studio) where the program are wasting CPU. ...

Why does Schema Compare in Visual Studio 2010 show differences when there are none?

I had hoped that Visual Studio 2010 would have brought some improvements to the Schema Comparison function. I suspect there are some, but I can't get something basic working. I've sucked in a schema from a SQL Server 2005 database. Then to assure things were working, I did a schema compare choosing the database as the source and my sc...

Run SQL script inside Visual Studio

I have a scripted database SQL file that I need to execute inside Visual Studio to create a new database. I am so far unable to locate any function that allows me to do this. ...

Visual Studio - purpose of 'Refresh' button in solution explorer

Hi folks, what's the purpose of the 'Refresh' command on the solution explorer window? (When we select a project, the button is enabled) TIA ...

VS2010 and Windows XP SP3

At home I've been running VS 2010 on a Windows 7 x64 machine without any issues, however at work we recently switched over to VS 2010 running on WinXP SP3 x86 - and I gotta say, the experience is terrible. There are severe graphical glitches. For ex, Intellisense doesn't quite work. You can start typing and the intellisense dropdown ...

How to create a drop down menu in MFC for WINCE

I have the following code in a win32 app that shows a drop down menu on clicking a button. However, this does not work in WinCE as MENUINFO is not defined. Is there any way I can get around this? I need to view a drop down menu on clicking a button, and the name appearing on the button changes depending on the option on the menu. void C...

fftw in Visual Studio?

I'm trying to link my project with fftw and so far, I've gotten it to compile, but not link. As the site said, I generated all the .lib files (even though I'm only using double precision), and copied them to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib, the .h file to C:\Program Files\Microsoft Visual Studio 9.0\VC\include and the...

What IDE should I use to develop hta files that automate Word and Excel?

Which version of Visual Studio Express should I use to develop an HTA application that will script Word and Excel and connect to a web service? Should I download the web edition because hta files are like web pages, or should I download one of the others because hta files work on the local machine? Or is there another IDE I can use? ...

Have visual studio copy x64 DLL or x86 DLL when building a C# project

We're building a C# app that uses an external DLL for Sqlite.NET. This is a .NET dll but it embeds a C dll inside it and so it comes in x86 and x64 flavours. We add a reference to the x86 version in the project so when we build and run on x86 it's fine. Visual studio copies the dll to the bin folder and runs. On x64 it still copies t...