|
Hey viki come on man take it in the rite spirit....
its all about experience.I personally blve here in Code project all r experienced enough to give me the right answer.Nthg other than tat.
If I was wrong I'm sorry dude....
|
|
|
|
|
BINO VARGHESE wrote: its all about experience.I personally blve here in Code project all r experienced enough to give me the right answer
That's good to know. But in an interview situation the interviewer wants to know about YOUR experience. Not the experience of skilled people that volunteer on internet forums.
|
|
|
|
|
Colin Angus Mackay wrote: in an interview situation the interviewer wants to know about YOUR experience. Not the experience of skilled people that volunteer on internet forums
Well said
|
|
|
|
|
|
Did you get asked these ? What do you think the answers are ? These are very entry level questions, I have to say.
BINO VARGHESE wrote: I dont want to browse sites and get answers
In that case, you'll never be a programmer. Being able to do research is a vital skill
BINO VARGHESE wrote: as v dont cant conclude 4m it.
I have no idea what this means
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes Im in entry level only ...I'm jst 6 months experienced..
|
|
|
|
|
6 months working with these technologies and you can't answer these very simple questions?
|
|
|
|
|
What sort of experience ? Have you been hacking away for fun ? Have you done a course ? Have you bought any books ?
Any entry level book will give you answers to these questions, and as others have said, an interview is designed to seperate the people who got a bit of info off the web from those who truly understand the answers. The questions you've asked are sufficiently base level that if you don't *understand* the answers, no-one is going to hire you.
Don't be discouraged by the response you've got, if you do some reading and come back to asking questions when you're able to do some of your own research and grasp some basic concepts, we'd love to help you. We're helping you now, it's just not in the way you'd hoped. That's what were here for.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sorry Christian I understood my mistake.I take it in the right way which will lead me in the correct path and master C#.
No not discouraged by the responses .TO be honest yes,was upset intially ,after some good advices I understood that its my mistake.Sorry again.
Thanks again
|
|
|
|
|
To be honest, I'm self taught, and when I started ( in C++ ), I found some forums on USENET ( showing my age here ) and proceeded to ask a ton of questions, and get a similar response. I hope you respond as I did, which was to take the advice and work hard to become someone who was able to ask intelligent questions, and give intelligent answers. I got my first job in C++ six months after I started learning, mostly due to the help I got once I'd got myself to a level of asking for it.
Good luck.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for your wishes Christian .Me to hope for the same from this moment
|
|
|
|
|
BINO VARGHESE wrote: I dont want to browse sites and get answers
Then I am disinclinded to answer. You must at least show that you are willing to help youself first and are not just a blood sucking leach that wants everything now but is unwilling to do any work on their own.
|
|
|
|
|
k dudes vl take ur advice .To be honest Im searching it in google.
But Wat i thought was to get the most appropriate answer which could impress an interviwer .As ppl in Codeprojects are experienced.
Thanks for ur replies.
IF i was wrong somewhere Im sorry 4 it again..
|
|
|
|
|
BINO VARGHESE wrote: But Wat i thought was to get the most appropriate answer which could impress an interviwer .
It depends if the interviewer askes these questions.
At the company I work for the interview process requires that you actaully write some code (a very simple application to read data from a file and display it in a window based on a filter) You are then required to walk the interviewer through the code. That is not something you can ask on a forum.
We do this because in the past we have hired a couple of people that were very good at talking up their skills, but when they actually started work it was found they were somewhat lacking.
|
|
|
|
|
BINO VARGHESE wrote: But Wat i thought was to get the most appropriate answer which could impress an interviwer
You don't have to impress your interviewer repeating things you don't understand.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You are offending us by asking and not taking the trouble to do some search in books and on internet.
|
|
|
|
|
Sorry rudolf soory again...
|
|
|
|
|
The intention of these questions is to find out if you know anything about the concepts mentioned. If you knew what those things are, you could easily answer the questions.
I could easily give you the answers to those specific questions, but you would not learn anything from it. Just memorising answers to specific questions won't help you, as the questions will be put differently the next time you are in an interview.
What you need to do is to read up on those concepts, so that you know what you are talking about. If you have any specific questions about any of those concepts, that would be a suitable question for the forum.
BINO VARGHESE wrote: diff b/w
diffuson black/white?
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks Guffa.. I vl definetly do it and cum back to u for my doubts.
Thanks again
|
|
|
|
|
Hi,
I'm trying to create a stateful Ftp client classes using FtpWebRequest class from .NET library. Is there a way how to explicitly close connection ? Or I need to send a command like PWD with KeepAlive set to false ?
thanx
|
|
|
|
|
Morning everyone,
I've been having loads of problems over the past week involving the different behaviour of strings in VB6 and c#. I was having nightmares using DLLImport with a function that required ref string inputs. I discovered that if i used byte[] instead of the stringbuilder that everyone recommends my character conversion issues evaporated.
Now i need to make 1 final call but this time it's into a COM component that is hooked up via an interop dll.
The method i need to call is:
DoStuff(ByRef data as string)
If i call this method from VB it returns data, if i call it from c# via interop with the same data i get "Invalid Method Call".
What i would like to do is to change the Interop wrapper so that i can pass a byte array in rather than a string as that seemed to solve my problems before. Is this possible? Can anyone point me in the direction of a good learning resource for Interop? I've never really done much more than use tlbimp from the command line before.
This is the IL for the method i'm looking at if it makes a difference.
.method public hidebysig newslot virtual <br />
instance string marshal( bstr) DoStuff([in][out] string& marshal( bstr) sMessage) runtime managed internalcall<br />
{<br />
.custom instance void [mscorlib]System.Runtime.InteropServices.DispIdAttribute::.ctor(int32) = ( 01 00 05 00 03 60 00 00 )
.override MyComponent._myClass::DoStuff<br />
}
Thanks
Russell
|
|
|
|
|
Hello. I have a problem while reading bytes from a socket.
According to my test, it seems that the buffer maximum size is 8192 bytes. Then, I use a byte array with that size to read from the buffer. If the send data size is 8192 or less, it works ok.
But, if I send more that 8192, let's say 10000 bytes, the first time I read from the buffer I get 8192, and the second, instead of 1808 bytes, it reads 8192 again!!!
Isn't the buffer emptied after the reading?
Regards,
Diego F.
|
|
|
|
|
Are you sure of the number of bytes? Maybe you are miscalculating or your call that reads the stream does not move the position to the remaining bytes.
Maybe if you can post the code in your loop, we can see what is wrong.
-----
Formerly MP(2)
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
I send here the code I'm using to test that problem. If I send messages that have a length less that 8192, it works ok. I control the length of the string with the data and the length is what expected.
But, if sent data are over 8192, the second time the code enters the loop, the string with result data has 8192 again.
This is the client code:
Dim bytes_recibidos(8192) As Byte
Dim datos_recibidos As String
Dim p As New IPEndPoint(IPAddress.Parse("127.0.0.1"), 870)
sock = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Try
sock.Connect(p)
ListBox1.Items.Add("Conectado")
Dim socket_conectado As Boolean = True
While (socket_conectado)
If (sock.Poll(0, SelectMode.SelectRead) And (sock.Available = 0)) Then
socket_conectado = False
End If
sock.Receive(bytes_recibidos)
datos_recibidos = (System.Text.Encoding.ASCII.GetString(bytes_recibidos)).TrimEnd(Chr(0))
...
End While
Catch ex As Exception
End Try
And the server code to test that problem:
Dim server As TcpListener
server = Nothing
Try
server = New TcpListener(IPAddress.Parse("127.0.0.1"), 870)
ListBox1.Items.Add("Esperando conexiones...")
server.Start()
Dim cliente As TcpClient = server.AcceptTcpClient()
Dim stream As NetworkStream = cliente.GetStream()
Dim bytes_enviados(8192) As Byte
For i As Integer = 1 To 106
Dim cmd As String = Chr(0) & "12345678901234567890123456789012345678901234567890412345678901234567890123465"
bytes_enviados = System.Text.Encoding.ASCII.GetBytes(cmd)
stream.Write(bytes_enviados, 0, bytes_enviados.Length)
Next
Catch ex As SocketException
Finally
server.Stop()
End Try
Regards,
Diego F.
|
|
|
|
|
Hi Diego,
First off, this is a C# forum. It is not that I want to be picky, but I hate looking at VB.NET code, it gives me rash.
Second, your socket reading code is not familiar to me, but this is not the kind of code I would be using. Use a while this way instead:
int nbBytesRead;
while ((nbBytesRead = sock.Receive(bytes_recibidos)) > 0)
{
datos_recibidos = (System.Text.Encoding.ASCII.GetString(bytes_recibidos)).TrimEnd(Chr(0))
....
}
I don't recommend using the Socket.Poll method in a loop. Use it once before the loop, if you want to see if there is data available. Also, you don't need to check for the Socket.Available method, since if Poll returns true , there is data available to read.
I don't know what your application does, but if you expect the server to return data immediately after connecting to it, there is no need to Socket.Poll your client socket. Just use the Socket.Receive, which blocks until data is available. If in your application you don't want to wait undefinetely for data, use the following code after creating your socket:
sock.ReceiveTimeout = 10000;
Good luck.
-----
Formerly MP(2)
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|