|
question if i create a simple read porter reader program right and i goign to wirite the data to a database will there be any time delay issues if it is implemented on a pbx system that has a high volum of calls????
is there anything i can do to prevent a errorr if a error is possible because of this situation
kenny
|
|
|
|
|
keroed_edmond wrote: implemented on a pbx system that has a high volum of calls
Since I don't know what a pbx system is I wouldn't know. If written correctly I wouldn't have thought so, always keep in mind that RS232 ports have a very high interrupt priority since they don't care if data is received correctly, if you're too slow to do anything about it then that's your problem.
You'd just have to experiment and optimise things appropriately, I don't have an overview or any information on your system so can't help you I'm afraid.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
yow question right the program i wrote to read from the com port works when i try to use itto read from norton smdr right, the data format is wrong because i bulding it for a mitel smdr but thats cool ijus wanted to make sure thatit was readig from the port but when i try running it on a mitel smdr i dont get anything its like it is not even reading from the port i am sure t opens the port becase if i try to run hyper terminal i get an error saying the port is already been opened so iknow my programm has opened the port, but its the reading that giving the problem have u ever encountered thi problem before? or heard fo this problem
u know any possible hints to what may be wrong
kenny
|
|
|
|
|
You're probably not talking to the Mitel SMDR properly, since I've never heard of one of these, much less know what protocol they use I don't know.
There should be some diagnostic command that you can send to the Mitel to get it to respond, e.g. modems have some sort of "OK?" command which they respond to with OK to show that it is up and running, have a dig through the documentation for something like that.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
oh cool u have any ideas what i should check out to see if i am communicating properll with the smdr?? are the other things other than the baud rate,port name,parity, and stop bits????
kenny
|
|
|
|
|
All those should be defined in your documentation for the smdr. There should be a simple "OK?" -> "OK" test message or something similar as one of the command, just to ensure comms are working correctly, see if you can get this working first (I mean even the Lego Mindstorms has this!).
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
Hi, i was wondering if it was possible to rightclick an item in a listview and display a menu.
for instance rightclicking an item in a listview and then be able to click "delete" to clear the specific item
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
|
I am using a default DotNet 2.0 dataset that maps to a connection string in my app.config file.
<add name="PDS.LSS.Properties.Settings.StateConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\DataStore\LS_Shell.mdb;Persist Security Info=True"
providerName="System.Data.OleDb" />
I need to change the datasource for this connectionstring on the fly when a user selects "Open" from my menu. I already am catching the path values etc for the datasource string but I just can't find the right method to change the datasource.
any suggestions??
Thanks all!
D
You are only as good as your last project.
|
|
|
|
|
I'm trying to get a product to market quickly and need a suite of tools to not only make my app look good but provide some extra features. There's soooo many on the market, but which one(s) will give me value for money
I need
- basic outlook 2003 style controls, menu's, tab folders
- A date control that handles null dates
- A calendar/diary control
- charting
- Filterable & Grouping data grid
- reports ( I've used crystal with out any problems, but is there anything as good where i can create and deploy reports with ease??)
Regards
Andy
-- modified at 16:01 Thursday 1st June, 2006
|
|
|
|
|
Hi,
I am trying to write a WIndows GUI app that access a share on a remote system. both systems are in a workgroup and do not know about each other. All I need to do is to check the date of a file on PC2 via the share
ie.
PC1 to access \\PC2\Share\file.txt <check the="" date="" created="">
In my Windows GUI App I have two fields for a user ID and password to be entered, a text label for the results and a "Go" button to start the process.
I have seen many examples of how to use the impersonate option in asp but I am look for a way to use the same function in a GUI app.
I am aware that I need to use a local account on PC2 for PC1 to use but how do I pass the user info with out being prompted with a windows login prompt???
Hope you can help or point me in the right direction.
Paul
|
|
|
|
|
Hi Paul,
Here's a quick example, hope it'll work for you.
I used ProcessStartInfo and specified user credentials in SecureString These two classes are well documented, so I didn't provide "my version" of documentation.
using System;
using System.Security;
using System.Diagnostics;
using System.Reflection;
namespace RunAsTest
{
class Program
{
static void Main(string[] args) {
StartProcess("WorkGroup", "User", "password", @"C:\windows\notepad.exe");
}
private static void StartProcess(
string domainOrWorkgroup,
string userName,
string password,
string exeName) {
char[] chrPass = password.ToCharArray();
SecureString securePass = new SecureString();
for (int i = 0; i < chrPass.Length; i++) {
securePass.AppendChar(chrPass[i]);
}
ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = false;
psi.UserName = userName;
psi.Domain = domainOrWorkgroup;
psi.Password = securePass;
psi.FileName = exeName;
psi.WorkingDirectory = System.Environment.GetEnvironmentVariable("SystemRoot");
try {
Process.Start(psi);
}
catch (Exception e) {
Console.WriteLine(e.Message);
}
}
}
}
Let us know how you get on with your app.
Alex B. Clarke
|
|
|
|
|
Thanks for your responce Alex, however its not what I am looking to do.
From what I can gather the code enable you to start a process/service on another system.
I am only looking to read the file details from the other system.
or is it me not fully understanding your reply.
I have PC1 which needs to access a network share on PC2, both PC's are in a workgroup.
PC1 need to login. Once PC1 is logged inI then want to read the Time and Date stamp from the file to when it was created.
I have 4-6 different systems that this needs to be done to. each system should report back the details from the file and output this to the text label within the App.
I am trying to pass the user login ID and password to the system without being prompted to supply them each time.
However you code came in useful for something else.
Paul
|
|
|
|
|
Hi Paul,
Thanks for your mail - it got me thinking - and working .
I did some research and came up with a possible solution.
Please have a look at my article on CodeProject and let me know if this is what you were looking for.
User Impersonation in .Net
I was not sure how to refernce articles URL on this site, so if the above link gets you nowhere, I published it on my site too where you should be able to get it User Impersonation in .Net
Alex B. Clarke
-- modified at 14:03 Tuesday 6th June, 2006
|
|
|
|
|
We are working with mainframe dates which are in the format of YYDDD where DDD is the day number in the year. Is there a simple way of doing a date conversion to Gregorian in the 2.0 framework?
thanks.
|
|
|
|
|
I don't think Gregorian has anything to do with this.
Try this:
<br />
<br />
int myDate = 06120;
<br />
<br />
int myYear = myDate / 1000;<br />
int myDay = myDate % 1000;<br />
<br />
<br />
DateTime temp = new DateTime(myYear, 1, 1);
DateTime myResult = temp.AddDays(myDay).Date;
<br />
myResult will contain a valid DateTime object that should have your value.
You may be able to combine some steps and do this all inline. I broke it out to demonstrate the method. If you do munge, make sure to watch out for casting.
Stephan
|
|
|
|
|
Lol, be both thought of "06120", this really scares me
But you need to subtract 1 from the AddDays() function, because 1/1/yy is already one day passed.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I'm not sure this is the best solution, but it works for me:
string strdate = "06120";
DateTime date = new DateTime(Int32.Parse("20" + strdate.Substring(0, 2)), 1, 1);
date = date.AddDays(double.Parse(strdate.Substring(2, 3))-1.0f);
Console.WriteLine(date.ToString());
Don't forget to add some exception-handling. Also I added the "20", since your format only has the last two digits of a year given.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
How come this gives me a compile time error?
internal bool Foo
{
get { return this.foo; }
protected internal set { this.foo = value; }
}
Error 1 The accessibility modifier of the 'xxx.Foo.set' accessor must be more restrictive than the property or indexer 'xxx.Foo'
|
|
|
|
|
Unlike the assumed implication, protected internal means "protected or internal," not "protected and internal." That is, something that is protected internal will be accessible to either anything in its assembly or anything that is a subclass of it, not only to things that are subclasses within the same assembly. Therefore, protected internal is less restrictive than internal, hence the error.
Try:
<br />
protected internal bool Foo<br />
{<br />
set { this.foo = value; }<br />
protected get { return this.foo; }<br />
}<br />
That may work better.
Stephan
|
|
|
|
|
Hi all,
I have installed the software google desktop in my pc now i want to display the results found by google desktop in my own form i.e. i want to pass the query to this software and then get the documents found by it and the summary of the document
how can i achieve this using C#...
looking forward for help
Regards,
|
|
|
|
|
I want to konw it also,hi hi.
|
|
|
|
|
hahahaha well i already knew that but i really needed it so i thought y not just give it a try...anyways have fun byee
|
|
|
|
|
I have a wsdl for a Java Webservice and the .NET wsdl tool will not generate a proxy class. I guess the problem was that the wsdl was referencing xsd that the tool did not understand. Changing the return type to String made it to get the proxy. But when I send message the Soap wrapper adds an element by the parameter name after the Soap body. I tried the Use and Parameter Style set to 'Encoded' and 'Bare' resp. but that only make the element to be called 'String'. I am not sure why this happens and how to prevent it. Any help is appreciated.
Thanks,
Vishy
|
|
|
|
|
Hi all
I have a form with a datagridview and a couple of fields on it. These are bound to a dataset.
When I select a record in the datagridview, the correct information shows up in the fields.
Now I want to give the user a visual indicator that data on the form has changed.
To do this I have put a panel at the top of the form. The idea is :
if the data has not changed the panel is green
If the data has been changed by the user, the panel goes red.
This is causing problems.
I had the event to change the colour in the textchange event. Problem: when i move to the next record, the text changes and I get a red flag when the user has not changed data.
I can work around this using the keypress event for text fields, the click event for checkboxes as these are not triggered when the text for the next record is displayed.
What do I do with the dropdown boxes to get the same effect?
Also just noticed : If I use the mouse and select and cut the data from the text field, the keydown event (obviously) is not triggered.
Rowchange OR rowchanging does not get triggered until I select the next record in the datagridview
Can anyone suggest a simple way to implement what I thought would be basic functionality?
I realy would like my users to know when a single field has been changed as they change it
Thanks
|
|
|
|