May 202005
 

Microsoft actually listens (so hopefully they will change the It Just Works slogan as well) to customers. There was a big rage when the new VS.NET 2005 and accompanying MSDN subscriptions where announced, since the pricing was outrageously different and higher. Things have changed. A little bit, but it changed. Read it in Rick‘s weblog.

 Posted by at 22:39
May 202005
 

Software patents are bad. Most developers know that, but money-smelling-egos seem to make more noise. So…how about patenting a “mapping architecture for arbitrary data models“, or loosely interpreted “OR mapping”, since that’s a big hype at the moment. I think this sucks. We need to stop this. No software-patents!

We should protect ideas, but not like this. Patents are there to make money (not in the least by the patent-registrators) and not to protect ideas.

 Posted by at 13:39
May 192005
 

Norway is a great country. Although I’ve only been to Oslo, I saw enough of the country and its history to start loving it. We had great weather (fortunately for the royal family on the 17th as well). I’ll post a link to some pictures in the next couple of days.

 Posted by at 14:58
May 122005
 

Blogging around I stumpled upon this game Bontãgo. If you have kids, or you like to play with kids, you know how they like to pile up colorful blocks. As high as possible. Well, that’s a bit what Bontãgo is about: conquer the arena by creating high (and wide) structures of blocks. It looks simple, but it’s not so simple to win. You can play single player, or multiplayer over a network. Have a try, and download it here. There is a 4.11Mbyte lite version (one background, no music) and a 23MByte full version (high resolution backgrounds, with music).

 Posted by at 15:19
May 112005
 

AD is a tricky beast. Not only do you need a server version of Windows, but experimenting with it no so simple too. Microsoft created ADAM for that: AD Application Mode, that basically means that you can start it just like any other program. And…you can run it with Windows XP Pro (SP1 +) too.

Microsoft has released a step-by-step guide how to implement it, and instructions how to bundle it with your application.
ADAM itself can be downloaded here.

Thanks for pointing, TSS.

 Posted by at 21:17
May 102005
 

When you define a form, it’s class is an inherited class (from the one Microsoft defined in their .NET framework). When reading/setting values from components from the form-class you defined, things work like you would expect. But…when you create another class and try to access the components, you will get the error described in the previous post. Why? It does not matter if you define the components on the form as public: you can not access members (variables, subclasses, etc) of inherited classes from another class. That’s by C# design. Oh well, I learned it the hard way.

Please comment if you know a way around it. For now I just pass the values I need to read, but how about writing?

 Posted by at 00:35
May 092005
 

Because of the filesize, I decided to split up my main .cs file into smaller pieces. The namespace is E2O everywhere, and one of the files I created should hold all database-related stuff. So, it looks like this:


namespace E2O
{
public class DB
{
public DB()
{
//constructor
}

public static void xyz()
{
if(E2O.frmMain.checkbox1.Checked)
{
blabla...
}
}
}
}

Now why can’t I refer to checkbox1? The compiler gives the error:
An object reference is required for the nonstatic field, method, or property ‘E2O.frmMain.checkBox1’
The object is defined as public (not the default private), but I can’t get to it. HOW? I know, I should probably go out and buy a C# book, but the only thing I want to accomplish is make the maintainability a little easier, the functions work perfectly when they are in one big file.

If anybody knows, please comment, your help will be greatly appreciated.

 Posted by at 00:56