|
Look into Interactive Voice Response applictions and maybe the Microsoft Speech SDK. They have ways to detect DTMF signals as input. You should also look into learning VXML as most of the IVR systems use that for the call flow.
|
|
|
|
|
i want to add new channel (alpha) on my png file like photoshop does. how can i do it using C#?
please help!
|
|
|
|
|
Good Morning Everyone
i have an application in VB.net and a Functionality(dll) written in C#.i have a DLL in C# Project and i have compiled my project with release and Fetch the DLL in the release folder and paste it in the VBProject. now i want to use that C# Functionality in vb project, i went to References and i tried to Add it as .NET reference and i got the following Error.
A Reference to Motherboard.dll could not be added.This is not a valid assembly or Com Component.Only Assemblies with extension 'dll' and Com components can be referenced.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
you c# assembly is probably not CLS compliant
|
|
|
|
|
Hi thanks for the Reply
i have created this DLL in C#.NET, and copied it to the other's application folder and tried to referenced it. doesn't Visual Studio automatically make it CLS Compliant?, because the DLL was created in VS2005 and am taking it to a Project in VS2003. is there a Problem there ?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
you have to add manually this [assembly: System.CLSCompliant(true)] in the AssemblyInfo.cs of your class library, visual studio is not doing it automatically
|
|
|
|
|
The DLL is corrupt, apparently. What happens when you try opening it with ILDASM?
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
If the DLL is Corrupt, the i can delete it from the Release Folder and Compile the Problem to give me an output of a fresh DLL, then after that i do the Same thing by Copying the DLL to the VB Folder Project and go to VS and reference the DLL under .NET, still gives an Error, and do it under Com still Gives me an Error.
what wrong
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I'm attempting to code a mini processor benchmarking program(For fun )
The problem is... Marks are always 0
marks is a global int variable
string myWord = "1234567890";<br />
StreamWriter sw = new StreamWriter(@"C:\benchMe.txt");<br />
for (int j = 0; j < 1000; j++)<br />
{<br />
sw.Write(myWord);<br />
}<br />
sw.Flush();<br />
sw.Close();<br />
timer1.Interval = 1;<br />
MessageBox.Show("Test Ready!");<br />
StreamReader sr = new StreamReader(@"C:\benchMe.txt");<br />
string bob = sr.ReadToEnd();<br />
sr.Close();<br />
timer1.Enabled = true;<br />
Console.WriteLine(bob);<br />
timer1.Enabled = false;<br />
MessageBox.Show("Marks on Test: " + marks);<br />
marks = 0;<br />
<br />
private void timer1_Tick(object sender, EventArgs e)<br />
{<br />
marks++;<br />
}
Any ideas?
I was thinking that maybe the "Lag" was canceling the increment on the timer, or something...
Any ideas, anyone?
|
|
|
|
|
have you started the timer? timer1.Start(), timer1.Stop()
|
|
|
|
|
:bashhead:
-_-
Ok, now it works (Once...)
Benchmark code modified to:
private void button2_Click(object sender, EventArgs e)<br />
{<br />
StreamReader sr = new StreamReader(@"C:\benchMe.txt");<br />
string bob = sr.ReadToEnd();<br />
sr.Close();<br />
timer1.Start();<br />
Console.WriteLine(bob);<br />
timer1.Stop();<br />
MessageBox.Show("Marks on Test: " + marks);<br />
marks = 0;<br />
}
First click displays marks, second click -> x click displays 0.
So close....
|
|
|
|
|
|
You have mentioned the timer interval as 1ms. If the interval is less than 15ms (sometimes this will be more according to the processor/hardware.) it is not going to perform correctly.
This article will explain it clearly.
Timer surprises, and how to avoid them[^]
*jaans
|
|
|
|
|
D:
Never knew that!
Thanks alot!!!
- Reelix
|
|
|
|
|
I read this a couple of times, and I'm not 100% sure what all of it is doing, so forgive me if Im a little off the mark with this...
Have you looked at System.Diagnostics.Stopwatch at all?
If what you are going for is performance testing you could have something like:
const int NumberOfTests = 1000000;
System.Diagnostics.Stopwatch s = new System.Diagnostics.Stopwatch();
s.Start();
for (int i = 0; i < NumberOfTests; i++)
{
//Code to test goes here!
}
s.Stop();
MessageBox.Show(s.ElapsedMilliseconds.ToString());
(Rinse and repeat for multiple benchmarks)
Hope that helps,
Chris
|
|
|
|
|
Thanks alot!
It perfected everything
YAY!
IsHappy("Reelix") == true;
|
|
|
|
|
Glad to have helped!
Chris
|
|
|
|
|
Hi
I have to display more than one button control Within a Single column of Grid control.
How can i Achieve this? can anyone help me?
thanks in advance
bye
sri
|
|
|
|
|
Hi
You can use TemplateColumn and add as many as button within the template column.
Harini
|
|
|
|
|
Hi Sri,
I have another way to do this, we can take the following steps:
1). Make a usercontrol to host buttons, the CustomButtonControl class which inherited from usercontrol.
2). Create a CustomButtonControl instance(NOTICE: we just need one), add it into the control collection of the DataGridView, initially make it invisible.
3). Handle the DataGridView.CellPainting event to draw a textbox and button style on the cell, which make the cell looked like some kind hosting a usercontrol in it.
4). Handle the DataGridView.CellBeginEdit event to show the usercontrol right in the cell while editing, you can edit in the textbox in the usercontrol and click the button, write your logic in the Click event of the button, I just show a message box for example in this sample.
5). Handle the DataGridView.CellEndEdit event to update the cell value.
6). Handle the DataGridView.Scroll event to reset the location and size of the usercontrol while scrolling. Without handling this, the usercontrol would stay still while scrolling.
Hope this will help you in moving forward in your task .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hi,
I have an struct of BookMarkInfo ,
struct BkMarkInfo
{
public String bkMarkName;
public double X, Y, Z;
}
// Statically allocating memory for 10 objects initially
BkMarkInfo[] BkMark = new BkMarkInfo[10];
Later i need another 5 objects of same struct BkMarkInfo. How can i dynamically allocate memory for struct object?
Thanks
~Devil
|
|
|
|
|
Use List<t> instead if array
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
As Giorgi already said, use a list:
List<BkMarkInfo> BkMark = new List<BkMarkInfo>();
Use a class instead of a struct. You have made a mutable struct, which is not very practical. This, for example, doesn't work as expected:
BkMark[4].bkMarkName = "document";
When you access the struct, it will be copied into a temporary variable. The bkMarkName in the temporary variable is changed, but that won't affect the bkMarkName of the struct in the list.
Also, a struct should not be larger than 16 bytes. Yours is about twice that size.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all,
I am using the software upgrade process within Visual Studio to perform the software upgrade. The problem is that everytime I perform an upgrade, the existing configuration file gets wiped. What must I do to prevent this?
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi My Friends,
I write a program with C#, that after clicking button OpenFileDialog appear and you can select a text file and then my program read the text file and insert into Database.
This program work good and no problem but after click select and open text file in the OpenFileDialog about 2 or 3 second (depend to the size of file)
below picture appear :
http://www.freewebs.com/autoclinic/images/untitled.gif[^]
I want to know how can prevent this action ?
Best Regards,
Reza Shojaee
|
|
|
|