|
Hi,
I'm an absolute newb at this - I'm writing software for a psychology experiment (in vb.net) and I need to have an event triggered by when the subject speaks. I don't need anything fancy (I think), just something that will detect when the amplitude of the sound coming from the microphone is above some threshold. Any ideas?
I'm really green - all the previous programming I've done has been by copy-and-paste from websites and tweaking it to get it to work, so if anyone can point me to an online bit of source-code I'd be very grateful.
Thanks!
Mark
|
|
|
|
|
My VS 2005 app will work with .NET 3.0, but defaults to .NET 2.0 if that is present. How can I make it so that it will use the latest version of .NET wherever possible, and will only revert to .NET 2.0 as a last resort?
Thanks!
|
|
|
|
|
You could upgrade to VS2008 and recompile against .NET 3.0 or change the supportedRuntime[^] element in your app.config.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Thanks for your reply! But I don't want to take away Framework 2.0 support, I just want it to prefer the newer framework when both are present. Maybe I should explain more about why I want this:
Our software benefits from 64-bit features, but we noticed than on many 64-bit customer machines, it was actually running in 32-bit mode. The reason for this was that even though their Vista 64-bit was coming with .NET 3.0 installed, at some point some other software was installing .NET 2.0 86x, and our software was suddenly defaulting to using that instead. It would be nice if we could keep our .NET 2.0 support, but still have our software prefer 3.0 when present so that it had a higher chance of running as a 64-bit app on 64-bit systems.
|
|
|
|
|
You can add multiple supportedRuntime elements. The order they are listed determines the preferred order.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Thank you very much for pointing that out. I have one more question that I wasn't able to find the answer to: Say I add elements for supporting .NET 3.5, 3.0, and 2.0, then some time after we release the app computers begin circulating that only have .NET 4.0 installed on them. Will our application lose its ability to use other versions of the framework because of the presence of these explicit supportedRuntime elements, or will it still be able to use whatever version is found as a last-case resort as it does at the moment?
Thanks again!
|
|
|
|
|
Winkles wrote: Will our application lose its ability to use other versions of the framework because of the presence of these explicit supportedRuntime elements, or will it still be able to use whatever version is found as a last-case resort as it does at the moment?
I'm not 100% sure about this, but I believe that will be the case. You would want to try and do some testing to confirm that, however.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Is their actually a problem with a .NET 2.0 not being upgraded if it was built as a .NET 2.0 application?
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have written three groups of classes that implement custom columns and editable cells in a DataGridView. GridMaskedEdit implements a masked edit control, GridNumericCell implements a custom numeric text box based on the framework's TextBox, and GridDate implements a custom date control hosted in a UserControl.
Imagine if a standard DataGridTextBoxColumn and one of each of these is added to a DataGridView. Add a couple of blank rows. Increase the height of one of the rows.
Enter the DataGridTextBox column and begin to edit: the carat positions itself in the left middle. When you leave the cell, the text remains aligned in the left middle.
Enter the GridNumeric column and begin to edit: the carat positions itself to the right middle (where it belongs.) When you leave the cell, the text remains align in the right middle.
Enter the GridDate column and begin to edit. The date control's editing interface appears docked to the top of the cell and is bordered in light blue (the control highlight color?) When you leave the cell, the control disappears and the text is repositioned to the left middle.
Enter the MaskedEdit column and begin to edit. The same thing that happens in the GridDate column happens here: the edit control is drawn at the top of the cell and is bordered in light blue. When you leave the cell, the control disappears and the text is repositioned to the left middle.
Basically, I want the date and masked edit controls to appear without a border, in the same middle position where the text will go. I have compared all the code for these three column/cell/control groups, and it is all the same. Commenting out the alignment code in the GridNumeric set (the only meaningful difference between it and the others) only changes the alignment of the text: it still appears with no border and centered vertically.
This kind of project seems very common, as CodeProject has lots of examples. Any suggestions on where to look for a solution?
|
|
|
|
|
After installing Visual Studio 2008 w/ SP1 and .NET 3.5 SP1, I went to use some of the functionality found in 3.5. Two of the DLLs that I was going to reference from the 3.5 framework were not in c:\windows\assembly. I am seeing the version 2.0 DLLs but not the 3.5 versions. I have uninstalled the frameworks and visual studio and reinstalled numerous times in different orders to try and resolve this issue. Has anyone else have this issue and know a solution or could point me in the right direction? I have googled the heck out of this to no avail.
The two DLLs that I have noticed ( I am sure there are more)
System.Deployment
System.Configuration
As a footnote, I am seeing some of the 3.5 DLLs in the assembly folder like:
System.Data.Linq
System.Core
System.AddIn
Thanks,
Confused
|
|
|
|
|
It is my understanding that the .Net Framework 3 and 3.5 are built on version 2. I think (but I am not certain) that some of the files are not updated to version 3.5, instead using the older version 2 files. I would suggest creating a new project in VS that targets version 3.5, and take a look at the file versions it references.
|
|
|
|
|
Thank you for your response.The project is a brand new project with the 3.5 framework targeted. The MSDN states that the two DLLs that I listed have 3.5 version for them. Was just curious if anyone else had ran into this before. I guess the next step is to backup and start from scratch.
|
|
|
|
|
Hi All,
As I have to develop a testing application, my lead said me to use some thing he pronounced as "Team". Is there anything with this kind of name in .Net components. Please advice me I have to do research on it.
Thanks,
Aleem Mohammad,
NIIT technologies
abdul.aleem@niit-tech.com
|
|
|
|
|
|
Then why didn't you ask your lead exactly what he was talking about instead of asking the public what he may have been talking about?
|
|
|
|
|
You will get lots of Test Atmosphere there in Visual Studio Team System Suite.
If you have that one, just try that ....
Good one for Testing
Abhishek Sur
|
|
|
|
|
Hi All,
Can anybody please help where "_" should be used in declarations and please tell me give me a link to get the best coding conventions and practices for VB.Net and C#.Net too. Please help me how to get it.
Thanks,
Aleem Mohammad.
NIIT technologies
abdul.aleem@niit-tech.com
|
|
|
|
|
What does coding conventions and practices have to do with the .NET Framework?
Before you worry about something as specific as that you might want to elevate your abilities in some other important areas such as this one.[^]
led mike
|
|
|
|
|
indian143 wrote: Can anybody please help where "_" should be used in declarations and please tell me give me a link to get the best coding conventions and practices for VB.Net and C#.Net too
The basic idea of having conventions is to have uniformity among the code written by different developers in a Team. The ulitimate goal is to make code Readable.
Still, if you want to look for conventions...Google it.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: The ulitimate goal is to make code Readable.
Well...the ultimate goal is really to have the code look like it was written by one person in a single session. Unfortunately, that is a complete ideal and isn't 100% practical in the real world without resulting to dogmatic and dictatorial enforcement.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Take a look at the Framework Design Guidelines[^].
That being said, the goal of a coding style is to create code that is easily readable and maintainable by any developer by creating a consistent "look and feel" and structure.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
|
|
Hi friends
i want to save video stream from webcam as i have developed a communication system which is similar to yahoo or msn messenger. Well i want to add a new feature that is video saving from webcam in any format and i m fully failed in it. well someone please help me out or email me on my id love_never_die_f@yahoo.co.uk
BuIlT fOr ThE kIlL
modified on Thursday, August 28, 2008 9:10 AM
|
|
|
|
|