|
Hie guys:
I am developing an sms application using c# and gsmcomm library and im using nokia 6500 slide as my gateway. I can connect to the phone and send messages from the application. I am using the sample code from
How To Send and Receive SMS using GSM Modem[^]
Now i want to send sms automatically according to the user's request, which is not a problem but the problem is method comm_MessageReceived
CommSetting.comm.MessageReceived+=new MessageReceivedEventHandler(comm_MessageReceived)
is not being triggered when someone sennds the sms. I googled and got the extract below to enable message notification
this.GSM.MessageReceived += new MessageReceivedEventHandler(comm_MessageReceived);
this.GSM.EnableMessageNotifications();
In my application "this" doesnt have GSM instead in my analysis i used CommSetting.comm.EnableMessageNotifications() which is giving me exception "Port Not Open".
Help me, how can i enable it so that i may automate my repliesmodified on Wednesday, February 10, 2010 4:26 AM
|
|
|
|
|
try this,
GSM.open();
this.GSM.MessageReceived += new MessageReceivedEventHandler(comm_MessageReceived);
this.GSM.EnableMessageNotifications();
|
|
|
|
|
how i can store voice in text form.. i,e take a voice by microphone and convert it into text... please give me source code...
|
|
|
|
|
Hi,
did you read the answers to your previous post. It is very difficult and you an engine for this... if there would be the source code fitting into a forum message that can convert spoken words into text, than you got the jackpot... let me know if you find something like this.
Regards
Sebastian
|
|
|
|
|
Don't post the same question
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
He's multi-threading too!
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Basudevkuet wrote: how i can store voice in text form.. i,e take a voice by microphone and convert it into text...
There's a Speech API that you can use to "recognize" what word would sound similar to the sound of the microphone.
Basudevkuet wrote: please give me source code...
This is a site for programmers, the people who come here are expected to write their own code. If you want to learn more on speech recognition, go here[^]
I are Troll
|
|
|
|
|
Is it possible to identify the person's speech??? if it is possible,, please help how is possible i, e the process and source code.... please help me
|
|
|
|
|
CP link here[^].
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
No it is not possible, thats why we all communicate via online forums. No one in the world has acually spoken to another human since 1988.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
how i store a a voice into text form... please give source code.
|
|
|
|
|
It's all here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
i need to add some items to a listbox in another thread and another class.
The secont thread passes a ListBox item to the invoking function but i cannot access its listbox.items.add functionality. I can only set values to the common parameters to all Controls (i.e. text, name etc.) How could this be solved?
ty
|
|
|
|
|
Create a custom event (and custom EventArgs object). Put the string/item into the EventArgs object and handle the event in the desired location.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
... and avoid cross-thread problems with the techniques from this article[^].
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
It seems multithreading is being taught in class this week.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: It seems multithreading is being badly taught in class this week
FTFY
If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
Hi all,
I am refering this[^] article of CodeProject for learning about Windows Services.
Everything went right, but when i tried to Start the service from Services option of Administrative Tools, it is showing me following error:
"The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security."
on this line of code
if (!System.Diagnostics.EventLog.SourceExists("SimpleSource"))
Service is not starting.
Can anybody tell my why this is happening?
Thanks,
Nagendra.
|
|
|
|
|
Maybe it has to do with the user account you installed the service under.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
backgroundWorker1.RunWorkerAsync(mdiForm);
void worker_DoWork(object sender, DoWorkEventArgs e)
{
mLoadForm = new LoadForm
{
StartPosition = FormStartPosition.Manual,
Location = mNewLocation,
TopMost = true
};
mLoadForm.MdiParent = ((MdiForm)e.Argument);
Application.Run(mLoadForm);
}
When I try to set the MdiParent for the loadform by passing the mdiform thru the RunWorkerASync parameter, the Application.Run(mLoadForm) is never reached nor is there an error being thrown ...
This should be possible right?
|
|
|
|
|
You're attempting to do Application.Run within a background worker??!
I don't know what would happen if you do that, but its going to be weird.
Regards,
Rob Philpott.
|
|
|
|
|
If i replace Application.Run(mLoadForm) by mLoadForm.Show() then the Form isn't displayed corretly (I'm running an animated gif in that form)
Bu that doesn't change the fact that I cannot set the MdiParent....
|
|
|
|
|
Also, please explain why this "will be weird", because I didn't notice anything "weird" ...
|
|
|
|
|
Well, Application.Run is traditionally used from the main() entry point to the application. It creates a standard message loop on the current thread which then responds to user input and rendering requests and the like.
It's certainly normal to only have one such message loop, so using two (concurrently) opens up the dubious world of not having a single GUI thread. I've not seen it done before (except in modal dialogs etc.) And although it *may* be possible to use it, its certainly not the correct approach IMO.
You might end up with MTA/STA problems maybe as well.
Regards,
Rob Philpott.
|
|
|
|
|
But that was the purpose: I wanted to create a thread that contains another form while the other was currently busy.So I could show an animated gif in front of the form that is busy...
This seemed to be working great, except that if u minimize or moved the 'busy' form, the form in the new thread with the animated gif stays on screen, so I thought by setting the mdiParent would solve this, but apparently this can't be done...
I will change my design and let the main form do its work async so I can just put a picturebox in front till the work has been done or something ...
|
|
|
|