|
How to display the selected tabItem used code?
I do not find method or attribute such as "selectdTab" or "displayTab".
please give me help,Thanks.
|
|
|
|
|
|
No, Mine is not System.Windows.Forms.Tabcontrol.
it is "DevComponents" company's.
|
|
|
|
|
|
|
|
Hello
I want to read a file that is located on another computer within a network.
reply me asap.
Devesh Mishra
|
|
|
|
|
Just use the network path the file and read as normal
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Thanks for ur reply.
Can u send me syntax of path for the file.
Devesh Mishra
|
|
|
|
|
\\machinename\c\filename
for example
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
There are two way to read the file.
1) Use the network path of the file to read at the local PC. The network path will be somthing like \\remotePCName\\folderName\\FileName.ext. But for this the file/folder needs to be shared on the network PC.
2) Write a Client/Server application. You can use Remoting or Socket for this purpose. Your Server should implement a interface with a function to accept the file name with path and will return the file contain as out parameter. In this case you needs to run the server at the remote PC and it must me running while you will read file containt from the client program.
Manoj
Never Gives up
|
|
|
|
|
Hi manoj,
Thanks 4 ur reply.
But still i m getting an error message i.e. "could not find the path"
can u tell me in some more detail way..like complete path for the file..or any live example...
Devesh Mishra
|
|
|
|
|
thanks...i got it man..
Devesh Mishra
|
|
|
|
|
Dear All,
I need to convert a .txt file into a .csv file. How can I do this? Please help me.
Thanx
|
|
|
|
|
That will depend on what is inside the .txt file. A txt file can contain anything whereas .csv file contains some kind of delimited data.
But you could try to read the txt file using a StringReader and convert the data into csv as per your requirements and the save this to csv using StringWriter.
|
|
|
|
|
Mr Perfect wrote: I need to convert a .txt file into a .csv file. How can I do this?
Change the file extension?
Seriously - What format is the TXT file in?
|
|
|
|
|
It contains some data seperated by delimiter.
|
|
|
|
|
Mr Perfect wrote: It contains some data seperated by delimiter.
That's a bit of a vague file format specification there.
We are trying to be helpful, but you need to help us to help you. You need to give us the information about your problem so we can help you find a solution.
What sort of delimiter? What will constitute one line in the resulting CSV file? Do you really just want to replace one delimiter for another?
|
|
|
|
|
Delimiter may be a comma or semicolon or tab
|
|
|
|
|
Read the entire file into a string. Use Replace to replace one delimiter with another. Save the new string to disk.
|
|
|
|
|
there is next code:
<br />
int a;<br />
int b;<br />
<br />
a = 5;<br />
<br />
b = ++a + ++a;
Try it compile and run in various languages: C++ and C# and Java.
I had got different results even in the same compiler (Watcom C++) -- with and without optimisation.
A
|
|
|
|
|
++a is the prefix incrementor
a++ is the postfix incrementor
if a = 5 then ++a returns 6 and a becomes 6
if a = 5 then a++ returns 5 and a becomes 6
therefore
b = ++a + ++a
= 6 + 7
= 13
|
|
|
|
|
You are correct and this is what i got with c# as well, but c++ gave me 14.
|
|
|
|
|
I have read this statement in a book.
"The results of expressions which use same variables with increment operators more than once are unpredicatble in C Language"
int i=0;
i=i++ + ++i; //3 not 2
-----------------
int i=0,j=0;
j=i++ + ++i; //2 as esxpected
You can try with lot of examples...
Regards,
Arun Kumar.A
|
|
|
|
|
It would indeed seem that way. If I do the following in c++ I do get the expected result
int a;
int b;
a = 5;
b = ++a;
b += ++a;
|
|
|
|