|
Ms Cindy, I would report this but it is neither spam or abuse, just incomprehensible. Change you profile to reflect your country of origin, your first language is obviously not english. Get someone to help you who knows english!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i agree with you. OP is posting question with less information and may be he is not good with english.
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
I think it might be spam.
|
|
|
|
|
...
modified 1-Dec-12 10:27am.
|
|
|
|
|
Not a question - please delete it.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
once you add a reply, you can't delete
|
|
|
|
|
Ah - but I can delete this.
You can then delete yours, me mine, you yours, and so on.
Or now that your message text is gone, it doesn't matter anyway!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
I'm going to organize a solution in VS2010. In the solution Explorer, I would like to see a console project and a library folder containing many stand alone class projects.
To visualize this structure, i should add a "New Solution Folder" and add all my class projects here. Is it possible to use "New folder" instead of "New solution Folder", to put in side project?.
My doubt is that using "New Solution Folder" I'm creating a multi solution ? MSDN suggest not to use a multi solution if not strictly necessary http://msdn.microsoft.com/en-us/library/ee817674.aspx[^]. In my case it is not necessary, I only have a need to "see" a folder in the solution explorer to group my class library
What do you think?
modified 1-Dec-12 2:27am.
|
|
|
|
|
TheGermoz wrote: My doubt is that using "New Solution Folder" I'm creating a multi solution ?
No, just creates another extra subfolder.
I think you're mixing up the terms "solution" and "project". You'd have a single solution, with multiple projects - and that's what most of us will have.
|
|
|
|
|
That's fine. My doubt come from the wording used in VS: "New Solution Folder", so I thought I'm creating really a new solution, but it is rally a "New Folder of Projects".
Is it right my note? (I'm checking if I correctly understand)
|
|
|
|
|
A solution folder is just a folder at the solution level that you can use to organise things in. They could be projects or they could be things such as common DLLs that you want to refer to across the solution.
|
|
|
|
|
Thanks,
I note that
using "New Solution Folder" you can add in project and can be used only at higher level than project. The folder is not really created in the HD. The name of solution folder can not use special characters such as "#" (strange... If I add a Folder I can...)
using "New Folder" can be used inside a project and can contain files. The directory is really created in the HD and you can use special character such as "#"
Obviously I needed a mixed solution.. I need to use special character and I should contain project.. Not lucky...
|
|
|
|
|
Hi C# Guys,
is there way to find the filename that relates to network port?
so, I can enumerate the network ports, but is there a way to find the file(s) that is being access that relates to that network activity?
many thanks,
P
|
|
|
|
|
If you're talking about something like a \dev\... name like you find in Linux, there's no such thing in Windows.
If your'e talking about a file being transfered over a TCP/IP connection, no. The filename is not attached to the port in any way at all.
|
|
|
|
|
is there not a chain of activity you could follow?
port -> service -> thread -> file ?
|
|
|
|
|
Not every port has activity, not every port is for files. Here's[^] a list of port-numbers, and what they do.
|
|
|
|
|
Well that changes the question a bit...
No, there is no chain like that, but you can find all the ports that are being listened to and get the process ids (PIDs) of the process that is listening on that port. You then need to enumerate the entire Windows handle table, filter out just the files that are open, get the PIDs of the owners of those handles, then match them up with the PIDs you got from the listeners pass.
This is a rather time consuming process and if you wanted to get a constant "real-time" update, you'd be using a ton of processing power because of the constant polling you'd have to do.
Oh, and all this requires admin priv's.
|
|
|
|
|
brilliant, thank you
... looks like i'll be busy for a while then!
|
|
|
|
|
I'm working on the 3 motor drivers that has their own ComPort on the computer. (yes 3 Serial Ports on the back of computer).
In the past, I've been using the do-while loops to do the Serial.Readline() to monitor the driver's response to the command. That really slows the processing and usually hangs the application very often.
I've modified the code to add the DataReceived event for each port. I've been sending lots of drivers' configuration (and gets the response back from the driver as echo as well.)
After sending all of the configuration, the other process begins.
The problem is that the drivers didn't finish sending back all of the responses before the new process begin. This caused the new process commands to be messup with communication.
Question is... how do I check if the configuration responses are completed before running the next process?
Your help would be greatly appreciated. Thanks!
|
|
|
|
|
There are a couple of ways to handle this, but it depends on how you want to work it.
The simplest solution is to set up a thread to handle each com port - that way they can use ReadLine all they want, and you don't have to worry about them hanging the UI thread or about data synchronisation. You then have to communicate between the UI and the threads - and I have no idea how complex that is for you because I don't know what you app is actually doing.
The other is to use the DataRecieved Event in the UI thread as you seem to be doing - but that has to be handled differently, because the data is not received in the form of lines - it arrives character by character (or a couple of characters at a time if the processor is busy) so you have to buffer and examine the data a bit more carefully.
Exactly which way you should go, I don't know - but without seeing any relevant code fragments, I can't tell what your code is doing at the moment, so I can't make any concrete suggestions.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
please i need to develop a video conferencing software, can anyone put me through?
|
|
|
|
|
|
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search gave 157 million hits: Google: develop a video conferencing software[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
I have created a project that works well in both Expression Web 3 and EW 4 using the preview feature.
However, when I published them to web sites. The versions published with EW3 works well Working site
However, the version published using EW4 has Internal Servet 500 error
Not Working site
The web.config files and the C# codes are provided below. I have spent days on the problem, and I am still unsure what is happening.
The following script was included in the <head> tag of my dynamic.dwt page
<script>
using System;
using System.Data.OleDb;
using System.Configuration;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strcon = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
SqlConnection con = new SqlConnection(strcon);
con.Open();
}
}
</script>
I used the following lines in the web.config file:
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|RegistrationDB1.mdb" providerName="System.Data.OleDb" />
<add name="Doughnut2002DBConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Doughnut2002DB.mdb" providerName="System.Data.OleDb" />
<add name="DetailsDoughnut2002DBConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Doughnut2002DB.mdb" providerName="System.Data.OleDb" />
</connectionStrings>
<system.web>
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
</system.web>
</configuration>
PLEASE HELP.
|
|
|
|
|
Welcome to the C#-forum; I'm a WinForms-programmer, you'd probably have gotten a better response in the ASP-forum.
Doesn't ASP.NET give a bit more "detailed" error, than the mystical catch-all? I'd guess it's the version of JET/MDAC (the Microsoft Access drivers), or the read/write permission for the internet-user on that particular folder.
I suggest you open the database in Access, and find the "Upgrade to Sql Server" button. It'll convert all tables to Sql Server-format. Access isn't really designed to handle many requests from different users, and there's no file-level read/write permission to worry about once you're using Sql Server. There's a free version available, called Sql Express.
Further, I'd throw in some logging, wrap the con.open() in a try..except, and log any exceptions.
Good luck
|
|
|
|