|
can you explain it please!
|
|
|
|
|
OK,
First you need to download the windows media encoder. I use version 9
http://www.microsoft.com/downloads/details.aspx?FamilyID=5691ba02-e496-465a-bba9-b2f1182cdf24&displaylang=en.
Once you download it and install, run it from the start menu. The dialogs are straight ahead.
You will be broadcasting a live event from your server. Pick your device from the device options menu. I use Broadcast Method = pull from...
Pick a port (I use 2009. URL for Internet = http://192.you.fil.lin:port# or choose a lan connection or both. I use multiple rates.
Once you have it working and you can see your broadcast at the server. Let me know and I can give direction on the ASP.net end of it.
|
|
|
|
|
Hi..........
I want to develop a C Compiler using C#3.0 So is it possible??? How should i go for this????
|
|
|
|
|
Take a class on writing compilers. I assume they still teach this in computer science courses....45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Writing a C compiler is not a simple piece of work: it can be done in C#, and the actual lexical / parser / code generator design is well established. But what it won't let you do is run a program - to do that, you will need a library of back up stuff: Add, subtrcat, multiply, divide, write a character, etc., etc.
It's a big job, probably a couple of man-years, but if you want to try, give google a shot with "how do I write a c compiler" and you will get thousands of hits!If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
Thanks for ur reply...But i m not getting what u r trying to tell me...can u please elaborate what u r trying to say?
Thank You
|
|
|
|
|
Writing a C compiler is not a simple piece of work.
You also need to write a large amount of background functions that the application written in C and compiled by your compiler need to work.
For example, at the most basic, you must provide a function to write a character on a screen.
Then to write a string.
Then to cope with all the parameters of the "printf" function.
And to add two ints.
And to add two floats.
and to subtract two ints.
etc.
Actually parsing the input is relatively simple, as is code generation, but I think you will have a lot to do to get a C program to run as output by your compiler.
Google can help you if you do decide to do it: try to search for "How do I write a C compiler" and it will give you a lot of information.If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
I guess an easier route would actually be to create an intermediate compiler which creates IL (which is effectively what MS did).
I would imagine that converting the parsed code into machine code would be something of an arduous task but creating IL would appear to be a translation between languages - parse the input code, create a parse tree, manipulate this tree so you have a syntax tree and then perform a similar process in reverse to generate the IL.
By concentrating on a limited set of primitive types and operands you could probably get something basic up and running within a few days.Sarchasm : The gulf between the author of sarcastic wit and the person who doesn't get it.
|
|
|
|
|
That certainly gets rid of a lot of work. The next problem: how do you use .NET classes with an non-OOP language like C? If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
My bad - I read the question as 'I want to write a c# compiler'... My way was definitely easier! Sarchasm : The gulf between the author of sarcastic wit and the person who doesn't get it.
|
|
|
|
|
OriginalGriff wrote: The next problem: how do you use .NET classes with an non-OOP language like C?
That won't be a problem. How F# is using .NET framework classes? How C++/CLI supports non-OO programing? But it's more work for compiler writers. Best wishes,
Navaneeth
|
|
|
|
|
Hello,
I need help, i want to list a content from specific folder from FTP, a can make the connection to FTP, but i don't know how can list the files contended in a specific Folder from FTP in one ListBox.
I'm new ( beginner) in .NET
I have one folder ftp;//server.com/FolderX/
i want to list the files from FolderX in one ListBox and in one label to show me the numbers of files from FolderX
This is my code in C#
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
FtpWebRequest Request = (FtpWebRequest)WebRequest.Create("ftp://server.com");
Request.Method = WebRequestMethods.Ftp.ListDirectory;
Request.Credentials = new NetworkCredential("user", "pass");
FtpWebResponse Response = (FtpWebResponse)Request.GetResponse();
Stream ResponseStream = Response.GetResponseStream();
StreamReader Reader = new StreamReader(ResponseStream);
//ListBox1.Items.Add(Response.BannerMessage);
//ListBox1.Items.Add(Response.WelcomeMessage);
while (!Reader.EndOfStream)//Read file name
{
ListBox1.Items.Add(Reader.ReadLine().ToString());
}
Response.Close();
ResponseStream.Close();
Reader.Close();
}
}
I try something like "FtpWebRequest Request = (FtpWebRequest)WebRequest.Create("ftp://server.com/FolderX");" but i give error from line "FtpWebResponse Response = (FtpWebResponse)Request.GetResponse();"
Thanks for your time !
|
|
|
|
|
Try here: Simple FTP demo application using C#.Net 2.0[^] If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
how to upload image on ftp server folder in c# full source code ...
|
|
|
|
|
|
Since when was an image not a type of file?
And for your information, always use reply on the message you want to reply to, not your own message - that way the person you want to talk to gets notified.If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
Hi,
I want "Enter" Key press count fro .doc file. I am using ASCII value of "Enter" Key . But How can I find using stramreader while reading file.
When I read file. when ever I press "Enter" it get "" value for "Enter" Key.
but while reading file if it contains "" value then it can be problem so How can I do this??
Or any other Solution for that?
Thanks,
sjs
|
|
|
|
|
If this is a .doc file as in a MS Word document, the probably the easiest and safest way is to use Microsoft.Office.Interop.Word which provides a statistics enumeration, which includes Lines and Paragraphs count[^].
If this is your own .doc format, then we would need to see the code you are using to read it, and possibly the code to write it as well. When pasting, use the "code block" widget to preserve the formatting, and the Preview button to check it.
Bear in mind that the Enter key has no ASCII value, and that ASCII CR is not the same as '\n'.If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
accii value of enter key is 13
|
|
|
|
|
ASCII 13 is not the enter key - it is a CR (or carriage return) character. It indicates that the cursor should move to the left hand side, not that it should start a new line. It may, or may not, be in conjunction with the ASCII LF character depending on the system.
With a .DOC file, there is no guarantee that CR indicates anything, particularly the end of a paragraph as originally requested by the OP. Remember that Word 2007 changed the .DOC file format to an XML based paradigm where CR has no meaning whatsoever! Even before 2007, CR did not delimit a paragraph - see the .DOC file format, available on MSDN for details)You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
what kind protocol are using by socket?
|
|
|
|
|
Ok I have setup a simple gui for uart. I am trying to light up 4 LEDS thru a MC. LED0 will be 0x01, LED 1, 2, 3 will be 2, 4, 8. Will this send out the appropriate command I am looking for. I have no way to test it until tomorrow because I do not have the hardware with me but was wondering if this would suffice. I do not get any errors or warnings so I am thinking it should. Thanks
private void buttonLED0_Click_1(object sender, EventArgs e)
{
Data = Data ^= 0x01;
int BytesToWrite = Data;
int bytes = serialPort1.BytesToWrite;
buttonLED0.Enabled = !buttonLED0.Enabled;
if (buttonLED0.Enabled)
{
pictureBoxLED0.BackgroundImage = imageList1.Images[(int)LEDColor.GreenOn];
}
if (!buttonLED0.Enabled)
{
pictureBoxLED0.BackgroundImage = imageList1.Images[(int)LEDColor.RedOn];
}
}
|
|
|
|
|
By the way this will have to be sent out thru the TXD.
|
|
|
|
|
John-EE wrote: I do not get any errors or warnings so I am thinking it should.
It would be nice if not getting compile time errors or warnings meant that something would work.
The code you provided here doesn't look like it'll send anything out of the serial port. If it did, it would use the SerialPort.Write method. Take a look at msdn for details and examples.Standards are great! Everybody should have one!
|
|
|
|
|
I don't really know what the rest is about, but this is definitely odd:
John-EE wrote: Data = Data ^= 0x01;
This will only do something other than the more usual Data ^= 1 if Data is a property with side effects
|
|
|
|