by Bill Sempf
31. March 2006 11:08
Just had another article posted to MSDN, on Productivity with Visual Basic 2005.
I have constant wars with other .NET programmers about C# versus VB. Not surewhat to make of it - really it is just a personal choice. There is no difference in the final product. I'll just say this. I have 4 active projects in C# and 7 in VB. When I work in VB, I never get compiler errors. When I work in C#, I usually have to compile 5-10 times before I get around to finding the runtime problems. Sloppy coding? Maybe. But for me doesn't it make more sense to keep using the compiler that gives me fewer problems?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/VB05Prod.asp
0307fd52-dc57-4888-8442-64ebad1632ff|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
Biz | VB
by Bill Sempf
15. September 2005 12:07
Now you have to know that I am just not a fan of the Heisman race. First, football is a team game, and picking "the best player in college football" is much more a reflection of the team than the player. Every year, there is the best player, and then the one who wins. Why? Because you have to have a good team around you to win games, and if you don't win games you aren't on the ballot.
Second, I am really tired of people talking the award in the preseason. It's like preseason polls - how the heck do you expect to know who will win before anyone plays games? Like they say, the games aren't played on paper, they are played on grass.
Nonetheless, I can't believe that they sold the Heisman to Nissan. When the Rose Bowl went, I thought "Well, there goes the farm. Now everything is for sale." I never ever ever thought that the Heisman was up to the highest bidder. It's college football. These guys are amateurs. They are playing for fun. Some of them get hurt and mess up their lives - all for fun. Why, I ask, does everyone have to make money on them, except them? Does that seem fair?
Anyway, rant over. I am a fan of the free enterprise system. But. Come on.
2ebaff5e-9df5-4dd9-bc40-96635f3c249a|1|1.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
Personal | Rants
by Bill Sempf
31. August 2005 12:07
Interesting little bug that I ran into today. If you reference a Windows Forms project from another Windows Forms project using the Project Reference dialog, you will get this weird error:
Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'
There is actually a KB on it, but it doesn't show up in Google, or of course in MSDN search:
http://support.microsoft.com/?kbid=907757
Learn something new every day. Service Pack 1, anyone?
b425bde0-3544-4a25-b9ba-100e038f5953|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
Biz | VB | C#
by Bill Sempf
1. August 2005 12:06
Need a file from a secure network share? Trying to actually understand the NetworkCredentials classes? Good freakin luck!
I went through the snippets, searched google, and read the MSDN library cover to virtual cover before I just dialed in.
My.
Computer.
Network.
DownloadFile? Does it have an overload with username and password?
Well I'll be a son of a ...
Final code:
My.Computer.Network.DownloadFile("\\192.168.1.3\share\point\test.xls", "c:\text.xls", "user", "password")
Works like a charm.
ecf895bd-e898-4005-9e36-a60248b72577|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
VB