Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
QuestionIrda Pin
Rafnunes6-Jun-07 6:39
Rafnunes6-Jun-07 6:39 
AnswerRe: Irda Pin
Judah Gabriel Himango6-Jun-07 7:20
sponsorJudah Gabriel Himango6-Jun-07 7:20 
GeneralRe: Irda Pin
Rafnunes6-Jun-07 7:25
Rafnunes6-Jun-07 7:25 
GeneralRe: Irda Pin
Dave Kreskowiak6-Jun-07 7:32
mveDave Kreskowiak6-Jun-07 7:32 
GeneralRe: Irda Pin
Rafnunes6-Jun-07 7:46
Rafnunes6-Jun-07 7:46 
GeneralRe: Irda Pin
Dave Kreskowiak6-Jun-07 8:22
mveDave Kreskowiak6-Jun-07 8:22 
GeneralRe: Irda Pin
Judah Gabriel Himango6-Jun-07 8:58
sponsorJudah Gabriel Himango6-Jun-07 8:58 
GeneralRe: Irda Pin
Rafnunes6-Jun-07 11:36
Rafnunes6-Jun-07 11:36 
This is the code i have writte,

<br />
<br />
<br />
<br />
<br />
 static   byte[] bufferBurst = new byte[22] { 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B, 0x5B };<br />
        static void Main(string[] args)<br />
        {<br />
            string portCom = "COM";<br />
            RegistryKey regkey = Registry.LocalMachine.OpenSubKey("Drivers\\BuiltIn\\IrCoMM");<br />
<br />
            if (regkey != null)<br />
            {<br />
                portCom += ((int)regkey.GetValue("Index")).ToString();<br />
                regkey.Close();<br />
            }<br />
            SerialPort sr = new SerialPort(portCom);<br />
            try<br />
            {<br />
<br />
                sr.RtsEnable = true;<br />
                sr.DtrEnable = true;<br />
                sr.BaudRate = 19200;<br />
<br />
                sr.Open();<br />
                sr.Write(bufferBurst, 0, bufferBurst.Length);<br />
                sr.Close();<br />
<br />
            }<br />
            catch ( IOException io)<br />
            {<br />
                Console.WriteLine(io.Message);<br />
                sr.Close();<br />
            }<br />
        }<br />

and the exception is:

InnerException = null
Message = IOException
HResult = -2146232800

When i start i think this type of hardware " IRDA" is very simple, but now.. and the home site to irda i have pay to acesse, but i'm not the soluctions for my problem is there.. Sigh | :sigh:
GeneralRe: Irda Pin
Judah Gabriel Himango7-Jun-07 4:25
sponsorJudah Gabriel Himango7-Jun-07 4:25 
QuestionC# code location Pin
TheShaver6-Jun-07 6:29
TheShaver6-Jun-07 6:29 
AnswerRe: C# code location Pin
Judah Gabriel Himango6-Jun-07 7:10
sponsorJudah Gabriel Himango6-Jun-07 7:10 
GeneralRe: C# code location Pin
TheShaver6-Jun-07 7:16
TheShaver6-Jun-07 7:16 
GeneralRe: C# code location Pin
Judah Gabriel Himango6-Jun-07 7:23
sponsorJudah Gabriel Himango6-Jun-07 7:23 
GeneralRe: C# code location Pin
TheShaver6-Jun-07 14:28
TheShaver6-Jun-07 14:28 
GeneralRe: C# code location Pin
Judah Gabriel Himango7-Jun-07 4:23
sponsorJudah Gabriel Himango7-Jun-07 4:23 
QuestionDrag and Drop Pin
Sergio Paque6-Jun-07 6:28
Sergio Paque6-Jun-07 6:28 
AnswerRe: Drag and Drop Pin
I Believe In GOD6-Jun-07 6:38
I Believe In GOD6-Jun-07 6:38 
QuestionGetting Files that start with letters only Pin
hebes_996-Jun-07 5:57
hebes_996-Jun-07 5:57 
AnswerRe: Getting Files that start with letters only Pin
Luc Pattyn6-Jun-07 6:04
sitebuilderLuc Pattyn6-Jun-07 6:04 
GeneralRe: Getting Files that start with letters only Pin
hebes_996-Jun-07 6:09
hebes_996-Jun-07 6:09 
QuestionMoving a control with the mouse Pin
sinosoidal6-Jun-07 5:49
sinosoidal6-Jun-07 5:49 
AnswerRe: Moving a control with the mouse Pin
I Believe In GOD6-Jun-07 6:22
I Believe In GOD6-Jun-07 6:22 
GeneralRe: Moving a control with the mouse Pin
sinosoidal7-Jun-07 21:59
sinosoidal7-Jun-07 21:59 
GeneralRe: Moving a control with the mouse Pin
I Believe In GOD8-Jun-07 7:03
I Believe In GOD8-Jun-07 7:03 
Questiontreeview and tooltip Pin
Saamir6-Jun-07 4:18
Saamir6-Jun-07 4:18 

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.