Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Bob Bedell
Forum: Access VBA September 4th, 2010, 04:03 AM
Replies: 3
Views: 4,010
Posted By Bob Bedell
Is this a trick question? OK. I'll bite... ...

Is this a trick question?

OK. I'll bite...

var3 = Meatballs
Forum: BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 August 7th, 2010, 05:18 AM
Replies: 3
Views: 2,077
Posted By Bob Bedell
Delete the first occurance of: ...

Delete the first occurance of:

Console.WriteLine(j);

Its an error.
Forum: .NET Framework 3.5 April 11th, 2010, 09:58 AM
Replies: 2
Views: 1,109
Posted By Bob Bedell
No. The Microsoft .NET Framework is not platform...

No. The Microsoft .NET Framework is not platform independent. It only runs on Microsoft Windows (and therfore x86 and x64 processors).

However, there are open source implementation's of...
Forum: C# 4.0 aka C# 2010 General Discussion April 1st, 2010, 10:09 PM
Replies: 2
Views: 1,861
Posted By Bob Bedell
Some Last-Minute New C# 4.0 Features

Just thought I'd fire up the C# 4.0 forum (fittingly) with a link to a hot-off-the-presses Eric Lippert blog post.

Apparently two cool, new operators have been squeezed into the language at the...
Forum: BOOK: Professional C# 2005 April 1st, 2010, 04:49 PM
Replies: 2
Views: 981
Posted By Bob Bedell
The 'employees' field isn't initialized because...

The 'employees' field isn't initialized because you aren't constructing an instance of the 'TestHarness' type.

1. Either make 'employees' a static field (the CLR will allocate memory for the...
Forum: C# 2008 aka C# 3.0 February 23rd, 2010, 05:18 PM
Replies: 14
Views: 1,972
Posted By Bob Bedell
public Form1() { InitializeComponent(); ...

public Form1()
{
InitializeComponent();
MyObject myObject = new MyObject();
this.MouseClick += new MouseEventHandler(myObject.Handle_MouseClick);
}



public class MyObject
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 30th, 2010, 11:55 AM
Replies: 4
Views: 857
Posted By Bob Bedell
Hi Piero, Yup, its tricky. Just stay on it....

Hi Piero,

Yup, its tricky. Just stay on it.

Here's a couple of links you might find helpful that cover how reference types and values types get stored in managed memory. The Jon Skeet piece...
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 30th, 2010, 10:24 AM
Replies: 4
Views: 857
Posted By Bob Bedell
There are no objects involved at all, only...

There are no objects involved at all, only values. Objects are instances of reference types. DateTime is a value type.

DateTime myTime = new DateTime();

loads the address of the local...
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 22nd, 2010, 01:53 AM
Replies: 12
Views: 2,253
Posted By Bob Bedell
Glad to hear you got it working.

Glad to hear you got it working.
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 21st, 2010, 05:51 PM
Replies: 12
Views: 2,253
Posted By Bob Bedell
http://blog.stormwild.net/2009/12/20/display-line-...

http://blog.stormwild.net/2009/12/20/display-line-numbers-in-visual-c-2008-express/

and dozens of other links.
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 21st, 2010, 04:56 PM
Replies: 12
Views: 2,253
Posted By Bob Bedell
Dr. Purdum is not correct...the Express version...

Dr. Purdum is not correct...the Express version does have line numbers.

But a picture is worth a thousand words:

http://img707.imageshack.us/i/cexpress.png/
Forum: C# 2005 January 18th, 2010, 07:50 PM
Replies: 4
Views: 2,613
Posted By Bob Bedell
Having said all that, I should probably mention...

Having said all that, I should probably mention that the 'foreach' statement doesn't require the types it operates on to be statically typed (i.e., implement interfaces). The 'foreach' statement also...
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 January 18th, 2010, 04:50 PM
Replies: 12
Views: 2,253
Posted By Bob Bedell
RTM of Visual Studio 2010 will be available March...

RTM of Visual Studio 2010 will be available March 22, if you can hold off for a month. A little late in the day to drop the bucks on 2008.

The menu selections I posted above are valid on Visual...
Forum: C# 2005 January 17th, 2010, 12:32 PM
Replies: 4
Views: 2,613
Posted By Bob Bedell
Here's a generic version of the method and a few...

Here's a generic version of the method and a few more types to enumerate:


using System;
using System.Collections.Generic;

namespace WhyUseInterfaces
{
class Program
{
Forum: C# 2005 January 16th, 2010, 10:49 PM
Replies: 4
Views: 2,613
Posted By Bob Bedell
The smashable houses and rocks, and dogs and cats...

The smashable houses and rocks, and dogs and cats are mammals examples are all valid, but never got me very far. So here is an example based on .Net Framework types that you will use every day of...
Forum: C# 2008 aka C# 3.0 January 2nd, 2010, 02:20 PM
Replies: 4
Views: 1,187
Posted By Bob Bedell
Pre-ordered it at Amazon about three weeks ago....

Pre-ordered it at Amazon about three weeks ago. The 3rd edition is released in February. I'm a big Richter fan, and I'll bet you're right. He probably does cover a lot of the of the functional...
Forum: C# 2008 aka C# 3.0 January 2nd, 2010, 01:42 PM
Replies: 4
Views: 1,187
Posted By Bob Bedell
Thanks Sam, I'll spend some time with it...

Thanks Sam,

I'll spend some time with it today.

Regarding my second point, I've found these two helpful:
...
Forum: C# 2008 aka C# 3.0 January 2nd, 2010, 01:16 PM
Replies: 4
Views: 1,187
Posted By Bob Bedell
Learning IL

Its time to bite the bullet. As MS throws more and more functional programming techniques at us, and we all start tossing lambdas around, and passing functions as arguments to functions, and the...
Forum: LINQ December 20th, 2009, 08:23 PM
Replies: 4
Views: 3,529
Posted By Bob Bedell
As of .NET 4.0 "the Entity Framework will be...

As of .NET 4.0 "the Entity Framework will be [MS's] recommended data access solution for LINQ to relational scenarios."

I think they intend to still support and do some type of further...
Forum: .NET Framework 3.5 December 15th, 2009, 07:16 PM
Replies: 5
Views: 2,370
Posted By Bob Bedell
Should mention they're all pretty complex apps....

Should mention they're all pretty complex apps. But probably the most valuable thing I took away from them was simply how to "steal" their resource dictionaries, and use/modify them to stlye my own...
Forum: .NET Framework 3.5 December 15th, 2009, 05:28 PM
Replies: 5
Views: 2,370
Posted By Bob Bedell
I learned WPF by tearing apart 3 applications....

I learned WPF by tearing apart 3 applications. Look at their UI's. You'll say "Wow! You can do THAT!!"

Sasha Barber
http://www.codeproject.com/KB/WPF/LtoE.aspx...
Forum: BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 December 7th, 2009, 05:28 PM
Replies: 3
Views: 1,290
Posted By Bob Bedell
C# uses brackets. // verbose int[] a =...

C# uses brackets.


// verbose
int[] a = newint[4];
for (int i = 0; i < a.Length; ++i)
{
a[i] = (i + 1) * 2;
}
Forum: BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 December 3rd, 2009, 10:44 PM
Replies: 5
Views: 819
Posted By Bob Bedell
The cast isn't necessary, and the compiler will...

The cast isn't necessary, and the compiler will ignore it. Random.Next() returns an Int32. No cast required.

Both of the blocks of code Will posted compile to 1 line of code:


int last = new...
Forum: C# 2008 aka C# 3.0 November 30th, 2009, 05:08 PM
Replies: 7
Views: 1,272
Posted By Bob Bedell
don't miss the classic "a Cat is an Animal and a...

don't miss the classic "a Cat is an Animal and a Dog is an Animal" example at:

http://en.wikipedia.org/wiki/Polymorphism_(object-oriented_programming)
Forum: C# 2005 November 23rd, 2009, 11:02 PM
Replies: 6
Views: 4,310
Posted By Bob Bedell
Actually, I believe all you need is: ...

Actually, I believe all you need is:


long totalMinutes = 0;
foreach (DataRow row in dtLessHrs.Rows)
{
string[] split = row[0].ToString().Split(':');
totalMinutes +=...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 10:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.