|
Oh yes, i didn't thought abt it.
You are rite CG, thanks for telling me.
|
|
|
|
|
nagendrathecoder wrote:
I have doubts on following line:
datastring = book.ToCharArray();
R u sure, this line work?
ANS: Actually "datastring = book.ToCharArray();" this line of code works.....the thing is that i have to randomly select a name from the database and display it on a txtbox....that is wt i was doin....but that code snippet of mine was of no use....the snippet which u hav given me does not take d name randomly.....suggest me how to take names randomly from d database???
Ξ:::...£!ΠŤØ...:::Ξ®
|
|
|
|
|
linto_11 wrote: ANS: Actually "datastring = book.ToCharArray();" this line of code works.....the thing is that i have to randomly select a name from the database and display it on a txtbox....that is wt i was doin....but that code snippet of mine was of no use....the snippet which u hav given me does not take d name randomly.....suggest me how to take names randomly from d database???
Stop using text speak, don't be a retard. You have 101 keys, use them.
I told you already why your code is utterly useless, and shows you have no idea what you're doing. I told you two ways you could make it work the way you want.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi
Does anyone have a good example I could follow for implementing Named Pipes using WCF? I want to implement one that is bi-directional in a manner that is similar to a web service.
|
|
|
|
|
check around the NetNamedPipeBinding .
Otherwise it's exactly the same as using any other transportation layer in WCF.
|
|
|
|
|
can anyone help me, i have developed a server and client, when i logged in client i want the server to show me machine name of client in list box saying the client has log in
i try many times but still getting error
i am using remoting with tcp channel .
thanks in advance
|
|
|
|
|
show the code where you getting error
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
thanks i got i
|
|
|
|
|
Hi amankhan,
I think there are ways to find the ip address of the client programatically.
If you can use that,We can display the IP address of the client on the client system when you Login.
Thanks,
M.Srikrishna Murthy.
Feel free to contact
|
|
|
|
|
thanks Sir, well i need lots of help i am new in this field. if possible give me ur email id..... i will be very thankfull........ pls help me it will make my career i am fresher with no job
|
|
|
|
|
Hello, I have an app doing tasks while it is minimized to the tray. But it keeps stealing focus from other things even while it is not visible. How can i make it so that it wont steal focus from other programs? Thanks!
|
|
|
|
|
An event fires when an app gets focus. One of the arguments passed is the app that had focus. Catch that event and give the focus back.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
Is there a way to get the values in a a byte array which are in ASCII format and convert them into float? Let me explain:
My byte array when a number(integer) 79 is put in it, looks like this:
bData[0] = 55;
bData[1] = 57;
bData[2] = 0;
bData[4] = 0;
I want to take this data (from bData[]) and put it in a float variable as:
float fData = 79.0;
Is there a way to do this?
Thanks
|
|
|
|
|
how about
float fData = Convert.ToSingle(bData[0]);
I hope this helps you.
|
|
|
|
|
This did not work with me. It gave weird values like, 4.23233-e
|
|
|
|
|
what is the byte value that you are converting?
If the value is within 0 - 255, I think it will be parsed clearly.
Can you tell me what is in bData[3]. check it. If its default(byte) / 0 it will parse clearly using Convert.ToSingle as I checked.
Debug your application and see for what value of byte you are getting this.(just curious)
|
|
|
|
|
The bytes contain ASCII characters (55 = '7'), not bit patterns that are part of a float.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
oh... Thanks Luc.
|
|
|
|
|
What's in bData[3] ?
Anyway, make it a string and parse it.
|
|
|
|
|
As I said in my question, it has integer value in ASCII format.
Can you show an example? Cause I think I already tried, encoding.ascii.getstring() but that did not work.
|
|
|
|
|
akhanal wrote: encoding.ascii.getstring() but that did not work.
really?
byte[] bData=new byte[5];
bData[0] = 55;
bData[1] = 57;
bData[2] = 0;
bData[3] = 0;
bData[4] = 0;
string s=Encoding.ASCII.GetString(bData);
float f=float.Parse(s);
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi,
My mess, sorry!
I was doing:
float f = System.Convert.ToSingle(s);
instead of:
float f=float.Parse(s);
Anyways, that worked.
Thanks.
|
|
|
|
|
|
Hi All
I've been doing interviews for a large multi national company for a number of C# contractors to work on a greenfield winforms application. In the last month I've interviewed 28 candidates and only 6 have passed our first technical test which is a 1/2 hour telephone screening. What I'm wondering is if our basic questions are viewed by the community as not fair game. Our basic premise is that if you can't answer four out of five of these basic questions (first ten minutes of interview) there is little point in pursuing things further.
1) What is the base object in C#.NET, its public instance methods and when would you use them? - I'm astonished how few people get this. I generally forgive forgetting GetHashCode but Equals?! - only maybe 25% of people get 3 out of the 4 methods (or 5 if you count Finalize which in general we don't).
2) What is a delegate? What is the difference between delegate.Invoke and delegate.BeginInvoke? - Really asking do you know the difference between synchronous and asynchronous programming. - maybe 20% get this.
3) Give a two minute overview of how the garbage collector works? (Looking for what makes an object eligible for collection, when it runs, concept of generations, implications of having a finalizer etc) - very poor understanding out there - I've had 1 good explanation so far.
4) Explain the OO concept of polymorphism and how you can take advantage of it in C#? Why do you think Microsoft didn't make all methods virtual by default? - I.e. whats a virtual function and to understand the performance implications of them. - most get the first, nobody so far the second.
5) Is ArrayList/List<t> a thread safe collection? If not how would you make it thread safe? - most get its not, only some really have any idea how to make it thread safe.
I just don't think these are hard questions, especially given the daily rates we are offering, but maybe I'm being too hard? What do you think?
Whats really strange is we're doing a lot of Java interviews for the server side of things as well and we've seen plenty of great candidates. Maybe there are just lots and lots of very poor C# candidates out there and I'm getting my fair share of them!
Cheers!
modified on Friday, October 2, 2009 6:08 PM
|
|
|
|
|
ewan wrote: 1) What is the base object in C#.NET, its public methods and when would you use them? - I'm astonished how few people get this. I generally forgive forgetting GetHashCode but Equals?! - only maybe 25% of people get 3 out of the 4 methods.
4 methods?? System.Object has 7. Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ReferenceEquals and ToString.
|
|
|
|