When you type (not paste) a PRE tag, a line of text, ENTER, ENTER, a line of text, and a closing PRE tags with IE7 or FF3; and then look at it, the result should be IE7 does not show an empty line, and FF3 does. That is what I get, and I understood that is what Chris gets.
Is yours different, then please specify in detail.
Luc Pattyn Local announcement (Antwerp region): Lange Wapper? Neen!
0) So people will ask why I put them there.
1) Completeness, orthogonality
2) So I can use the same Dictionary for other purposes.
2.1) I don't know what I may need in the future.
2.2) A stitch in time saves nine.
3) Because that belt goes so well with the suspenders.
4) That's just the kind o' guy I am.
Actually because otherwise there's no need for a Dictionary. I considered using a HashSet, but that requires .net 3.5 and I have this particular project set to 2.0 and I don't feel like changing it to 3.5 just for this little bit of code that I may rework later anyway. Of course, I could also use my Set[^] class, but again I may decide on a completely different tack later.
Hmmm... maybe an enumeration and my EnumTransmogrifier... that's how I do some other input parsing...
Hi i'm using C# in visual estudio 2005, i need to open 16 bits png images, not raw images. i have a code in which one i can open a 8 bit image and i can get a pixel from that image. the code works, but what i need is to open a 16 bit images. i need your help. thankyou. some of the code i have is the next:
if (this.pictureBox.Image != null)
if ((pos<this.pictureBox.Image.Width) && (pos<this.pictureBox.Image.Height))
// para obtener color
Bitmap b = (Bitmap)this.pictureBox.Image;
int color = new int;
BitmapData bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, b.PixelFormat);
int stride = bmData.Stride;
System.IntPtr Scan0 = bmData.Scan0;
byte* p = (byte*)(void*)Scan0;
p += pos*stride + pos*6;
I've been having some problems with admin rights. Im developing an application to be installed by a network admin but what i need is for the program to maintain admin rights when anyone uses it. Is this possible?
Yes and no. You really don't want your application to run as an administrator unless the user is an administrator. That is one of the security features of Windows. However, you can impersonate a given user or you can design your application as a service and set the service to run under a specific user account.
Thank you for replying and i understand what your saying. Kinda...lol
To define my problem better though, my app is installed on the root drive which also means my settings are installed on root, if a user wants to change these settings they must have admin rights, how do i get round this
You don't. You application can request that it runs as the users admin account, if they have one (Vista and above), using a manifest. On XP and below, you simply have to trust that the user is an administrator and handle the case of not being able to write to the file if the user is not. Administrative permissions only go to user accounts, not applications. When a user launches an application, the application inherits the users security token, in effect, impersonating the user that launched the app. The application cannot get more permissions than the user has available to him/her.