grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries Tagged ‘Visual Studio’

VS2005 C++ Unit Tests - System.AccessViolationException: Attempted to read or write protected memory.

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..
If you have VS2005 C++ Unit Tests, written in managed C++ as they should be, and you are calling native code from them, and you see that error when running your unit tests - I have found it [...]

Comments (3) | 1,036 views

VS2005 LNK1104 Error - cannot open file

If you are referncing another lib in a project and you goto build and get
fatal error LNK1104: cannot open file ‘C:\MyProject\Debug.obj’
Do a double check in the project you are referencing configuration. If you have a space in the name (Say “Debug Test”) you might see this error and scratch your head. If the project you [...]

Leave a Comment | 670 views

VS2005 MFC Class Wizard Changes

If you ever used Visual Studio/C++ 6 (98), you would notice that the MFC Class Wizard allows you to set up messages as you create a class. Well, I’m not sure about VS2003, but VS2005, when you use the MFC Class Wizard, there are no options for setting up messages and events. Where did the [...]

Leave a Comment | 157 views

VS2005 - Browser Helper Object (BHO) Tutorial

I have been dabbling with BHO’s for some time, way back with VB6, then tried in .NET, and with C++ as well. There are so many cool things you can do with them. Anyways, most of the documentation out there is sparse and old. I told myself the next time I have to make one, [...]

Comments (12) | 2,396 views

Unit Testing Verisign Payflow Pro with VS2005

When you set up payflow pro on a system, you usually are going to use it through the web, you usually dump the certs folder into the inetsrv folder and it works fine. Thing is, when you are using VS2005 Unit Testing, you arent on the web, you can even try setting an HttpContext, but [...]

Comments (1) | 430 views

VS2005 Unit Testing HttpContext Cache

been searching for a while on how to test HttpContext and Cache in VS2005 Unit Tests, using the built in unit testing suite. Found this today..just add
TextWriter tw = new StringWriter();
HttpWorkerRequest wr = new SimpleWorkerRequest(”/webapp”, “c:\\inetpub\\wwwroot\\webapp\\”, “default.aspx”, “”, tw);
HttpContext.Current = new HttpContext(wr);
to you test method and the correct “using” statements, and boom - it works [...]

Comments (4) | 545 views

VS2005 ASP.NET 2.0 “Ambiguous Match Found”

Sounds like some dating gameshow, where you are of the winner..and the date you get is someone you just aren’t sure of. Anyways, if you see this error in VS2005 (asp.net), what I have seen it means is: you have some control variables decalred in your codebehind file, and they are also declared in the [...]

Comments (12) | 7,287 views

Visual Studio 2005 Web Application Projects

If you are using VS2005, and using the add on for Web Application Projects, you probably have hit Scott Guthrie’s tutorial One tip I can share: turn off optimizations in your VS2003 project before upgrading, or before you try debugging once you have upgraded, it will throw up an error. Other than that, most of [...]

Leave a Comment | 179 views

Visual Studio Loading Slow?

Dang, today at work loading up Visual Studio was taking like 5 minutes at 100% cpu. I rebooted, looked at task mgr, etc, nothing unusual. I turned off realtime virus scanning and boom! - it loads so fast its crazy. Just something that hasn’t been an issue, but creeped up and up on me, making [...]

Leave a Comment | 603 views

Visual Studio .NET 2005 Beta 2

I have been playing with VS.NET 2005 Beta 2 all night, the Personal Web Site Starter Kit. I have been modifying it and playing with all the new controls. Pretty sweet so far. Easy to consume RSS feeds, and get data from SQL. The master-detail page relationship is really cool, especially if you use templates [...]

Leave a Comment | 170 views