hello, anyone can help finding the equivalent in c# of this?
define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\
(b)^=(t),\
(a)^=((t)<<(n)))
many thanks
How can i update a textbox from inside class ?
Error 1 Cannot access a non-static member of outer type '_server.Form1' via nested type '_server.Form1.handleClinet'
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing...
yes you are right abaut the string is a series of hex values representing a string of ASCII characters, i need parse 4 character not 2, example 3031 converted must result in a hex byte 0x01
hello, i need to convert a string (every 4 character ) in one byte array, example
string str("30313032303330343035");
while be byte array [0]=0x01; [1]=0x02 etc
how can i convert?
Hello, im trying to reuse the usb serial virtual at second time but the aplication hang, at first use it works all ok, but when i close port or close aplication i cannot use again virtual com, i must unplug usb cable and reconnect to work.
using System;
using System.Collections.Generic;
using...
hello, supossing i have a file length whit 33000 bytes, how can a convert or calculate for increment a int until 100% when a finish to write all bytes ?
example: label1.Text = "Progress at " + int +"%"; it can be whit decimal too like 100.00%
hello, i write to usb hid device from form1 but now i need write too from form2 as well.
in form 1 write functions is:
public static extern bool WriteFile(SafeFileHandle hFile,
byte[] lpBuffer,
uint nNumberOfBytesToWrite...
hello , how can i increment a int array?
example start whit:
int[] myint = new int[6]{0,0,0,0,0,0};
int[] myint = new int[6]{0,0,0,0,0,1};
int[] myint = new int[6]{0,0,0,0,0,2};
and so on...
in this case:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Configuration;
namespace...
@Sheepings your option works only if inside a function, when calling TcpListener glabaly not like in the example.
@Skydiver , yes i could read dorm setting but how?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using...
hello, is there a way to load port of tcplistener server when form loads?
example:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using...
hello, why i cant read all bytes ? i receive 27 bytes confirmed whit wireshark.
my code for print:
Byte[] buffer = new Byte[27];
// String to store the response ASCII representation.
String responseData = String.Empty;
// Read...
hi, im trying to send a email.
ii already try many codes but no one works.
try
{
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new...
hello, how can i determine if a string length (not the number itself) in a textbox.Text.Length is odd or even?
example:
1A2B //odd
1A2B3 //even
many thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.