grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries Tagged ‘Development’

C# .NET Test Driven Development with Visual Studio 2005

As of late I have been stuck in C++ world. MFC/Win32, pointers and HRESULT’s. Ugh. Earlier this week I got a chance to get back to C# and .NET (aka My Roots).
I needed to create a class library for a project, basically from scratch, since there was no existing library created. I started to go [...]

Leave a Comment | 279 views

VS2005: Missing Project Template - Where did my Console App Template Go?

So I fired up VS2005, and wanted to make a quick prototype C# Console Application, except I couldn’t find the Project Template!!
Found out that if you close Visual Studio,  run the VS CMD prompt, and run this: “devenv /installvstemplates”
It should add the templates back.
Good to go!
Technorati tags: VS2005, Visual Studio 2005, Project Templates

Leave a Comment | 239 views

No, I did not sign the VB6 petition

VB6, ahh how we love it. Wait, no we don’t. No, no, no. Hate VB6. VB.net - sorry you got a bad rap because you were named after your great grandpa VB6.
VB6 sucks!
I had to code for a while in VB6, and yeah you can get things done, but it just seems archaic, [...]

Comments (2) | 266 views

Can you be too Web 2.0?

Can a site be “too much” Web 2.0? I think so, yes.
I am heading out for the airport here shortly, Seattle, WA, then Portland, OR. I want to create an online trip to upload photos, track things, and there are a few Web 2.0 sites out there, TripWiser, TripTie, TripHub, TripMates, Matador. Of all [...]

Comments (4) | 143 views

GPS Update

Well, If you look at the right side of my blog, I have an update. I have been working all day on getting the GPS stuff to work. I made an app to sync with my Bluetooth GPS, and upload the coordinates in decimal to my website. Then I read it and create a Google [...]

Leave a Comment | 182 views

T-Mobile Dash + GPS + Mologogo = Debacle

I have my cool new T-Mobile dash, and my Pharos Bluetooth GPS, but I just want more.
Currently I can see where I am on the phone using Windows Live Search Maps,  but I just want more.
I want to be able to post up my coordinates every minute or so, save them or map them [...]

Comments (2) | 346 views

Visual Studio 2005 - C++ Unit Testing - Not so good

So, as of late, I have been programming more in C++ than in C#/.NET. The first order of business was getting everything to Visual Studio 2005, which has been accomplished. In .NET, there is built in Unit Testing, Code Coverage, Refactoring, etc. In Visual Studio C++ unmanaged/native C++, you don’t get any of that. (Thanks [...]

Leave a Comment | 464 views

C++ OutputDebugString()

I have programmed in many different languages, and as much as I can remember, one of the best things you can do is write debug ouput to an output window
VB 6.0 - Debug.Print “Debug Output”
.NET - System.Diagnostics.Debug.WriteLine(”Debug Output”);
and recently I have been doing some VC++ programming, and I didn’t know how to output to the [...]

Comments (2) | 283 views

First-chance exception at 0×7c812a5b in : Microsoft C++ exception: CError at memory location

If you are programming and you have some calls to ShellExceute in your code, and you are debugging, you might see this fly across the output window
First-chance exception at 0×7c812a5b in : Microsoft C++ exception: CError at memory location
The app will be your exe name, and location will be a memory location.
You can reproduce [...]

Comments (3) | 693 views

ASP.NET C# - Grabbing a posted file and save to disk

Sometimes you want to grab a file posted to a page, maybe an image upload or other file upload
HttpFileCollection logFiles = Request.Files;
string path = System.Configuration.ConfigurationManager.AppSettings["LogPath"];
if (logFiles.Count > 0)
{
HttpPostedFile logFile = logFiles.Get(0);
logFile.SaveAs(path + System.Guid.NewGuid().ToString() + “.log”);
}
As you can see, I am setting the log path from the config. The reason for this is, the path to [...]

Comments (2) | 208 views