Hi... This seems to be a little old post.. :) anyway thanks for your code.. i will try it out sometimes....
Have a Happy Coding.....
Hi... This seems to be a little old post.. :) anyway thanks for your code.. i will try it out sometimes....
Have a Happy Coding.....
i see... in that case you may need to create a new class with the function GetColName(); and use it as your return type for property. example:
Class yourClass
{
public string GetColName()
{
colNameAttribute mAttribInstance = (colNameAttribute)this.GetType().GetCustomAttributes(typeof(colNameAttribute),false).GetValue(0);
return mAttribInstance.Name;
}
}
and u can set the return type of the property salary as yourclass and you will be able to access the GetColName() method!!
Have a Happy Coding.....
This would be the best place to learn about basics of SMS. Developers home[^] you can create your own framework, after reading the basics... All the best...
Have a Happy Coding.....
what did you try? where did you stuck? please be specific with your questions, so that it will be easy to get answers... AFAIK, avg = sum / no_of_items;
was this your question???
Have a Happy Coding.....
As Graus said, i too dont find its a better solution for this problem! but still, you can get the custom attribute values by the following statement.
colNameAttribute mAttribInstance = (colNameAttribute)c.GetType()
.GetCustomAttributes(typeof(colNameAttribute),false).GetValue(0);
///remember the array index is 0. you can change it accordingly... ////
The object mAttribInstance will hold the various properties values within your "colName" attribute class. and you can access them by their respective name.. for e.g if "name" is the string used then, mAttribInstance.Name
will give you the value "theColumn"
Have a Happy Coding.....
:) :) :) :) :) :)
Have a Happy Coding.....
My reply was for the message posted by SeMartens. it clearly says "HH:mm:ss" ofcourse there are several ways that it can produce wrong results if you supply wrong formats like hh:mm:ss... HH:MM:ss ---------> which will give hours-months-seconds instead of minutes HH:mm:ss tt ------> which will give 24 hours-minutes-seconds Am/Pm hh:mm:SS ---------> will give hours-minutes-string "SS" and so on......
Have a Happy Coding.....
No way!!!! it is working and it should work!!! I am using the same format for several years now!!! no problem yet!!
Have a Happy Coding.....
you can do this only by using native dlls..... If you already installed the hooks successfully then the task is much simply accomplished by just getting the active application by getting the active window. Get the handle of the ActiveWindow. you can refer this page.link[^] Determine the application from the handle and map the current mouse and keyboard events to this application.
Have a Happy Coding.....
You can post your questions only one time!!! BTW, if you want to develop an embedded system, there are specific dedicated ide's available for the same! Qnx MOmentics, Carbide etc etc.... .Net codes are executed only through .net framework!@!! So creating a standalone exe is merely impossible with .net@!!! And you need not learn assebly language, whereas you can program with c or c++ libraries which will be converted automatically to corresponding assembly codes by the compilers!
Have a Happy Coding.....
The Concept is okay!!! Is your multimeter is providing you an RS-232 interface for tapping the output?? or you are doing it with any external ADC??? what data you have to communicate to the serial port? a better explanation about your project may be much helpful in helping you!!!!
Have a Happy Coding.....
That is quite difficult to do AFAIK! You can try implement this logic with the corresponding code! 1.Before File Transfer operation to your mobile device --------------> copy the present Created Time, LastWrite time and lastAccess time to a temporary variable! 2.Copy the File! 3.And reset the Created Time, LastWrite Time and LastAccess Time from your temporary variable! since these are properties, you can able to set them! i believe!!! So if your copy function performs all this three steps, then you will always get the creation date of file as same as your computer!!!! It may work!!!
Have a Happy Coding.....
Yes the output is correct!! because you have transferred the file only today!!! so that is the latest write time!!!
Have a Happy Coding.....
Hi Kwagga.... Thanks for your reply!! Its an article on creating SOAP headers for WSE3.0, whereas i need HTTP header for general web service call. Thank you again for your kind reply....
Have a Happy Coding.....
Hi all, Recently i got stuck up with a problem. Am developing a small console application which uses the web services offered by another server! Now i want to add a custom http header( not SOAP header) to each and every web service call made from the client! it may look like POST / HTTP/1.1.. User-Agent: Mozilla/4.0 (compatib le; MSIEMS Web Services Client Protocol 2.0.50727.3082)Content-Type: tex t/xml; charset=u tf-8 SOAPAction : "" Authorization: Basic UjhDT Ek6 MY header Host: 192.1 68.70.99:1984 Content-Length: 453 now how do i add, custom http headers to every calls.....
Have a Happy Coding.....
Hi Gayathri!! The answer for your question HOW SHALL I is not as simple as you think.... Am not discouraging you rather am jus trying to give you some insight regarding your requirement... As Rajesh clearly divided and explained your problem, you should proceed with a little research on the issues mentioned... To describe it in a better way... Requirement: Data from Mobile phone is to be viewed on the computer, Datas from computer to be transferred to the mobile phone(Either to internal FLash or External Flash) The "data transfer" calls for another lead called communication. So firstly learn, how the communication is carried between the mobile phone and computer... Secondly, have some knowledge on AT- Commands of mobile phones.... This is the best data on SMS details and AT commands... SMS details[^] Thirdly, try to learn the interfacing methodologies between mobile and computer... Once you have some idea in all this, you got a way to proceed.... Learning is fun, if you love learning.... All the best... Jai Ho!!!!
Have a Happy Coding.....
Hi CP gurus, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# client consuming the web service, all this was working fine until I added the authentication on the server, now I can not get the client to authenticate web service methods. Can someone tell me how to add authentication info to the SOAP message posted from the C# SOAP client. It may look something like this... <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://localhost:80/Service.wsdl" xmlns:ns2="http://tempuri.org/ns1.xsd">SOAP-ENV:Bodyns2:getBatteryLevel</ns2:getBatteryLevel></SOAP-ENV:Body></SOAP-ENV:Envelope>POST / HTTP/1.1 Host: localhost:8080 User-Agent: gSOAP/2.7 Content-Type: text/xml; charset=utf-8 Content-Length: 489 Connection: close Authorization: Basic dXNlcjpwYXNz SOAPAction: "" <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://localhost:8080/Service.wsdl" xmlns:ns2="http://tempuri.org/ns1.xsd">SOAP-ENV:Bodyns2:GetDBOldestPendingRow<iMaxRows>100</iMaxRows></ns2:GetDBOldestPendingRow></SOAP-ENV:Body></SOAP-ENV:Envelope> No how to add the blocked Authentication line in the SOAP message.....??? Searched Google... but no clue is left.... Thank in advance for your help.....
Have a Happy Coding.....
Yes!!! exactly! I have modified the code in the following way...
Byte[] encryptedData = myrsa.Encrypt(newdata, false);
FileStream fs = File.Open(FilePath,filemode,FileAccess.Write);
sw = new StreamWriter(fs, Encoding.ASCII );
sw.WriteLine(Convert.ToBase64String(encryptedData));
Thank you all for the help!!!
Have a Happy Coding.....
Hi Thank You so much for the valuable input... But even in a different encoding style(UTF-8, UTF-32 etc) the characters are not written to the file...... Any clues on that>???
Have a Happy Coding.....
Hi all, I am trying to convert a byte array in to a character array and trying to write the character array in a text file... The character set till 127 is propetly written.. whereas all the characters which is above 127 is modified as '?' i.e ascii number 63..... How can i write this to the text file... the code snippet..
Byte[] encryptedData = myrsa.Encrypt(newdata, false);
Char[] asciiarray = encoding.GetChars(encryptedData);
FileStream fs = File.Open(FilePath,filemode,FileAccess.Write);
sw = new StreamWriter(fs, Encoding.ASCII );
sw.WriteLine(new string (asciiarray));
sw.Close();
The above code writes only ascii characters whose values are less than 127 whereas all other characters are automatically changed to '?' Googled, but no fruits......
Have a Happy Coding.....