|
If you know the file format and encoding you can write that. I don't think that rich editor will provide inbuilt methods for creating DTD files.
|
|
|
|
|
i want example on assembly versioning with code
sekhar
|
|
|
|
|
|
give the exlpanation on versioning in assembly
|
|
|
|
|
give the cup of tea
EDIT: I suppose I'd better explain. What you need to do is go away and do some research, Google[^] is a very good resource for this. If you still can't find what your looking for or get stuck on something specific then come back and ask for help.
When you ask for help you should state what the specific problem is, you should also say what you've tried and what research you've done. Finally you should be polite in your questions, you should take time to write the post and make sure you do the simple things like say please and not demand things.
When you post a question that comes across as being lazy, impolite and in fact rude all you'll get is stupid answers (like "And I want a cup of tea").
|
|
|
|
|
thanks for u r suggestions ,i will follow comming day what u specify
|
|
|
|
|
Would you please give me a simple example regard sending and receiving data by means of USB Port?
Mansureh Shahraki Moghaddam
|
|
|
|
|
Normally you don't talk to the USB port, you talk to a device that is connected via the USB.
example: a USB printer uses a printer driver, you talk to that driver which presents
itself as a printer (you don't have to be aware there is USB involved at all).
same is true if you have a USB-to-RS232C cable, or a USB-to-Ethernet cable.
When I bought my USB-to-serial cable, it came with a CD-ROM containing a driver.
When I installed it, it turned the port into a regular serial port, so it shows up
in all serial port enumerations, and most/all serial apps can use it, whether
HyperTerminal or some .NET based app using SerialPort class.
The app never is aware the USB-based serial port is connected in a different manner,
all the nasty details are hidden by Windows and the device drivers.
If the above does not satisfy you, you can build your own electronics target (say
a microcontroller based design), give it a USB interface, an operating system and a USB
driver; at PC side you would also need your own device driver so you can support read
and write operations from and to your device. Most often it is not worth the effort,
why reinvent the existing protocols as used on serial ports, Ethernet, etc?
|
|
|
|
|
Hi again,
Here again I want to learn USB connection between a PC and a MCU.
I know that there are some chips like FT232 or SDM-USB_QS-S that should be placed between PC and USB.
As I know these chips are called USB-to RS232 drivers or converters.
The thing I need to know is not about hardwired connection between PC USB cable and MCU. I need to know how to write a C# program to establish a send and receive pipe between the PC and the MCU.
May you please help me again, as you helped me for serial port?
Sourie
|
|
|
|
|
Hi,
if there is a USB-to-serial cable involved, it is a serial port for all intents and
purposes to both the PC and the peripheral. Please reread my previous reply.
if it is a strict USB connection (PCB-USB-microprocessor) without a serial port involved,
then it requires special software on both sides. You may be lucky and get such
software from your microprocessor vendor (i.e. both source code for the uP side, and
a working driver for the PC side); if not, you would have to develop both, which seems
unrealistic to me. For sure I would not do such thing.
|
|
|
|
|
I want to work with serial port, I found a good example in this site. And I learnt a little about serial work in c#.
But now I want to now how could I update serial port communication protocol in C##? Like; how could I change the value of serial port parameters: Parity, BaudRate, StopBits, DataBits ect.
Thanks in advance
Mansureh Shahraki Moghaddam
|
|
|
|
|
you set serial port parameters thru the SerialPort class, use one of the constructors
and/or one of several properties (such as SerialPort.BaudRate).
|
|
|
|
|
Thank you so much for helping me.
You mean like these codes:
_serialPort.Open();
_serialPort.ReadTimeout = 5000;
_serialPort.WriteLine("*cls");
But what about wiring? Is that enough to estanbish a "Null Modem" connection?
Sourie
|
|
|
|
|
Hi again,
I found this link. I think it could be helpful for me:
http://www.codeproect.com/KB/cs/serialcommunication.asp
Sourie
|
|
|
|
|
Hi again.
When you connect a peripheral to a PC, you typically need a straight cable with one
male and one female connector.
When you connect two PCs, you would need a null modem cable, which has two female
connectors.
There is nothing you can do about that in software, your cable must match the situation.
|
|
|
|
|
Thanks for your reply.
Actually I want to connect an AVR MCU to PC.
As I studied these days, I think I should make a NULL MODEM connection between AVR and Serial Port of PC (but by inserting a MAX232 chip). It means that RXD and TXD from PC should be connected to TXD and RXD of MCU and DTR of PC should be connected to its DSR and CD, also its RTS should be connected to CTS.
I think this wiring is enough and after that I should write a C# code for Pc and an assembly code for MCU to communicate to eachother.
Sourie
|
|
|
|
|
Hi,
yes, you need at least three wires:
GND to GND
RXD to TXD
TXD to RXD
you may want or need some of the control lines, depending on your application
and port settings. If so, they need to be cross-wired too.
|
|
|
|
|
Thanks alot
Sourie
|
|
|
|
|
Hi.. all i am writing a function that will return a dataset
i am writing the code as follows...
using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
namespace dat
{
class dataset
{
public DataSet getdatset(string a, string b, long c, long d)// with all these 4 input //parameter it ll return a output parameter so where shoud i defined it..ll it be after d..
{
}
};
}
T@SU
|
|
|
|
|
Hi,
I think it should be before the Form1Load_Click.
Mansureh Shahraki Moghaddam
|
|
|
|
|
This is kinda console application so need to load anyform... i guess...
vikas da
|
|
|
|
|
not sure if this is what you ment but
using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
namespace dat
{
class dataset
{
public DataSet getdatset(string a, string b, long c, long d)
{
DataSet d;
//Assign d and do whatever with it
return d;
}
}
}
|
|
|
|
|
i have created 400 threads that will act like a virtual comp request.... it just generates and request the web service... but i have found there are only 4-6 request per second... and now i want to increase the request more than 400 and see the scability of web service.. now i want to test the load of the web service.... and see the load of the web service per second... i want to do it without using load runner or any vs.net load test...
am i doing it in the right way...
|
|
|
|
|
|
In visual studio 2005, i have used a masked textbox control and set its mask property to phone number.
Also I am using a button to insert the phone number into the masked textbox(as shown in the code), but when i do so,
it inserts the number in the masked textbox from the end part not the beginning.
Code...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MaskedTextBox1.Text+="1"
End sub
How to insert the value in the masked textbox from the beginning like in a normal textbox?
Any ideas??
|
|
|
|