|
crusher_shark wrote: how can I change the format of the new file "sound.wav" to append the other sounds ?
Please don't keep asking the same question over and over. The answer remains - you need to read up on the wav file format, and then put apart your data accordingly.
crusher_shark wrote: excuse me what is the advantage of mp3 rather than wav ?
1. The initial files are smaller
2. WMP will almost certainly play your files just as quickly as your joined together wav solution ( will probably do the same for wav files, actually ), without the sort of code you're trying to write at the moment.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Really I cann't thanking you ..
I hope to learn English very well ...
I am so sorry If I cann't explain my questions in a good words ...
crusher_shark
|
|
|
|
|
Hi!
What you're trying to do isn't possible so easily - WAVE audio is not just a bunch of bytes you can concatenate and expect to hear the single parts without interruption.
I guess you'd have to create your own WAVE file (or memory stream) but pay attention to adjust the wave header for each file you append.
IIRC, there's at least one article here on CP with a class for reading and writing wav files - try searching for it.
Regards,
mav
|
|
|
|
|
Hi!
How to get the ip address of the peer socket (client)
to which the async server socket is connected to in .Net (C#)?
Correlate to MFC's CAsyncSocket::GetPeerName()
Gywox
|
|
|
|
|
You get get peer socket by calling Accept (or e.g. ReceiveFrom ).
The IP is ((IPEndPoint)socket.LocalEndPoint).Address
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi All,
Can anybody tell me how to get detailed information about what activities are being done by an application. For example, if i want to track for which sites are being accessed and for what amount of time, then how will this be possible in C#. I have read the General - ProcessController sample code from the samples directory under C#, but it only provides basic info. about the processes. I want to track each and every activity of all processes.
Please help me. Thanks in advance
Anant Y. Kulkarni
|
|
|
|
|
There is nothing that exposes the information you want in the kind of detail you want.
You'll have to kludge something together to monitor how long a web page has been open on a particular browser window. Basically, you monitor the Process list and keep track of how many browser windows are open, what their current URL's are, what their primary Window handle is, and at what time you saw this information in your list. You can use the Process class for this and the Shell.Application object. Google for it.
Now, you have to poll the Process class for the current list and see if the number of Shell windows has changed, or if any of the IE Window handles have changed, or the URL's have changed. Whey do, you'll have your information.
Oh! This will also have the side effect of monitoring Explorer windows too.
For other processes, well, you're really S.O.L. because you there's just no way to monitor what every process does. There is no API for this, unless you want to write your own debugger, and debug every process on the machine at the same time. NOT a good idea!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have written a program for getting all information about the start time, end time and other details of a process. But now i have a query how to get the current URL of an IE process. I didnt got any information about Shell.Application object. Is it of C# or VB?. Can you please help me with a code sample for getting URL information from an IE process. That will be a great help for me.
Thanks !
Anant Y. Kulkarni
|
|
|
|
|
The SmtpClient does not seem to call the QUIT Command to close the connection to an SMTP server, is this usual behaviour? It appears to keep the connection open between each mail that is sent.
I would assume that at bare minimum it should call QUIT when the application that is using the SmtpClient object is shut down.
Regards,
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
It's also impolite to cross-post in multiple forums.
See my answer in the .NET Framework Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: It's also impolite to cross-post in multiple forums.
Yes, Apologies after posting in the C# forum I felt that the question would be better asked in the .NET Framework forum.
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Hello,
I have an iX104C2 Tablet PC with integrated Siemens MC-55 Modem and Vodafone SIM card.
Now, I want to know if there is a possibility to get a connection to Vodafone in my C# program an how to handel this. Are there any DLLs from Vodafone or anything else?
Thanks
|
|
|
|
|
The connection should be established via GPRS!
|
|
|
|
|
Hi,
I have two applications running parallely. In both applications my classes are inherited from Microsoft.WindowsCE.Froms.MessageWindow
class .One is sending message and the other will process the message.How to get handle of the class which is processing a message,since I need to set handle of the class which process messgae.
|
|
|
|
|
hi guys,
need help... i need to know if a specific application (eg Microsoft Word etc) is opened... how can i catch or know that event was fired programmatically? tnx... btw im using c#...
-- modified at 11:05 Wednesday 11th January, 2006
|
|
|
|
|
it is easy if your program is working when one tries opening any app. make a system tray docking application and loop through processes that are loaded; or subscribe to processpool events. for more info search at codeproject for singleton pattern sample where it looks for a process with the same name. your code is similar...
or by vs toolz for office (vsto addin) for vs2005 has many plugin features.(accessible on msdn office developer center u need licensing...)
choose whatever uwant
Mikail Çetinkaya . The C# DEveloper
|
|
|
|
|
It can be done by writing your own service. A windows service can be configured to automatically start at system boot. then the service can know about any other service running on the same / remote computer. A tutorial is available for writing services in the MSDN library. Search for "Writing Windows Services". There is also a sample program for this type of requirement in the C# samples directory. Or you can download that sample from msdn.microsoft.com. Find more help about these classes -
ServiceController
Process.GetProcesses(strMachineName) this method returns Process[] which can be used to know information about the process !
Anant Y. Kulkarni
|
|
|
|
|
I cannot say whether there is an "event" way of solving this. But what you can do is you can spawn a separate thread from your application, which will periodically call Process.GetProcessesByName() method, and you can pass in the process name for Microsoft Word (or any other process you want to wait on). Definitely if you receive an "event" that would be less complicated, but I doubt whether that is at all possible. No application will let you know that it has started - YOU have to find that out!
Koushik Biswas
|
|
|
|
|
Good day ladies and gentlemen.
I am writing an app that runs on a thin client hardward platform (written in C#). The app is denied access to the priamry drive on the server to which I have no control. I do have control to the "My Documents" folder.
I am seeking knowledge on locating the "My Documents" folder by code so that I may serialize/deserialize data to it.
All suggstions are deelpy appreciated.
"We succeed in enterprises which demand the positive qualities we possess, but we excel in those which can also make use of our defects."
Have a great coding day.
Regards,
Tony D. Abel
|
|
|
|
|
|
You are looking for Environment.GetFolderPath()[^]
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
If you serialize/deserialize data for the purpose of your application, you should think about putting it into the user's application data directory whose path you can get by Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData ) .
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I use a panel to simulate a scollbar put when i move it, just flicker.
How can i avoid this?
|
|
|
|
|
Use double buffering. There are several articles on this site and on the web relating how to do this.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
I am quite a novice at C# and have been making regular contributions to this board as a result. I was just wondering if there was a function to find a number in a string? Any help will be appreciated!
|
|
|
|