Archive

Archive for September, 2004

Developing Winforms with C#

September 30th, 2004 No comments

Well, for those who dont know, I passed this exam today. It was the one I was dreading as I dont normally do Win forms development and on discovering that they practically rewrote the way in which nearly all the controls work and expanded windows forms by a factor of huge, meaning I couldnt rely on my vb6 forms knowledge, I was concerned.

But two weekends and a week of solid revising meant I did alright. There are still some areas I am flaky on and considering the documentation I was reading wasnt exactly fantastic in those areas (they deserve complete books worth of topic eg security) its a bit of a miricle I did so well.

Well glad its done, just three more to do, but I think I might leave it a little while before the next one.

Categories: Uncategorized Tags:

.NET Security

September 25th, 2004 No comments

I had my first run in with .Net security today. I was experimenting with the declaritive security model in some code, so I wanted to see what happened when I denied printing rights to a user.

So using the .net wizards I loaded it up, copied full trust, added printing and denied it. then went to the “all code” bit for my user and set the security from full to copy of full. Had a warning but thought nothing of it.

Bet you cant guess what happened.

Yeh, I had to do a system restore, luckliy I had one.

Now call me stupid if you like but if a UI for security whose state is full permission has an empty box of permissions, that you can add things into, wouldnt you think that it implies that full permissions means having nothing in the box and you add things to deny, especially when the defualt for that thing you add is deny.

But Noooooo. Full permissions seems to be a special condition, if there is nowt in the list its full permissions, if you add something then it becomes the opposite, only those things listed are allowed. So I added deny printing, and what happened was now everything was denied with my special exclusion of printing.

Nothing would run, not caspol resets nothing. Thank that I had a restore point.

Its my own stupid fault for experimenting on my primary user account and not reading the manual I suppose, and not following the warnings.

So be careful when messing with these options.

(stupid interface, dumbass desigers, harumpf!).

Categories: Uncategorized Tags:

CLS Compliance

September 17th, 2004 No comments

Been poking about with FxCop now and came across the CLSComliant attribute. Onle hazarding a guess at what this does I started including it becuase of FxCop not understanding why I was doing it

So heres the article that explains why

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwritingcls-compliantcode.asp

I now know this will help me write better CLS compliant code as it informs the complier to check the code .

Heres another example here

http://www.c-sharpcenter.com/Tutorial/Compliance.htm

Categories: Uncategorized Tags:

Great tip – How to stop IE from opening up Office docs inline

September 9th, 2004 No comments
Categories: Uncategorized Tags:

Tip of the year

September 9th, 2004 No comments

Ok hold your breathe because this is the tip of the year if not the centuary

found here

http://blogs.msdn.com/jroller/archive/2004/09/08/226760.aspx

Get Acrobat Reader to open up faster – Go to your Acrobat\Reader folder and take everything from the “plug_ins” folder and move it into “Optional” except the following: Search.api, Search5.api, IA32.api, EWH32.api, EScript.api. Printing and search will still work, and it will load 75% faster. This is on Reader 6.0….

Categories: Uncategorized Tags:

Hey, thats some fancy looking c code you got there (x+=x++;)

September 1st, 2004 No comments

This is a great article about

x+=x++;

http://blogs.msdn.com/lucabol/archive/2004/08/31/223580.aspx

Categories: Uncategorized Tags: