Hi, I'm looking to create an executable file that I can load on my windows mobile Symbol device that'll delete everything that I don't need. The problem is that I'm not familiar at all with working with windows registry within code. This is my first time using c#, however I'm fluent in Java which I've heard is similar. Can someone give me a start on the code such as a method used to delete a registry key and a method used to delete a file.
umm after looking here I need some help as I've never written in c# before. Is there a way I can just hardcode what I need. I just want something simple for now that I can type in what I need and it will delete it. When I look at
RegistryKey rk = baseRegistryKey;
RegistryKey sk1 = rk.CreateSubKey(subKey);
// If the RegistrySubKey doesn't exists -> (true)
if (sk1 == null)
it seems that when I'm cteating the Registry key rk and deleting it, it's doing nothing more then deleting what I made, even though I didnt call new. Could someone help me out.
This whole project is for windows mobile as I said before... I've been thinking about whether it would be easier to use a registry file (.reg file) to delete the registry entries that I would need to delete, and then just delete the files with the delete method.
I'm using C#, .net2.0 framework and DB2 as my database.
I need to validate a database(DB2) query which is given by the user in the textbox. Please note that I just need to validate not to execute the query(text in textbox). I dont want any third party software and I want to do in .net2.0, ASP.net, C#, DB2
Does anyone know how I can encode a string to a CP865 encoded text, (not for example Unicode or UTF8).
What I am trying to do is to transfer a string content as an txt file with CP865 encodeing.
Response.ContentType = "text/plain";
Response.Write("This text shall have de Norwegian charset of the CP865 encoder");
I'm trying to create a class that will dynamically load an assembly that will
hold a several definitions for structs (used as an interface to an existing application).
My class will then display those structs as strings - display the interface.
I need to load it dynamically since there are several versions of the same interface.
How do i do that ?
I know how to display the struct layout.
I know how to load dynamically the assembly.
Let me try and explain my problem:
lets say that i have a class A which can display type S as a string.
S is defined in class B.
I have to reference B or else i get a compilation problem.
but, since B has two versions (1 and 2) i want to load it dynamically.
how do i do that ?
Last Visit: 31-Dec-99 18:00 Last Update: 13-Jun-21 14:48