|
Hi,
I have a tapi application which drives the voice modem. After dialing I would like to get an indication whether the call was connected (LINE_CALLSTATE with param1 equals LINECALLSTATE_CONNECTED) or if the call was disconnected and why (for example line is busy).
I do know how to use the messages that are generated and sent to my callback function.
I dial the number using lineMakeCall. The last parameter for this function is the CALLPARAMS. Whenever I set the dwMediaMode of the CALLPARAMS to LINEMEDIAMODE_DATAMODEM I get an indication for why the call got disconnected (in case of an error) but I never get an indication that the call is connected (if no error occurred). When I change it to LINEMEDIAMODE_INTERACTIVEVOICE I get the other way around (only success indication).
Any idea how I can get both notifications?
thanks,
Liat.
|
|
|
|
|
Here's what my code section is:
"mailto:abc@abc.com?Body=WHATever..."
Result in Outlook 2000 and 98:
Body --> WHATever
Result in Outlook 97:
Body --> whatever
Anyone please let me know why Outlook 97 convert letters from upper case to lower case? Is mailto only work for Outlook 98 and after?
|
|
|
|
|
This question belongs in the Web Development forum, as it is nothing to do with Visual C++...
Repeat offenders suffer the WRATH OF !
That said, you might want to try enclosing your BODY in quotes. Or just use lower case the
whole time, in which case you won't care!
Iain.
|
|
|
|
|
Iain Clarke wrote:
Or just use lower case the whole time, in which case you won't care!
That's really helpful...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
That's really helpful...
I try, I really do!
Enough work, it's time to go to the pub and have a now...
Iain.
|
|
|
|
|
|
Tab order is the Z order of the controls. From memory, I think items that appear earlier in the Z order (i.e. 'beneath' other controls) are earlier in the tab order.
You can adjust the Z order with the SetWindowPos function.
|
|
|
|
|
Yes. The tab order in the resource editor simply becomes the order in which the controls are
created. The order in which they are created is reflected in the Z order of the child windows.
So:
void CMyDialog::OnChangeTabOrder ()
{
CWnd *pWnd1 = GetDlgItem (IDC_EDIT1);
CWnd *pWnd2 = GetDlgItem (IDC_EDIT2);
pWnd1->SetWindowPos (pWnd2, 0,0,0,0, SWP_NOMOVE | SWPNOSIZE);
}
would put IDC_EDIT1 immediately after IDC_EDIT2 in the tab order. This assumes they each have the
WS_TABSTOP style set, else TAB would skip over them. WS_GROUP is something else to be careful about.
Clear?
Iain.
|
|
|
|
|
Hello, I am just wondering if Visual Studio.NET will work with Windows XP Home Edition
Thanks,
-Mike
|
|
|
|
|
|
hello,
Do you think MS released VS.NET back in 1995 ?
Ask whether it runs on win98.
Hari Krishnan
|
|
|
|
|
It won't let you do asp.net pages if you need to on home, as it can't run IIS.
|
|
|
|
|
jspano wrote:
It won't let you do asp.net pages if you need to on home
Thank Goat! How can I disable all of its other useless crap?
|
|
|
|
|
Mike Nordell wrote:
Thank Goat! How can I disable all of its other useless crap?
Like what? Vb.net?
|
|
|
|
|
Hi,
I still can not figure this out, was wondering if anyone had suggestions.
I have a modeless window and a modal window, each having their own window option that when selected bring up the corresonding window. The modal window has radio buttons on it, so when a specific reaio button is selected and ok is entered, it will display the modless window.
When I select the menu to bring up the modeless window it works fine, only opens one window or sets focus to it if it has not been created. When I select the modal window and check the appropriate radio it will display the modeless window regardless if it is created already. It will just continue to duplicate the modeless window.
Can someone help me out so that it will set focus on the open window and not diplicate it.
currently I am using this code in the OnOK method.
if (!m_pCommandOpt)
{
m_pCommandOpt = new CMainCommand(this);
if (m_pCommandOpt->Create(IDD_MAIN_TAB_DIALOG) == TRUE)
{
GetDlgItem(IDOK)->EnableWindow(FALSE);
m_pCommandOpt->ShowWindow(SW_SHOW);
}
}
else
m_pCommandOpt->SetActiveWindow();>
THANKS in advance.
|
|
|
|
|
Hi,
I have no idea, whar the clas CMainCommand is about, but nevertheless your code must fail.
You create a new insatance of this class in OnOk() so this new instance surely doesnot know anything of windows/dialogs/form created prior to its creation.
Thus Create(IDD_...) will always return true, because in the class instance of CMainCommand no flag or so is set to indicate that this dialog has been created already.
Two possible solution. Try to get the applications pointer of its CMainCommand instance, and use this pointer.
Or send/post the command to the application as if the user has selected the dialog via the menu.
Regards
G.Steudtel
|
|
|
|
|
Hi Friends,
I want to calculate the recent net connection speed through application program. Can i use Socket for this?
If you have any solution regarding this then please tell me.
Bye
Thanks
|
|
|
|
|
Correct. One solution is socket. You can do speed test via website. You can download large files and calculate the average bandwidth.
Kuphryn
|
|
|
|
|
Hi,
But how can i use the socket in this topic
can u give me some idea
Thanks
|
|
|
|
|
Hi All
can ne1 help i have a CString containing "O'Riely"
i need a way of replacing the ' with a blank space
does ne1 know the best way of doing so, im having problems
because im a bit crap
thanks
si
|
|
|
|
|
CString has a member called Replace, IIRC, that should do what you want.
--
Ian Darling
|
|
|
|
|
CString str = _T("O'Reily");
str.Replace(_T("'"), _T(" ")); Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
My current project (a VC++/MFC program) needs to do a very lenghty
computation. I want to use multiple PCs running together to shorten the processing time.
Could anyone please give me some idea on how to write this program? What kind of technique I need to use, and what computer structure should I use (peer to peer, or client server)?
I really need some hints to start. Thanks a lot!!!
|
|
|
|
|
How parallelisable is the computation?
If there are lots of interdependant calculations, then you'll probably be wasting your time.
And typically, restating the algorithm differently and storing different data can assist in reducing this sort of computation - could you use eager and lazy evaluation at different points in your program to reduce the over all time taken?
I think you need to describe what your computation does in some detail before people can assist more.
--
Ian Darling
|
|
|
|
|
There are not many interdependant calculations. Actually, i need to generate a very large 2D matrix. And each element in this matrix is computed by the same algorithm.
The problem is the data source is very large (millions of images). So what I am thinking is to seperate the data source and put subsets of the data onto different PCs. So each PC can run the program at the same time to generate a small part of the big matrix. After all the small matrixes complete, the program will combine them together.
Is it a feasible way? Can anyone give me more ideas? Thanks!
|
|
|
|