|
In the past I used a speech SDK from Microsoft and in the documents it lists the modules that you need to include in your install program.. I don't remember any specifics (was quite a while ago), just thought you may have over looked that..
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Yes, thanks. I installed all that modules but it doesn't work... I think it's about some trouble of software
|
|
|
|
|
Hi!
My program joining a multicast group and recieves packets. But I will recieve the packets at the network device, so there will be no delays when it is placed in a queue at my computer.
Does anyone know how listening at the device in c++?
I'm using linux mandrake.
Thanks for your help,
Stefan
|
|
|
|
|
|
I am using tree view control in order to enumerate all the application with window. I am using CreateWindowEx to create window to obtain the handle.Presently my output is very similar to that of Spy++ . But what I want window from CreateWindow should be hidden (a/c to requirment). nOT GETTING ANY WAY TO DO IT.
|
|
|
|
|
I want to print bitmap on full page, so i wright:
[code]
void CtestView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
int cxPage = pDC->GetDeviceCaps(HORZRES);
int cyPage = pDC->GetDeviceCaps(VERTRES);
Graphics g(pDC->m_hDC);
g.DrawImage(m_pBitmap, 0, 0, cxPage , cyPage );
}
[/code]
Thats ok in preview but not in printer. What transformations i need to do?
|
|
|
|
|
This is due to a printer DC and a screen DC having different levels of support. Take a look at my "Printing tips and tricks from the trenches" article in the printing section. It has a method to solve this problem.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
I read that article, but it dont contain answer: What and how i need to transform to see preview and printing page in the same style, using GUI+ ...
|
|
|
|
|
You need to make use of the procedure that changes a DDB to a DIB and use StretchDIBBits() to plot it. This command is much better supported by printer DC's. BitBlt usually fails miserably.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
I use GUI+, object Graphics and Bitmap. No BitBlt or StretchDIBBits!
|
|
|
|
|
Here is answer if somebody whant in:
void CtestView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
int cxPage = pDC->GetDeviceCaps(HORZRES);
int cyPage = pDC->GetDeviceCaps(VERTRES);
Graphics g(pDC->m_hDC);
g.SetPageUnit(UnitInch);
g.DrawImage(m_pBitmap, 0, 0, cxPage/g.GetDpiX() , cyPage/g.GetDpiX() );
}
|
|
|
|
|
Hi,
In a thread function exception is occured. exception in CInternetException. while throwing exception the thread is terminated with value 0. any one help to me.
Thanks in Advance.
Have A Nice Day!
Murali.M
|
|
|
|
|
Hello!
Try using catch(...) statement to prevent system exception handling.
UINT MyThreadFunc(LPVOID pArg)
{
try {
// code which cause an exception
}
catch(...)
{
// empty or your own handling code
}
}
|
|
|
|
|
<br />
<br />
CMyClass::OnExecute()<br />
{<br />
AfxBeginThread(myThreadCaller,NULL)<br />
}<br />
<br />
UINT myThreadCaller(LPVOID p)<br />
{<br />
try<br />
{<br />
ActualFunctionThatThrowsException();<br />
}<br />
catch(..)<br />
{<br />
}<br />
}<br />
ActualFunctionThatThrowsException()<br />
{<br />
}<br />
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
Can anyone help me find what's wrong with operator() overload pls?
#include <iostream>
using namespace std;
class A
{
public:
int value;
A(int a) : value(a) {}
operator int()
{
return value;
}
void operator ++ () // prefix
{
value = value+1;
}
};
int main()
{
A a1(27);
++a1; // this works fine...
// the following does not...MSVC6 tells me "error C2064: term does not evaluate to a function"
cout << "value:" << a1() << endl;
return 0;
}
Any ideas?! Many thanks...!
Chris
|
|
|
|
|
yeah there is one idea ...
try this
cout<<"value:"<< a1.operator int()<< endl ;
> in place of ur line cout << "value:" << a1() << endl;
actually u have overloaded int() operator
Abhishek Srivastava
Software Engineer (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
I see...but how do I overload the () operator if i need to use it like this in my code:
cout << "value: " << a1() << endl;
Chris
|
|
|
|
|
operator()()
Lets be honest, isn't it amazing how many truly stupid people you meet during the course of the day. Carry around a pad and pencil, you'll have twenty or thirty names by the end of the day - George Carlin
Awasu 1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
|
for that purpose overload your () operator like this
// overloading () operator
int operator()()
{
return value;
}
now u can access that bracket operator
like a1()
i hope ur prob is solved now
regards
Abhishek
Abhishek Srivastava
Software Engineer (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
Solved to perfection...many thanks!
Chris
|
|
|
|
|
Christopher Spiteri wrote:
class A
{
public:
int value;
operator int()
{
return value;
}
};
Since there's only one value type operator, int, in your class A, cout will take it implicitly.
So you can write it like this:
cout << "value:" << a1 << endl;
And, operator int() is for something like this:
cout << "value:" << (int)a1 << endl;
Overloading () would be this way:
A& operator ()()
{
cout << "In operator ()\n";
return *this;
} Therefore, in main, you can write this:
int main()
{
A a1(27);
++a1;
a1();
return 0;
}
Maxwell Chen
|
|
|
|
|
I see...this was very clear - thanks a lot mate!
Chris
|
|
|
|
|
Hi guys
I need to process audio(Wave) files to remove silence at both ends or delete file if total silence.
How to remove leading and trailing silence from
an audio file of Wave format...! If there is any ready made class to be used in VC++ please give me url or advice me the way how to do it...!
Thanks in advance
Srinivas
Srinivasa Rao Madala
MIC Electronics Limited
A4,Electronic Complex
ECIL Post
Hyderabad
India
msrao@mic.co.in
|
|
|
|
|
I have already an dialog which is sizeable. Now i have a problem with this dialog. The dialog contains a ListControl. Now i want to set the size of the ListControl in proportion to the dialog when i use the maximize button.
Can anyone help me with this problem?
p.s.: it would be fine when you can explain it to me under MFC and no ATL because i don`t undersand this.
greets
J.J.
|
|
|
|