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

C#

 
GeneralRe: SOA & C# Pin
Wendelius22-Sep-08 7:45
mentorWendelius22-Sep-08 7:45 
GeneralRe: SOA & C# Pin
Gil Shimer22-Sep-08 20:41
Gil Shimer22-Sep-08 20:41 
GeneralRe: SOA & C# Pin
Wendelius23-Sep-08 5:45
mentorWendelius23-Sep-08 5:45 
AnswerRe: SOA & C# Pin
Kevin McFarlane21-Sep-08 5:47
Kevin McFarlane21-Sep-08 5:47 
GeneralRe: SOA & C# Pin
Gil Shimer21-Sep-08 23:20
Gil Shimer21-Sep-08 23:20 
GeneralRe: SOA & C# Pin
Kevin McFarlane22-Sep-08 0:12
Kevin McFarlane22-Sep-08 0:12 
GeneralRe: SOA & C# Pin
Gil Shimer22-Sep-08 0:26
Gil Shimer22-Sep-08 0:26 
QuestionSOAP header Pin
George_George20-Sep-08 20:15
George_George20-Sep-08 20:15 
AnswerRe: SOAP header Pin
Wendelius21-Sep-08 0:48
mentorWendelius21-Sep-08 0:48 
GeneralRe: SOAP header Pin
George_George21-Sep-08 20:57
George_George21-Sep-08 20:57 
GeneralRe: SOAP header Pin
Wendelius22-Sep-08 9:55
mentorWendelius22-Sep-08 9:55 
GeneralRe: SOAP header Pin
George_George22-Sep-08 17:49
George_George22-Sep-08 17:49 
GeneralRe: SOAP header Pin
Wendelius23-Sep-08 7:48
mentorWendelius23-Sep-08 7:48 
GeneralRe: SOAP header Pin
George_George23-Sep-08 20:46
George_George23-Sep-08 20:46 
GeneralRe: SOAP header Pin
Wendelius24-Sep-08 7:44
mentorWendelius24-Sep-08 7:44 
GeneralRe: SOAP header Pin
George_George24-Sep-08 20:36
George_George24-Sep-08 20:36 
QuestionIOExpection error using Streamreader and FileStream Pin
yefeng_law20-Sep-08 18:58
yefeng_law20-Sep-08 18:58 
hi,

this is exactly my first program, i will be using C#. The device i am using is a usb connected PC digital TV receiver this receiver software actually have a function which measure the signal strength, BER and these data are save into an log file (thus it real time measurement data) once i start the device (start watch TV).

I am suppose to use C# to get the real time measurement and convert it into graphic (line chart).

I have try to get the data for the log file and display it in the textbox using the following code

using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Testing_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
StreamReader objstream = new StreamReader("c:\\measurement.log");
textBox1.Text = objstream.ReadToEnd();

}


but this is the error i got : IOExpection was unhandled the file been use by another program.

I also try another method which is directly from the usb port which the device is connected to but i am unable to start working on it coding. i had been looking into example of usb_hib and ICSHARPUSBlib but i was unable to get anything out.

Thus please help me, if i am in the right direction (get the data from usb directly?) or do you have any better item on how i should get this done, any code to refer to.

thank so much
AnswerRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman20-Sep-08 21:24
Harvey Saayman20-Sep-08 21:24 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 3:33
yefeng_law21-Sep-08 3:33 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman21-Sep-08 3:38
Harvey Saayman21-Sep-08 3:38 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 3:57
yefeng_law21-Sep-08 3:57 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
Harvey Saayman21-Sep-08 4:00
Harvey Saayman21-Sep-08 4:00 
GeneralRe: IOExpection error using Streamreader and FileStream Pin
yefeng_law21-Sep-08 7:24
yefeng_law21-Sep-08 7:24 
AnswerRe: IOExpection error using Streamreader and FileStream Pin
zafersavas21-Sep-08 0:59
zafersavas21-Sep-08 0:59 
Questionhow to crate an class from the xsd Pin
prasadbuddhika20-Sep-08 18:47
prasadbuddhika20-Sep-08 18:47 

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.