|
The System.Security.Cryptography namespace should be a good starting point. There, you'll find implementations of common symmetric encryption algorithms as well as the RSA asymmetric algorithm.
|
|
|
|
|
i want to convert interger value to character
that interger value contain ascii value.
e.g 65 to A
Hallo
|
|
|
|
|
Char c= Convert.ToChar(65) ;
Char c=(char)65;
both are same
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
I generally works but bear in mind that the char type in .net is not the char type in c.
it has many differences.
|
|
|
|
|
I Need the ConvertAll functionality of list but I need to bind the list to a control and so need it to be a BindingList<>.
How can I add the ConvertAll functionality to a BindingList or is there another type of list I can use?
TIA
|
|
|
|
|
Hi
I am programmatically creating SSIS package. I know to create db to db and db to flat file. I dont know how to create SSIS pacakge programmatically from Flat file to Destination DB. Could any one help me to solve my problem please.
kesavan
kesavan
|
|
|
|
|
I have written a Windows Service that runs without any problems on my test pc and on my development pc, but when I install on the pc's that it is developed for a thread in the service is never started. This thread is very simpel and runs perfectly on test and development pc's. Furthermore the service keeps running and all other threads and parts of the code keep working except for this one thread.
The code has been tested with Unit Tests, I have even tryed to run and debug the service as a program. When run as a program on all pc's (that includes the pc that it is developed for), there are no problems. And there are no exceptions that aren't handled.
My own conclusion was that there might be something wrong with Windows, except that it is the same version of Windows that my test and development pc's are running, and I have tryed to reinstall with no succes.
Is there anyone who can tell me what could be wrong?
KISS
|
|
|
|
|
Hello gurus,
I'd like to know how to convert an array of shorts (or what ever) to an array of bytes to send on a socket?
And vice versa...
Can anybody show me a code snipet please?
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Take a look at the MSDN topic of the Array.ConvertAll method.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Sounds like Buffer.BlockCopy() is what you need. Each short value will be split in half to become 2 byte values in the byte array.
byte[] buffer=new byte[values.Length*2];
Buffer.BlockCopy(values,0,buffer,0,buffer.Length);
|
|
|
|
|
Hi, all!
I have a following problem, and i can't find a right solution.
Description:
There is a COM server written on C++ and it works through IDispatch and it does't have a TYPELIB. And from another side there is a COM client developed on C#. Through LATE BINDING it uses a COM server
and COM server sends different events to client, but i can't implement COM event handling mechanism.
Please, anybody can help me?!
Thanks in advance!
|
|
|
|
|
I'm trying to setup an NUnit test harness for a new application.
The application only has 1 public class with 2 public methods but internally it has a huge number of classes, ultimately connecting to a database.
I would like to test as many of the classes as possible using Nunit. What's the best way to go about it?
I'm thinking of creating a test harness project and adding all the internal classes as a link. Is this the right way to go about things?
Russell
|
|
|
|
|
If you're using .NET 2.0, you could use the InternalsVisibleTo[^] attribute to expose non-public classes in your assembly to a specific assembly.
|
|
|
|
|
Hi there,
I am designing a shopping, i have written class libraries for it, here all class libraries:
BLL-Business logic layer using reference of DAL,DALFactory,Model
DAL-Using DataAccess Application Blocks jan 2006(using IDAL,Model)
IDAL-Implements Interfacesof DAL(using Model)
Model-Business Objects (using IDAL)
DalFactory-Loads an assembly (Loades an assembly and assign instance tointerface) using IDAL
"Now when i compile the application i am getting this error:
Error 1 Assembly generation failed -- Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong name cartDAL"
I have added .snk file in each library to give strong assembly name.
Few Things to ask:
I want to make shopping cart like Micorsoft Pet Shop 4.0, i have studied it and decided to go for class libraries, now i m stuck.
should i use Global Assembly Cache in the this shopping, but it will only use SQL Server 2000.?
*As i understand that microsoft pet shop has used GAC as they are supporting multiple databases, like oracle sql server200,2005.
If i use Data Access application blocks 2006, and GAC in ASP.Net web site, then can it be deployed to a domian provider like plesk?
When i should use GAC?
I mean if the scope of application is limited to only one database, then should i use gac?
Y micorsoft has used sqlhelper class in pet shop 4.0 instead of daab jan 2006?
Sorry if i have asked stuipd question .
I will be thank ful to you all guys for helping me.
Many Thanks,
adnan
|
|
|
|
|
Hi all,
C# as my language of choice.
I have a web page that accepts input into a text box and in the button click the value should be converted to double for computation to take place. I mean:
a = Convert.Todouble(textbox1.text);
I keep getting this error: "You can't implicitly conver string to double"
please show me the way out!
thanks in advance
|
|
|
|
|
|
|
Hmm. the above should work because the ToDouble has an overload that takes a String object. Are you sure the error occurs at this line?
Alternatively you could try using double.TryParse . Personally, I prefer TryParse over ToDouble anyway.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
this value "a" is a string type?
|
|
|
|
|
this value "a" is string type?
|
|
|
|
|
Also, pay attentionto the number format used by the local machine. You may get errors if the decimal separator used by the local machine is "," and the user inputs "." as a separator or viceversa. You can see it under Local Settings in Control Panel.
|
|
|
|
|
for that you could use the overload to try parse that takes an IFormatter input aswell.
RUssell
|
|
|
|
|
hy
I have a form with many buttons
I try to serialize this buttons, and I make a List to serialize, but it doesn't work
Have anyone any other solution for that
10x
|
|
|
|
|
It may be worth posting up the class you are trying to serialize so we can see what is going wrong.
I take it you have the list as a public property and are using the [Serializable] tag (just before the class declaration)
|
|
|
|
|
Hi all,
how can i get the last day of a given month.
thanks.
|
|
|
|