Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 9:21
sitebuilderLuc Pattyn23-Jul-09 9:21 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 13:12
sitebuilderLuc Pattyn23-Jul-09 13:12 
AnswerRe: Why do I get a "Cross thread" Exception? Pin
PIEBALDconsult23-Jul-09 8:42
mvePIEBALDconsult23-Jul-09 8:42 
QuestionHow to copy assembly from GAC to local drive ? Pin
hdv21223-Jul-09 8:06
hdv21223-Jul-09 8:06 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
Ian McCaul23-Jul-09 8:20
Ian McCaul23-Jul-09 8:20 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
stancrm23-Jul-09 9:17
stancrm23-Jul-09 9:17 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
Abhijit Jana23-Jul-09 10:13
professionalAbhijit Jana23-Jul-09 10:13 
QuestionLittle conversion problem from visual basic to c# Pin
Member 474292223-Jul-09 7:42
Member 474292223-Jul-09 7:42 
Hello everyone,

2 days ago i bought a relays card wich is controlled by rs232 ComPort.
It works with the suplied software, that's written in visual basic.
But i code in visual c#, so i downloaded visual basic but i have som problem understanding how to convert sertan things from visual basic to c#.
i will post some code and hope someone could help me out, the problem is in a byte buffer, wich wil sent the commands to my serial port.

Send_buffer(0) = 2                               ' Get Ports
Send_buffer(1) = 0                               ' Broadcast
Send_buffer(2) = 0
Send_buffer(3) = Send_buffer(0) Xor Send_buffer(1) Xor Send_buffer(2)

SerialPort1.Write(Send_buffer, 0, 4)

i know a little bit what is happening here, but i dont know how to use it in c# thanks so far;) Laugh | :laugh:
AnswerRe: Little conversion problem from visual basic to c# Pin
0x3c023-Jul-09 7:48
0x3c023-Jul-09 7:48 
GeneralRe: Little conversion problem from visual basic to c# Pin
PIEBALDconsult23-Jul-09 7:58
mvePIEBALDconsult23-Jul-09 7:58 
GeneralRe: Little conversion problem from visual basic to c# Pin
0x3c023-Jul-09 8:02
0x3c023-Jul-09 8:02 
GeneralRe: Little conversion problem from visual basic to c# Pin
Member 474292223-Jul-09 8:09
Member 474292223-Jul-09 8:09 
GeneralRe: Little conversion problem from visual basic to c# Pin
OriginalGriff23-Jul-09 8:17
mveOriginalGriff23-Jul-09 8:17 
GeneralRe: Little conversion problem from visual basic to c# Pin
Member 474292223-Jul-09 8:25
Member 474292223-Jul-09 8:25 
GeneralRe: Little conversion problem from visual basic to c# Pin
PIEBALDconsult23-Jul-09 8:37
mvePIEBALDconsult23-Jul-09 8:37 
Questionif someone could help me identify the problem please. [modified] Pin
DinoRondelly23-Jul-09 7:20
DinoRondelly23-Jul-09 7:20 
AnswerRe: if someone could help me identify the problem please. Pin
Nagy Vilmos23-Jul-09 7:27
professionalNagy Vilmos23-Jul-09 7:27 
GeneralRe: if someone could help me identify the problem please. Pin
PIEBALDconsult23-Jul-09 7:30
mvePIEBALDconsult23-Jul-09 7:30 
GeneralRe: if someone could help me identify the problem please. Pin
Nagy Vilmos23-Jul-09 7:46
professionalNagy Vilmos23-Jul-09 7:46 
GeneralRe: if someone could help me identify the problem please. Pin
PIEBALDconsult23-Jul-09 7:48
mvePIEBALDconsult23-Jul-09 7:48 
GeneralRe: if someone could help me identify the problem please. Pin
LetMeFinclOut23-Jul-09 12:15
LetMeFinclOut23-Jul-09 12:15 
GeneralRe: if someone could help me identify the problem please. [modified] Pin
Luc Pattyn23-Jul-09 7:33
sitebuilderLuc Pattyn23-Jul-09 7:33 
GeneralRe: if someone could help me identify the problem please. Pin
Nagy Vilmos23-Jul-09 7:46
professionalNagy Vilmos23-Jul-09 7:46 
GeneralRe: if someone could help me identify the problem please. Pin
Curtis Schlak.23-Jul-09 18:02
Curtis Schlak.23-Jul-09 18:02 
GeneralRe: if someone could help me identify the problem please. Pin
Adam R Harris23-Jul-09 7:50
Adam R Harris23-Jul-09 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.