It appears that you're too stupid for this task. If this is paid work, you are a thief. If it's homework, talk to your teacher. If it's your own project, buy a damn book and read it, and start with reasonable tasks.
It reminds me that, longtime ago I took TCP/IP (Networking) programming class.
The instructor gave us a FULLY working code, and explicitly told what line of code to change and how to change it. The only hard part was, he gave a printed out paper and asked us to type it. His thought was as the students type it, they will understand the code.
The next week, about 50% of the class could not do it . literally his jaw fell to the floor. I don't understand why even they go to school.
In my year 11, our maths teacher gave us the exam and said, this is it. I will just change the numbers on the day. We were able to spend a month in class doing this exam, asking him questions. The exam was out of 120, and if you got 100-120 out of 120, you got 100%. You had a 20 point leeway. A lot of kids still failed. So, people have been dumb for a long time.
Here in Massachusetts, In the late 90's students were required to pass Comprehensive Standard Test in order to graduate high school.
The first year they had a pilot test, many students failed the exam. There were (and still are) many schools with large number of students who fail the test. A local newspaper published school by school test results and someone brought the paper to work. We were going through the list, which was very grim.
One of the senior engineers ( he was a bit old too ) laughed hysterically and then said, "I am so happy, this test result tells me my job is secured for life. I don't feel threatened by this kids coming off school and taking my position."
Look, before you start implementing something, give it sometime and RTFD. It is well documented. Before you start working on your C# application, interact with ImageMagick from the command line. Once you figured out everything you need then start coding.
If you have specific question, I am sure will find it in the documentation.
I have a datagrid and I want to populate it from the tables in MS Access. Also I want to get the combination of different columns from the 3 Tables and populate them by providing my own column names in DATA GRID.
Connect to the database and get data into a dataset. All you need is a query to get the data from all the tables into one. (I am suspecting Union or join like scenario here.)You do have options of having your own column names. A bit of search in the documentation will help you.
Time is the best teacher; unfortunately it kills all of its students.
I am developing an application on Win mobile 5.0 emulator in C# using Visual studio 2008.
Can anyone let me know how to write an SQL statement in C# which returns the row count?
Is the parameter required to store the count value?
I will be greatefull if someone helps with the code snippet for the same.
I have tried the following code for the select statement(the select stmt does not return the row count value) and is working fine.
SqlCeDataAdapter adap = new SqlCeDataAdapter();
String connstring = @"Data Source=Program Files\signup\signupdb.sdf";
conn = new SqlCeConnection(connstring);
comm = new SqlCeCommand();
comm.Connection = conn;
comm.CommandText = "select * from signuptbl where username =@uname";
SqlCeParameter para = new SqlCeParameter();
para.ParameterName = "@uname";
para.Value = uname_in;
adap.SelectCommand = comm;
System.Data.DataTable dt = new DataTable();
psw1 = dt.Rows.ToString();
What changes should be done in the above code for writing a select stmt the return the number of rows selected?
I am developing an application that reads a DES encrypted password generated using Java in a properties file and decrypts it, using DESCryptoServiceProvider. I am provided with the key string originally generated with Java using DES.
Does anyone have an example or sample code that converts/uses a Java generated key to decrypt a Java generated password in C#? After removing the dashes, I get the "Specified key is not a valid size for this algorithm" exception.
I've tried both of these lines of code and get the same error: