|
Please post the rest of your code, specially how you try to insert the row.
propably you need also to check the characters of the string before putting it into the DB.
You need to replace all \ with \\ and so on
The easiest way is to store the SQL-Statement into a textfile. Then you copy the statement into
a SQL-Tool, there you get all Error-Information do you need to find the error
( IF the error comes from a SQL-Syntax)
|
|
|
|
|
how can i make a text-2-speech software for my own language pashto(eastern language written from Right to left).please any body help me.Its my prroject.or tell me the basic steps to make it.
ThanX
|
|
|
|
|
The easiest approach is to use pre-recorded phonems. This means:
1. Read the text to be spoken.
2. Analyse and split the text into phonems.
3. Determine the correct pronounciation, emphasis and state for each phonem.
4. Mix the phonems into a single sound stream in the correct order and with the correct spacing/silences.
5. Play the sound file.
You might be able to cover some variations by applying audio filters to prerecorded sound-files (silencing, changes in pitch and tempo, etc), so the number of recordings necessary might be reduced to a few thousand.
Now, apart from the Analysis, the most time-consuming part is the recording and splitting of the pre-recorded phonems. You might want to hire a sound-recording studio and a professional speaker for this purpose.
If you are planning to not use pre-recorded phonems, but to generate the speech "on the fly": good luck, until you are a linguist and can describe language professionally, plus reproduce the certain sounds with algorithms. I have no advice for that.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Sir,
Is there any way else of recordings?
by recording u mean that in Microsoft TalkIt Text-2-Speech application Microsoft had recorded each and every word;which i write to be spoken.whether the word is "My own Name","any word of my own language".It speak each every thing.Howevere Microsoft company is not aware of that word.So how they recorded that word.
Sir,
Hope U'll uderstant what I want to say.In the same fasion I want to build my project.Its writing is only different usiny unicode.
So if u have any idea behind that, then Please tell me Please.
ThanX
|
|
|
|
|
Please, how can I get a folder where a current program/app is running from?
Thanks!
|
|
|
|
|
TCHAR lszModuleFileName[MAX_PATH] = { '\0' };
GetModuleFileName( AfxGetInstanceHandle( ), lszModuleFileName, _countof(lszModuleFileName) );
lszModuleFileName contains now the complete filename incl. path of your executable !
|
|
|
|
|
|
Is that your program or you run a foreign program?
|
|
|
|
|
GetCurrentDirectory() ..?
|
|
|
|
|
I have a program that displays a dialog box with a series of buttons and a text box for messages. When I select one of the buttons it creates an instance of a module that interfaces to some USB tools. Sometimes the work done by this interface module can take sometime to complete and I would like the interface module to update the text box on the dialog box. Is there an easy way to do this? I am using VC++ 6.0.
Eric
|
|
|
|
|
Hi,
you can set a control variable associated with the control you want to update, and then access them through a pointer to the window/dialog that has the ownership of those controls.
As example (In one of my programms):
Form3 has some buttons (m_cbBut1, m_cbBut2) and Form2 has a graphic (m_gGraph1). In Form3 I have a pointer to the Form2 (CFormView* m_pForm2).
When I use some of the buttons I put in the message OnButtonXClick something like:
OnClick ()
{
m_pForm2->m_gGraph1->Update ();
m_pForm2->m_cbBut1F2->ShowWindow (FALSE);
return;
}
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
How did you arrive with m_pForm2? I am using Dialog instead of Form, would that make a difference? I can not seem to get my control variables to show up.
Eric
|
|
|
|
|
hi,
have a CClass* (of the class where u have to update) as a dialog box member.
Before calling DoModal update this pointer and rest handle with the pointer.
Try it.Lets see .
Have a nice day
|
|
|
|
|
I have made it by using the View List of CDocument, because the form is connected to the document through a pDocTemplate. But the principe is the same.
You can take a pointer to your dialog, by taking the handler of the window that contains the dialog in you OnInitDialog and recasting it to a CDialog*...
Or another possibility is to use the moment you create the dialog to take the pointer.
For example:
//Instead of this...
CDialog newDlg;
int nAnswer = newDlg.DoModal ();
//...
//
//Use this
//
CDialog* m_pOpenedDialog; //Variable to get the connection to the dialog
CDialog* newDlg;
//here send the pointer to a variable in the other window to connect with
m_pOpenedDialog = newDlg;
int nAnswer = newDlg->DoModal ();
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Maybe I am not explaining this correctly or do not not understand your solution. I will try to explain with example:
When I click on a button in my main form (CUsbDlg) it run the following:
void CUsbDlg::OnFormatBlock0()
{
CUsbIo cUsb;
//Setup the usb communication (load the bix file)
if(!cUsb.CommunicationSetup())
The problem is that I need cUsb to update a Static text box on the CUsbDlg form. There are items that happen within the CommunicationSetup that may take some time. I need to let the user know where we are in the process.
Eric
|
|
|
|
|
braune wrote: The problem is that I need cUsb to update a Static text box on the CUsbDlg form.
Ok, so what's the problem? One way to achieve what you want is to have the CUsbIo class post messages back to CUsbDlg . In the handler for those messages, update the static controls.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello all,
I am trying to read excel file through my code.i have used CRecordSet class for that, but when i m trying to use Open function and passing null in place of sql; statement is give abort error dbcore.cpp. How to solve it....
can anybody please help me in this
Thanks in advance
|
|
|
|
|
|
I was trying in this example only. There is a open function in this example
which opens the connection
m_sSql.Format("SELECT * FROM [%s$A1:IV65536]", m_sSheetName);
try
{
m_rSheet->Open(CRecordset::forwardOnly, m_sSql, CRecordset::readOnly);
}
here in try block it passes m_sSql (sql command).
when i pass NULL instead of sql command it gives abort error.
Acutally i m trying to read my excel sheet without using sql command...
|
|
|
|
|
neha.agarwal27 wrote: ...give abort error dbcore.cpp.
Are you referring to an assertion?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi there !!
I would like to seek some help to understand if there are direct Windows API (C++) to create a zip file from multiple files.
I have a set of files which i want to package into one zip file programmatically.
Please let me know what is the best possible way to to get this done.
Thanks and Regards,
Jai Praful Ved
|
|
|
|
|
As far as I know there is no windows API support for handling ZIP files.
Windows just supports cab files.
I you want to process zip files from c++ you should zlib which is free.
Just google for "zlib" or see
<http: en.wikipedia.org="" wiki="" zlib="">
|
|
|
|
|
Will I be able to use zlib library to make a package out of a number of files into one zip file ?
Let me give you some details. I have a set of files and folders with data. I want to programmatically package these files and folders into a single zip file. The zlib works for buffers and I have a set of files and folders to work with......
Please guide me !!
Regards,
Jai Praful Ved
|
|
|
|
|
|
Hello,
I have derived a class from CWnd to make a dialog box.I was not able to derive a class from CDialog since it needed a dialog resource ID which I don't have.So I derived a class from CWnd .
But how do I make the window behave like a dialog where the user will not be able to activate any other window before closing this window(dialog).
Thanks
Prithaa
|
|
|
|