grab our rss feed

stevienova.com

Homepage of Steve Novoselac

Entries for February, 2007

Legend of Zelda Ocarina of Time

Now that I have a Wii, I’ve been downloading old Nintendo games. The Legend of Zelda Ocarina of Time, what a great game. Spiller and I played this all through sophomore year of college, between classes and parties. We could never find the triforce though!!
Update: fixed spelling and added link to Spiller’s MySpace

Leave a Comment | 82 views

fatal error CVT1100: duplicate resource.

More C++ gotchas. You get this error, what do you do?
Check your resource file, there is a resource with an ID of 1. Change it to something (5000) or whatever, and rebuild. You should be good to go.

Leave a Comment | 330 views

error C2440: ’static_cast’ : cannot convert from ‘UINT (__thiscall CStaticLink::* )(CPoint)’ to ‘LRESULT (__thiscall CWnd::* )(CPoint)’

If you are updating from VS2003 to VS2005, C++, you might run across an error like this. What it means is that they changes the return types from 2003 to 2005. You just need to change the UINT to an LRESULT and you should be good to go.

Leave a Comment | 337 views

FizzBuzz Test

This is all over the blogs today:
CodingHorror.com. Jeff Atwood writes a great post entitled Why Can’t Programmers.. Program?
Just for kix, I did it, just so I knew I wasn’t crazy :)
for(int i = 1; i < 101; i++)
{
if(i % 3 == 0 && i % 5 == 0)
{
Console.WriteLine(”FizzBuzz”);
}
else if(i % 3 == [...]

Leave a Comment | 98 views

ForFiles - Delete files older than X amount of Days

Windows 2003 - ForFiles
FORFILES /P C:\MyPath\ /S /M log*.xml /D -30 /C “cmd /c del @file”
/S - look at subdirectories
log*.xml - that is the file pattern, you could have it be like *.txt for example
/D -30 = files greater than 30 days
/C - thats the command you want to run
this is pretty much a one [...]

Comments (3) | 570 views

Careful! rand_s and OS compatability

if you want to use the secure version rand_s() - be careful, it only works on XP and higher!!

http://msdn2.microsoft.com/en-us/library/sxtz2fa8(VS.80).aspx
Guess you don’t get to be secure on Windows 2000 or lower. :P

Leave a Comment | 177 views

WPF Programming - Xceed Datagrid Control

So, now that I have the extensions and have started digging into WPF, I notice one thing blatantly missing. Datagrids! So I did a quick search and found that Xceed has a free (as in beer) datagrid control for WPF, you can get here. I have downloaded it and can’t wait to start using [...]

Comments (1) | 108 views

.NET 3.0 WPF/WCF Templates for VS2005

Microsoft recently released the .NET Framework 3.0 (WinFX) that includes Windows Presenation Foundation, Windows Communication Foundation, Windows Workflow Foundation, and Windows CardSpace. If you are trying to develop using the WPF or WCF using VS2005, you might be wondering if there are VS2005 Templates avail for these project types. You would think that by installing [...]

Comments (1) | 369 views

warning CS0618: ‘System.Web.Mail.SmtpMail’ is obsolete:

Previously in .net 1.0 and 1.1, to send mail from a console application, you could use
using System.Web.Mail
and use a method similar to this:
static void SendMail()
{
MailMessage msg = new MailMessage();
msg.To = “toaddress1@whatever.com,toaddress2@blah.com”;
msg.From = “fromaddress@whatever.com”;
msg.Subject = “My Subject”;
msg.Body = “My Body”;
msg.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = “yourmailserveraddressorip”;
SmtpMail.Send(msg);
}
If you then upgrade to .net 2.0, you will get this when building:
warning [...]

Comments (1) | 110 views

Exchange ActiveSync Error 0×80072F0FD - Windows Mobile

Recently, at work, we redid our Exchange 2003 server. After the change, ActiveSync on my Windows Mobile Pocket PC 6700 Sprint Phone stopped working. Previously, we used a homegrown certificate, so I had to copy it to my device and install it. But during this change, we switched to a third party cert. This is [...]

Leave a Comment | 97 views