|
I have developed a c# speech app using sapi 5.1..I use cfg..In my code I have a line where A messagebox is displayed..When this msgbox is displayed, the speech does not get accepted..it seems I have to hook the messagebox text to the grammar..I don't know how?? Anyone willing to help???
|
|
|
|
|
The MessageBox.Show is blocking, meaning that it will wait with execution until the user closes this messagebox. My guess would be that the agent only listens when the application can proces the information.
I are troll
|
|
|
|
|
Hello Frieds;
I want to read qr barcode from my windows mobile phone using its camera. How can i handle this using without external program.
Thanks in Advance
Best Regards
|
|
|
|
|
Well my first suggestion would be to try and get the contrast stable. Then attempt to convert to a binary image (i.e only either black or white pixels)
then you will need to produce some sort of scanning algorithm to detect black data and white space. then you need to research the formats of 2D barcode formats so you can make sense out of your data results.
Basically, its not an easy task so good luck!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hello Tyler,
This is a heavy task.
I'm busy making a 2D barcode scanner for one and a half month now.
I'm working with java/j2me, but that's just because it is more compatible with the mobile devices.
In order to read QR-codes, you need to buy the standard (as it is an ISO).
If you would like to have it ready on instant, you could try use zxing, this is googles opensource implementation.
|
|
|
|
|
I don't know how to pass data from a child thread to the parent thread. I want to write a child thread that is reading data from a serial port and pass the data to the parent thread that updates a TextBox. I think I have to use callback with delegates, but I don't know how to do that. Does anybody have a code sample in C#.NET or C++.NET? If would be very grateful if somebody could help me.
|
|
|
|
|
number of sites are present dictating about your problem
you guys are realy lazy!!!! even you wont get time to do some googling!!!!!!!!!!!
please first search on the net if you dont find it then post the question.......................
|
|
|
|
|
In your serial port receive event, Test class,
add an event:
private void Test_DataReceived(object sender, EventArgs e)
{
OnEventRxCompleted(RxText);
}
public delegate void TestEventHandler(string Text);
public event TestEventHandler EventRxCompleted;
protected void OnEventRxCompleted(string RxText)
{
if (EventRxCompleted != null)
{
EventRxCompleted(RxText);
}
}
in Parent from:
add this in constructor,
Test.EventRxCompleted+= new Test.TestEventHandler(EventDataReceived);
and also,
void EventDataReceived(string Text)
{
SetText(Text);
}
delegate void SetTextCallback(string text);
private void SetText(string text)
{
if (txtParent.InvokeRequired)
{
SetTextCallback d = new SetTextCallback(SetText);
this.Invoke(d, new object[] { text });
}
else
{
txtParent.Text = text;
}
}
Kelvin
modified on Friday, March 20, 2009 5:14 AM
|
|
|
|
|
Hello everybody!
I was searching threw System.GC and System.Diagnostics.Process but couldn't find something usefull.
So I was wondering if it's possible to call the GC of an other managed process over an API or something I couldn't figure out?
The question is out of curiosity, because I was wondering how the ".Net Memory Profiler" does the GC.Collect over all generation, when it's performing a snapshot.
Thank you for taking time!
P.S.: The last year I was not an active member of the community, cause I changed job and domicile. I changed now to unmanaged programing.
All the best,
Martin
|
|
|
|
|
I'm not sure, I guess it may be possible to tell the GC to collect for everyone, but, telling it to collect at all is typically a bad thing to do in any case.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello Christian,
Thanks for your quick answere!
Christian Graus wrote: I'm not sure, I guess it may be possible to tell the GC to collect for everyone
I will have a look of the GC members again.
Christian Graus wrote: but, telling it to collect at all is typically a bad thing to do in any case.
Yes it is!
Maybe there are some other suggestions on that!
All the best,
Martin
|
|
|
|
|
Martin# wrote: I was searching threw System.GC and System.Diagnostics.Process but couldn't find something usefull.
So I was wondering if it's possible to call the GC of an other managed process over an API or something I couldn't figure out?
No, you can't do that with the framework classes. You could of course expose a .NET object from your app and use remoting to talk to it, but that is way overkill, IMO.
Martin# wrote: The question is out of curiosity, because I was wondering how the ".Net Memory Profiler" does the GC.Collect over all generation, when it's performing a snapshot.
There's a CLR Profiling API[^] that allows you to do things like that. You write a COM object that implements a bunch of callbacks, and then by setting an environment variable, it gets instantiated in the target process and can process notifications, as well as query for information. The API is very rich, I even wrote something that can find undisposed objects here[^].
|
|
|
|
|
Hello Senthil,
Thank you very much for your valuable input!
Just had a short look. It's really powerfull for getting informations!
But I think there has to be a way forcing the GC on the other process.
If I do a snapshot with the profiler it automaticaly makes a GC.Collect (GEN#2).
EDIT Start:
Just had a closer look, and I think a havent understood it at the first hand!
I will give it a try, and let you know if it works for me.
EDIT End:
S. Senthil Kumar wrote: wrote something that can find undisposed objects here[^].
Very interesting, thanks for the link.
Have a nice day!
All the best,
Martin
modified on Friday, March 20, 2009 11:22 AM
|
|
|
|
|
Hi Martin(ex#),
how are you doing?
There are overloads of GC.Collect() that help you in collecting the generations within your own process (which you should not do). I suggest you don't start collecting garbage from others, there still is interesting stuff within IT.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi Luc!
I'm doing very fine, thank you.
Hope you are also doing well.
I recognized that you where off-codeproject for a while.
But it's good to see you back!
No worry about me collecting garbage!
I'm just interested how programs like the ".Net Memory Profiler" doing this task.
Wish you a nice weekend!
All the best,
Martin
|
|
|
|
|
Anybody plz help to solve the problem of dropdownlist with modelpopup.here i need to use modelpopup with dropdownlistbox. When i am trying to use selectedindex change the event of dropdownlistbox should fill the value of another field to the another textbox
.
|
|
|
|
|
If you can't work out where the ASP.NET forum is, or that you need to post code if we can fix it, then we can't help you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a C# windows application uses Pervasive sql 2000i.
The database has file path consisting of DTA and DDF files. I am using DSN to connect to the database.
I want to Programatically providing Database file path to DSN using C#.
Is it possible to do that.
If yes, I want some relative source or the link..
Thanx in advance.
Ragards...
Bijay
|
|
|
|
|
HI
here is my code how show me the path in message box but i want to this path in text box what is the logic behind this
private void button3_Click(object sender, EventArgs e)
{
OpenFileDialog FD = new OpenFileDialog();
string filenname = "";
string path = "";
if (FD.ShowDialog() == DialogResult.OK)
{
filenname = System.IO.Path.GetFileName(FD.FileName);
path = System.IO.Path.GetDirectoryName(FD.FileName);
}
MessageBox.Show(filenname, "Filename");
MessageBox.Show(path, "Directory");
}
|
|
|
|
|
Mangesh Tomar wrote: string filenname = "";
string path = "";
This is kind of useless, don't you think ?
If you can't set the text value of a textbox, and you can't work it out, then it's really time to be buying and reading a C# book. I can't think of much that's more trivial. What have you tried ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Whats there in this .. ..
Are you playing with us or what. . ???
Its just txtbx.Text = System.IO.Path.GetDirectoryName(FD.FileName);
|
|
|
|
|
Here is my code which gives me full path of file and it work
if (FD.ShowDialog() == DialogResult.OK)
{
textBox1.Text = " " + FD.FileName;
}
thx for reply
|
|
|
|
|
Thats cool. ..
But please from now leave a reply stating that you got your query so we didnt reply you in a way this happened...
|
|
|
|
|
Dear Friends
i developed more than from how to get the form1 to form2 how to value get .... ur suggestions
example i need help
|
|
|
|
|
Hard to understand what you're saying exactly. What is krishan ? your name ? How is that a remotely useful subject.
Buy a book on C# and read it. Pay attention to the chapter on delegates.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|