|
Use the SerialPort class.
Standards are great! Everybody should have one!
|
|
|
|
|
TNK and again TNK
kobkob
|
|
|
|
|
i made a window service haveing window service controler and the window service is also listening Web service from Server.... There is also the timer "tick" and "Elaspsed" used in window service and service controler.... The Service controller is working right but after some time (no spicfic time) Try Catch message appear
that cann't stop New Service (service name) on computer qasim(system name). After this the time are not updated(which i mention in web service that should update) and the service is running and when the exe is running again it work properly but after some time the same situation happen as mention earlier.....
Please Help me some one i m working on it for more then a week......
Qasim AFridi
i am here to learn from u peoples
i am a student and doing my bcs and i am in my last year and wana make some work in vc++
so i wana make any help form here so that is why
|
|
|
|
|
I guess that means this question belongs in the ASP.NET forum ?
Why are you asking us instead of reading the docs for the toolkit ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Thanks dude, I expected answer not your anger
|
|
|
|
|
jebin k wrote: I expected answer not your anger
Anger would imply emotional involvement. Christian has spent too much time here to get worked up about something as unimportant as this.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Actually, I am trying to help. If you post in the right forum, more people who can help, will see it. This is especially important when you're hoping to find someone who is using the same framework as you ( i.e. only a subset of people here ), to avoid having to read the docs.
Christian Graus - Microsoft MVP - C++
"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, im here again. i created simple console application which logs my documents history activities.and
it runs in hidden mode,it starts when i double clicked.
successfully compiled and it is working fine.
Questions here is:
1. I want run this console to start Automatically without clicking.
2. And also i need to make this application to work in fully invisible.
(example; assume that console application currently is in a folder, when i open this folder it should run automatically in INVISIBLE mode.
thanks and great to one that help me.
so much of happy ending...
|
|
|
|
|
go for windows service than console application
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
You launched another thread on this subject two days ago.
This is what you can do to have it invisible:
- forget about Console app, it shows a Console by default, and would require P/Invoke
to become invisible after it has been visible
- create a Windows app and modify it such that it does not (initially) show its main form;
the ApplicationContext class helps you do that.
- you may want to choose a Windows service, depends on whether it should run also before
someone got logged into Windows.
This is what you can do to have it launched automatically:
- if not a Windows service, put a shortcut to it in your personal Startup folder
- if a Windows service, read MSDN (maybe here[^])
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hi, is there any simple way or code that i can use to convert a decimal into a hexadecimal?
Thanks in advance
|
|
|
|
|
I dont think there is any inbuilt function for these
you need to do it manually
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Hello,
this[^] looks promising!
All the best,
Martin
|
|
|
|
|
There is no direct conversion.
First parse the decimal string into a numeric value. Example:
string dec = "123";<br />
int num = int.Parse(dec);
Then format the number into a string in hexadecimal format. Example:
string hex = num.ToString("x");
You can specify the number of digits you want in the hexadecimal number:
string hex = num.ToString("x4");
---
single minded; short sighted; long gone;
|
|
|
|
|
int value = 15;
string hex = string.Format("{0:x2}", value);
Console.WriteLine(hex);
Console.ReadKey();
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
My program needs to create a child process to execute some task in.
What should I use for the communication between the parent and child process?
Using .NET Remoting with TcpServerChannel displays a Windows Firewall warning. It is an requirement that no such warning is displayed. I get no warning if I use a TcpListener with LocalAddress=IPAddress.Loopback, but how can I use that TcpLiostener with remoting?
Optimal would be if I could use .NET remoting around a stream I create myself. I don't want the discovery / re-build lost connection / etc. features.
|
|
|
|
|
Hi Daniel,
Have you looked into named pipes? There is a codeproject article[^] (multiple parts) on it.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Named pipes just give me a stream like I get with TcpClient, but how can I use .NET Remoting on a stream?
|
|
|
|
|
There is an article on doing that here[^].
If you are not tied to .Net Remoting, you could also simply serialize the object you wish to send to an array of bytes, send the bytes over to the child process, and then deserialize the object. This would require that both the parent and child process have visibility (e.g. reference) to the object type. Where as with remoting a proxy object (that doesn't actually have any implementation) could be used by the child.
Let me know if this helps or not.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hi,
I have an mdi program.for this program I must use splitContainer so when I want to show child form it doesn’t appear however child form was created. So for solving this problem I added child form to the splitContainer panel. My code is like this:
<br />
Form1 frm=new Form1();<br />
frm.MdiParent=this;<br />
splitContainer.Panel1.Controls.add(frm);<br />
frm.show();<br />
Now my child form was shown but when it gets focuses its titlebar was inactive yet. I mean it gets focuses but the child form titlebar doesn’t change to be active.So user who will work with this program doesnt know if it gets fouses or not.
What is my wrong for this happening?!
Does it another way to show child form when we have splitContainer in mdi Programs?
|
|
|
|
|
You're using two things that cannot work together. You're treating the child form as both and MDI child and as a Control. You only do one, not both.
If you're going to put this form into a Panel control, you have to treat it as a Control and not a form that has no parent (or the parent is the Desktop window.) You cannot have it as an MDI Child. But, in order to treat it as a Control, you have to tell the form that it is no longer a top-level form.
Form1 frm = new Form1();
frm.TopLevel = false;
splitContainer.Panel1.Controls.Add(frm);
|
|
|
|
|
Hi
Tell me what should be the best format for recording as well as transmission of video over LAN.As in my application case vidoe format is .avi but for transmission it is 2much heavy.
Try to Reply ASAP
Regards,
Shanzay
|
|
|
|
|
DeepOceans wrote: .avi but for transmission it is 2much heavy.
It's not really that bad, unless someone has dial-up. Maybe do something with breaking the .avi into smaller chunks and stream it.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Hi all,
Can anyone give a tip on how to construct this array, or something with the same effect?
Each row in the array will have two columns containing string values, and a third column which is an array of strings. Each row might have different numbers of values in the third column's array.
Thanks,
Jason
-- modified at 5:04 Tuesday 25th September, 2007
|
|
|
|
|
Well, you could create your array with [n][3] dimensions. However, a better bet would be to create a class which encapsulates the items in your list, and then wrap it up with a generic list. Modified in response to your changed requirements:
public class MyClass
{
private string _field1;
private string _field2;
private List<string> _field3 = new List<string>();
public string Field1
{
get { return _field1; }
set { _field1 = value; }
}
public string Field2
{
get { return _field2; }
set { _field2 = value; }
}
public List<string> Field3
{
get { return _field3; }
set { _field3 = value; }
}
}
... private List<MyClass> list = new List<MyClass>();
public void Add(MyClass item)
{
list.Add(item);
}
-- modified at 7:20 Tuesday 25th September, 2007
Deja View - the feeling that you've seen this post before.
|
|
|
|