|
found it:
use this '" + string + "'
|
|
|
|
|
Jamie1985 wrote: select * from table where tablename = string(tablename)
<code>select * from student where name = '" + txtname+ "' </code><pre>
|
|
|
|
|
HI,
i'm sending messages from App1 to App 2 in TCP/IP
the thing is that first collect all info and rhen sends it little Messages
App2 reads the MSG One By One and display
the Thing is that when i debug all the MSG arrives (or get there in time)
but when i run the EXE and send info To App2, not all the Info Arrives
About (70%!!!!!!!!!!!!!!!) Lost, how can i Get Each MSG
i'm using :
<br />
connectionSocket = new Socket(AddressFamily.InterNetwork,<br />
SocketType.Seqpacket,<br />
ProtocolType.Tcp);<br />
<br />
<br />
ipAddress = IPAddress.Parse(runnerTcpIP);<br />
<br />
ipEndPoint = new IPEndPoint(ipAddress,int.Parse(runnerPortNumber));<br />
type of connection with Begin/EndConnect
Send/Recieve
THANKS
Have Fun
Never forget it
|
|
|
|
|
half-life wrote: connectionSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Seqpacket,
ProtocolType.Tcp);
Use SocketType.Stream instead.
________________________________________________________________
There are 10 kind of people: those who knows binary and those who doesn't.
|
|
|
|
|
Did It
Still Not Working
THANKS Anyway
Have Fun
Never forget it
|
|
|
|
|
I suspect you're expecting message boundaries to be preserved, that is, the data from one Send to appear in one Receive. TCP doesn't work like that. I suggest you read How to use TCP effectively[^] and the rest of the Winsock Programmer's FAQ[^]. It's C-oriented, but still makes sense for a .NET programmer.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
mmmmmmmmm,
THANKS man.
i need to build a header to identify where a MSG begins
and where it ends
Have Fun
Never forget it
|
|
|
|
|
Hi,
How can I change the color on particular cell of dataGridView?
Thank you in advance
(Riaz)
|
|
|
|
|
In the data grid, you will have to create custom column styles classes derived from DataGridColumnStyle) which would paint the background based on the row that you want to highlight. The DataGrid is very column-based, so doing something like changing the row highlighting is difficult, to say the least.
Basically, you have to create new versions of the DataGridColumnStyle
for your table, and then set the backgrounds appropriately.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hello
I search for an application that shows me how to save the datas (width, height, left, top, windowstat) from a few forms to a XML-file and restore them an apllication startup. It sould be handle for 2 monitors. So when the application was closed an monitor 2 and on the next start the monitor 2 was not available, the apllication must start up on monto 1.
Did anyone has such a class on C# for me?
Many thank
Thomas
|
|
|
|
|
Hi,
Im trying to connect ftp server over "ftp-proxy".
Here my code:
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create("ftp://ftp.xxx.com");
request.Credentials = new NetworkCredential("User", "PASS");
System.Net.WebProxy prox = new System.Net.WebProxy("111.111.111.111",21);
prox.Credentials = new NetworkCredential("USER", "PASS");
request.Proxy = prox;
request.UsePassive = true;
request.UseBinary = true;
request.UsePassive = true;
request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
I get an error on the last line from my code:
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
-->The server committed a protocol violation.
Can anybody help??
Thx in advance.
|
|
|
|
|
Hello,
Are you sure that you are using the correct port of web proxy?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi All,
I need list of all countries in the world in my application.
Can anyone tell me how to obtain the list of all countries?
Thanks,
Nagendra.
|
|
|
|
|
|
hi,
i m confused, how can i add that list to my application.
|
|
|
|
|
It's a text file - just strip out the info you don't need, and load it into your program. Shouldn't take more than a few minutes to code
|
|
|
|
|
|
I want to generate a script for tables and stored procedures using query analyzer.
for stored procedures i got it using -- sp_helptext spname
For tables how to do? using sp_help tablename -- giving structure of table and not generating a script. but i need script for this table using query analyzer
|
|
|
|
|
|
Hi can anyone help me to instantiate Shell32.ShellLinkObjectClass object.
I am doing it this way :
Shell32.ShellLinkObjectClass o = new ShellLinkObjectClass();
And it gives following exception.
Retrieving the COM class factory for component with CLSID {11219420-1768-11D1-95BE-00609797EA4F} failed due to the following error: 80040154.
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
hi,
i have two array lists..
first arraylist consists of 1,2,4,6,8;
second arraylist consists of 2,6,9,8
now i want to display the matched values from two arraylists and i need the values of second arraylist which are not in first arraylist..
how can i do this in c#
|
|
|
|
|
If this is homework:
Give it a try yourself, come back with specific coding problems and someone will help you. We will not however do your work for you.
If this is paid work:
You should not be employed as a programmer.
|
|
|
|
|
Easily... Take Jamie's advice. Post some code that illustrates you can put forth some effort in finding the solution yourself. Until you post code that appears to be close to working (or that we feel was typed in a good-faith effort to solve the problem), and with specific problems/questions, we will not help.
-Jeff
|
|
|
|
|
First sort the lists, then you can loop through them side by side and compare the items to find out where they match and where there are items that exist in only one of the lists.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Guffa wrote: First sort the lists, then you can loop through them side by side
He can loop through the first ArrayList and use the .Contains(object item) method for the second array list and not interate through both ArrayLists.
just a thought
Nassos.NET
|
|
|
|