|
The official way is to pay sdcard.org significant money every year and they'll give you the information once they have vetted you.
There may be an unofficial way in the form of leaked source code, but considering that such information is under strict NDA, don't expect it to be found easily, or to be reliable if you do find it.
You may be better off finding some other form of security if cost is an issue.
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Thanks for reply,
But, I only want to read the UID number no need to edit or delete it.So is there is no way to read UID of memory cards without registering on SDcard.com?
|
|
|
|
|
All such information is considered as the IP of sdcard.com, and is covered by NDA and corporate vetting before release. If you have a legitimate need to access the UID, then you will have to pay for the privelege, and you will have to agree to the terms of their NDA.
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Hello,
I am writing C# desktop appplication and I want to store some application specific data which should be accessible to all user with write permission. I am using Environment.SpecialFolder.CommonApplicationData for setting location to write file but I found that the file created in my login is not editable by other user.
Where should I create the file so that it shoul be accessible to all user with write permission?
Regards,
Gajesh
|
|
|
|
|
If you have created the file when you logged in, then the most likely reason it is not accessible to all users is that it is still in use. It will remain in use once you create it until it is disposed. You can try wrapping you access code in "using" blocks, but I suspect you are always going to get problems of file in use if you try to have multiple users capable of writing to it.
Have you considered using a database instead? You may get less problems.
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Thanks a lot for reply.
In our application, an XML File is generated when user wants to save some application data from given menu option. These data can be read back to display the information by any logged user. Now, other user should be able to modify the data and save it back. At a time only one user is editing so I think the problem is with the access right (Exception says the same thing: access denied).
Regards,
Gajesh
|
|
|
|
|
It doesn't have to be the access permissions - though it is worth checking that your users have the correct access rights to the folder. Have you tried setting it to a shared folder with universal read/write permissions?
The other possibility is that the file is still in use - you will get an access denied for this as well as for incorrect permissions. If you do not dispose of your File object, it may not be destroyed for some considerable time, and during this period it can be in use even if you have closed it. Ensure that all your file access code - including your users - is safely within "using" blocks and you should be ok. Even then, you will probably have to try...catch...wait...retry a few times for safety if you have multiple users writing to a file.
I would still be considering a database rather than an XML file!
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
Thanks.
I think it is problem of access permission only. Whenever you create any folder, other user has read only permissions for that folders. So if any other user(from same domain) tries to modify the folder or file within it, it says Access denied. I am trying to create a folder programatically with full control to all user....
How to do it?
Any kind of direction will be great help.
Also, Let me know if i am wrong or need to take some different approach.
|
|
|
|
|
I haven't tried it myself, but look at this.[^]
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
This is what i did and works for me.
bool isModified = false;
DirectoryInfo myDirectoryInfo = new DirectoryInfo("FolderPath");
DirectorySecurity myDirectorySecurity = myDirectoryInfo.GetAccessControl();
AccessRule rule = new FileSystemAccessRule("Users",
FileSystemRights.Write |
FileSystemRights.ReadAndExecute |
FileSystemRights.Modify,
InheritanceFlags.ContainerInherit |
InheritanceFlags.ObjectInherit,
PropagationFlags.InheritOnly,
AccessControlType.Allow);
myDirectorySecurity .ModifyAccessRule(AccessControlModification.Add, rule, out isModified);
myDirectoryInfo .SetAccessControl(myDirectorySecurity );
Thanks to all.
|
|
|
|
|
Hello i want to cut polygone in shape file.I have open a shape file in MapWinGis MapControl and want to splite any selected polygon from the point clicking by mouse.
Help me please......
|
|
|
|
|
Dear all,
i have a xml document:
<config>
<import>
</import>
</config>
now i have to add some nodes inside the import element. the end result most be like this:
<config>
<import>
<company>
<name>MS</name>
<address>address of the company</address>
</company>
</import>
</config>
Thanks in advance.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:56am.
|
|
|
|
|
Thanks stancrm,
bud this does not what im asking...the nodes 'name' and 'address' most be inside the company element.
|
|
|
|
|
how to add images in checkedlist box in C# as item./?
yogesh
|
|
|
|
|
You will have to change the control yourself, or either use a different control.
|
|
|
|
|
Hey guys,
I have 5 buttons in my form. During the page load event only 1 will be enabled, rest all i have made it Enabled = false. I have one more button named as "More", when a user clicks on it, the buttons which are disabled should be enabled one by one. Can someone please give me a solution for this.
Thanks,
Vikas
vikas da
|
|
|
|
|
Put this in your button handler:
button5.Enabled = button4.Enabled;
button4.Enabled = button3.Enabled;
button3.Enabled = button2.Enabled;
button2.Enabled = button1.Enabled;
Regards,
Rob Philpott.
|
|
|
|
|
Write a method like this:
private void ToggleButtonGroup(Button button)
{
button1.Enabled = (this.button1 == button);
button2.Enabled = (this.button2 == button);
button3.Enabled = (this.button3 == button);
button4.Enabled = (this.button4 == button);
}
Call this method from each appropriate button handler. If you passed this.button4 to the method, button4 would be enabled, and the rest would be disabled.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Monday, December 14, 2009 8:22 AM
|
|
|
|
|
Thanks guys for your help
vikas da
|
|
|
|
|
I would suggest putting the additional buttons in a Panel , then you can toggle just one Enabled property.
|
|
|
|
|
I have a form with few child controls that are overlapping each other. I need to have one of them to be always displayed above all others. In some special situations the z-order of the child controls is being changed. Is it possible to be notified about z-order change? As a result I will bring my special child control in front of all other child controls.
|
|
|
|
|
When the z-order of the control is changed, its index in the Controls array will also change. AFAIK there is no particular event to track this. Although if you cab track that the item indices in that array has changed, you can set your child control as top most.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
First i had this:
private void pbEdit_OnMouseEnter(object sender, EventArgs e)
{
pbTextEdit.Image = Image.FromFile("C:/data/edit_color.gif"); }
Now I wanna use 1 function for different pictureboxes:
My code i was thinking of but didn't work
this.Image = Image.FromFile("C:/data/edit_color.gif");
Dennis,
|
|
|
|
|
If I understood your question correct, you need to have a single method to change images of multiple picture boxes. And that method should be the MouseEnter event handler. Right?
You can have single event handler for all the picture boxes. This way:
picBox1.MouseEnter += new EventHandler(EventHandlerName);
picBox2.MouseEnter += new EventHandler(EventHandlerName);
Same way you can do this fro others as well.
Now, in order to change the image, use the following:
PictureBox picBox = sender as PictureBox;
picBox.Image = Image.FromFile("Set file path here");
In case all the picture boxes need to show the different images, you can keep the image file path in the Tag property of the PictureBox and then use it like this:
picBox.Image = Image.FromFile(picBox.Tag.ToString());
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|