|
actually i didnt know where to post it, its network related but i couldnt find network category
|
|
|
|
|
So why on earth did you pick C#? It looks like you just picked a random forum, which isn't going to get you an answer. You might as well have asked this in Pig Farmers Weekly. You could have chosen the General IT Issues or, more appropriately, the Hardware and Devices forum.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
i did it because i wanted to know - also - how to connect to a proxy via C#
anyway-Mr.O'Hanlon-dont you think by the time it took you to write down those not-so-funny rants and cheap jokes, you could've answered my question instead?
a true professional would have answered my question, or at least guide me to the correct forum
so next time, if you do know the answer,by all means, if you dont, please refrain from making useless comments..other members are not here for the jokes
|
|
|
|
|
nicromonicon wrote: i did it because i wanted to know - also - how to connect to a proxy via C#
Then you should have stated that, and not asked an unrelated question. We can't read your mind for you.
nicromonicon wrote: anyway-Mr.O'Hanlon-dont you think by the time it took you to write down those not-so-funny rants and cheap jokes, you could've answered my question instead?
No I don't. This isn't the right forum for this - think about it for a minute. People search these forums for answers to questions; why do you think that somebody would look for a network question in the C# forum? It makes no sense.
nicromonicon wrote: a true professional would have answered my question, or at least guide me to the correct forum
And had you read my reply you'd see that I suggested two possible forums for you.
Anyway, I'm not going to bother reading your replies now - whenever somebody replies in the way you just have, it's apparent they are incapable of a rational dialogue.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
nicromonicon wrote: other members are not here for the jokes
Oh yes we are 
|
|
|
|
|
In Crystal report viewer, is there any way to rename the tab [Main Report] showing at the top of the report to any name which I will decide?
|
|
|
|
|
i have the following field:
trxn_date
trxn_category
trxn_description
trxn_total_amount
trxn_discount_amount
trxn_net_amount
I want to display a monthly report (all above excep trxn_category) based of the selected month so it will list by days from 1 to last day of the month.
at the bottom, I want to display the list by category for the whole month (without trxn_date and trxn_description) so it will be:
trxn_category
trxn_description
trxn_total_amount
trxn_discount_amount
trxn_net_amount
can you please guide...
|
|
|
|
|
Let me know what reporting engine you are using... Is it Crystal Report, Microsoft Reporting (RDLC) or any other??
In any case just make grouping to those elements and place the group elements in the group footer. Use appropriate functions, and I think it will adjust automatically.
|
|
|
|
|
Hi guys,
I have this code in my form1_load event:
RegistryKey licenseCheck = Registry.LocalMachine.OpenSubKey(@"software/openorganise");
string licenseCo = licenseCheck.GetValue("tlb").ToString();
DateTime licenseDate = Convert.ToDateTime(licenseCo);
if (licenseDate.AddDays(30) == System.DateTime.Now)
{
MessageBox.Show("Your OpenOrganise License Has Expired. Please Purchase A New One.", "OpenOrganise Message.", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Application.Exit();
}
now, ive got a config value that sets it to write to a file if its the first time run or not, etc etc, this works fine, in the event of a first run i have:
RegistryKey licenseKey;
licenseKey = Registry.LocalMachine.CreateSubKey(@"Software\openorganise");
licenseKey.SetValue("tlb",DateTime.Now);
Registry.LocalMachine.Flush();
However, when running the application i get: "object referance not set to a instance of a object"
Im stumped to as why. I even went and manually made the reg key.
thanks,
Ben.
|
|
|
|
|
Hi,
some remarks:
1.
exceptions tend to contain a lot of information, however you need to look at all of it, i.e. use Exception.ToString() instead of Exception.Message
one of the pieces of information it offers is a filename and linenumber; that would point straight to the culprit line. Also teach your IDE to always show line numbers in edit windows, see here[^].
2.
Recent Windows versions don't allow a regular user to access/modify system settings that would extend to other users; the LocalMachine registry hive would be in that category.
3.
Your expiration test needs a less than comparison, not an equals. DateTimes seldom are equal as they contain information up to the tick (one tenth of a microsecond).
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I can only speculate on this but if the statement
licenseKey = Registry.LocalMachine.CreateSubKey(@"Software\openorganise");
fails for any reason then licenseKey will be uninitialised.
|
|
|
|
|
Ben Magee wrote: OpenSubKey(@"software/openorganise");
Ben Magee wrote: CreateSubKey(@"Software\openorganise");
Should these both be backslash?
Alan.
|
|
|
|
|
Thanks for the feedback, I will look into all these issues now.
Could you please give a example of a lessthan statement in the current context im using?
thanks,
Ben.
|
|
|
|
|
if (1 < 2) MesageBox("one is less than two");
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
After changing my registry edits to CurrentUser and changing to backslashes im still getting my exception error.
I also changed
System.DateTime.Now;
to
system.DateTime.Today;
would that work any better?
Cheers,
Ben.
|
|
|
|
|
use the line numbers as I've told you, and learn to debug your code yourself. This thread already is a lot longer than the code it is about...
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Ben Magee wrote: would that work any better?
Would what work? And better how?
You need to show the extract of the code where the problem occurs, and the full description or text of the exception. The question above really makes almost no sense whatever, and even less in the context of your original question.
Read through a few more of the posts here to get an idea of the sort of questions that get resolved quickly.
|
|
|
|
|
Hi all,
I am using DirectSound to play wav files, one at a time or several together and it is all ok:
...
Device device = new Device();
device.SetCooperativeLevel(this, CooperativeLevel.Priority);
BufferDescription bDesc = new BufferDescription()
...
SecondaryBuffer sBuffer = new SecondaryBuffer("Wavefile.wav", bDesc , device);
...
sBuffer.SetCurrentPosition(0);
sBuffer.Play(0, PlayFlags);
...
sBuffer.Stop();
If i want to play multiple wav files (very short - max 5 seconds) that each start at a defined time and can overlapp eachothers (Like all mixer applications - Adobe Audition ...)
ex:
Wav1 start at time 0 second and ends at time 4 seconds,
Wav2 start at time 2 sec and ends at 7 sec,
Wav1 start at time 3 sec and ends at 7 sec,
Wav3 start at time 5 sec and ends at 6 sec,
.....
Using several SecondaryBuffers and playing them at the same time will play all the files simultaneously but not in a controled time order (which is very important).
How can i control the SecondaryBuffers to play simultaneously these short wavFiles at a specific time ?
Thanks for your reply
|
|
|
|
|
I will create a class say WavFile which represents a single wav file. This will have methods like Play() and Stop() and properties like StartAt and EndAt . To control all wav files, a WavController class can be created which maintains a collection of wav files that has to be played.
WavController maintains the start time and in a loop it calculates the elapsed seconds. Each time the wav file collection will be queried to get the wav files that matches to the elapsed seconds. You need to get objects that has to be played and stopped for the elapsed second. Call Play() or Stop() on those objects which will eventually call DirectSound's stop/play methods.
WavController should run the loop on a separate thread and it should exit safely when all files are played rather than aborting the thread.
|
|
|
|
|
Thanks for your fast reply,
I am new to DirectSound, so sorry for my beginner questions. I wonder if your described solution using threads is the "only one" to do this:
For example, if there is a way in creating multiple SecondaryBuffers and then "mix" them all in one Primary buffer (at the right time) and play the Primary buffer ?
or if is there another solution!!!
Thanks
|
|
|
|
|
Zorro000 wrote: f there is a way in creating multiple SecondaryBuffers and then "mix" them all in one Primary buffer
Like you, I don't have much knowledge on directsound.
|
|
|
|
|
hi all... me trying to make a C# appln that runs in two systems simultaneously... if an user A gives the ip address of a user B running the appln and press a button Bu the userB must get an alert saying that the button BU is pressed by usr A... would someone help me with this coding???either tcp or udp will do... pl help me out with ths part... thanx
|
|
|
|
|
You asked this once already.
|
|
|
|
|
No one is really going to hand you over for coding for such an application, you can google peer 2 peer .net messaging or something similar to try to find something that is similar and opensource, if your job/teacher has a deadline then go to www.rentacoder.com and don't try to low-ball the coders!
|
|
|
|
|
Unless it's all over LAN, you will have a NAT problem.
(yea I know that's not an answer, it's more of a tip)
|
|
|
|