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 ?