|
|
I am developing IVR application for my organizational needs.I am using only tapi.h and linked with tapi32.lib using vc++.I am facing the problem that all the events are not fired when a call comes in.My telephone has the callerID capability.I am not able to capture the callerID also.
Can anybody suggest me to solve my problem.
Y.Srinivas
|
|
|
|
|
A couple of things,
What TSPI are you using, is it for a modem or a PBX?
How have you Initialised TAPI, are you using LINEINITIALIZEEXOPTION_USEEVENT or LINEINITIALIZEEXOPTION_USEHIDDENWINDOW.
What privilege have you used to open the device LINECALLPRIVILEGE_OWNER or LINECALLPRIVILEGE_MONITOR?
If supported by your TSPI, the CallID can be retrieved using lineGetCallInfo.
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
i want to know by a system call whether that system is connected to the internet r not .for example i had an application how can i make that application run only when it is connected to the internet .is there any specialised commands for that.
|
|
|
|
|
BOOL CheckInternetConnection(LPCTSTR url)
{
DWORD flags = 0;
if(InternetGetConnectedState(&flags,0))
{
if(InternetCheckConnection(url,
FLAG_ICC_FORCE_CONNECTION, 0 ) )
return TRUE;
else
return FALSE;
}
else
return FALSE;
}
And use it like :-
if(CheckInternetConnection(_T("www.google.com")) &&
CheckInternetConnection(_T("www.yahoo.com")))
{
}
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|
|
Ei! how do i open .hxi or .hxs files?
i recently installed the microsoft SDK Platform and the documentation files are type hxi and hxs.. it seems that i have no program to open these type of files... I have no MSDN yet... but can you give me another downloadable program that ha a small file size... that opens these files...
thanks...
|
|
|
|
|
|
|
Ok I have a private member variable CArray containing a structure of data. I have a worker thread working with it. It finishes and the thread is terminated.
Then I try calling a non-threaded function in the same class and try to access the array it returns a -1. Why can't it be accessed even when locked?
I've made sure that its unlocked after its unneeded in the threads.
-Steven "the yellow dart" Hicks
CPACodeProjectAddict
|
|
|
|
|
(Steven Hicks)n+1 wrote:
try to access the array it returns a -1
What is returning -1?
Software Zen: delete this;
|
|
|
|
|
The GetSize was. I fixed this by making a global class variable and accessing the arrays through this.
-Steven "the yellow dart" Hicks
CPACodeProjectAddict
|
|
|
|
|
I have a dialog based program that has a tree control in the middle of it. I want to convert that project to a single document interface. How do I use a tree control which this type of design?
Michael
Everything in moderation, including tolerance.
|
|
|
|
|
Create SDI with formView, copy your dialog, change formView to use it.
|
|
|
|
|
Thanks, are there any tutorials out there that address this approach? I notice I don't have the standard buttons on the toolbar, just a dialog kinda like in a dialog based application.
|
|
|
|
|
Here is my dilemma with status bars...
I'm trying to run OnTimer routines that update GPS coordinates on a cStatus bar pane
...whats actually happening is i see a flicker of text in the wnd_pane and then it gets wiped away
...the strange thing is that when i click on the menu buttons the GPS text pane is always visible and there is no flicker.
how can i get the main frame to behave the same way so i can constantly see the GPS text ................real time??
i tried implemeting the timer update of the statusbar within the view rather than the main frame... but the result is the same.... what am i missing??
-perseus
|
|
|
|
|
I know this sounds far-fatched... but is there any way to force the OS to unload a DLL without exiting the program itself? I am working with a 3rd party library, which apparently has some global data in it that is initialized when it is loaded. I, however, need to re-initialize this data at a certain point in my program, and would like to do it without having to physically exit the whole program and restart-- the thought came to mind that maybe i could just force an unload/reload on the DLL in some manner.
Thanks for any ideas,
|
|
|
|
|
LoadLibrary FreeLibrary?
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
I need to be able to access a remote pop3 inbox from a windows service. Is MAPI able to do this or will I have to use sockets? Any help is appreciated.
cc
|
|
|
|
|
Hi:
I have figured out how to pass data from VB to C++, but I am having troubles with sending arrays back to VB.
Suppose my C++ DLL created an array of integers and I have a pointer to this array that I pass back to the VB application along with the number of elements.
Now, how do I handle it on the VB side?
Do I have to allocate a buffer before I make the call, and let the C++ populate this buffer?
Or can I allocate the buffer in the C++ code?
What if I don't know the size of the buffer beforehand?
If I just have the pointer and the number of elements, what would be a VB equivalent to do something like this:
for( int n = 0; n < nTotal; n++ )
{
dValue = *( ( double * )cPointer );
cPointer += sizeof( double );
}
Thanks a lot.
|
|
|
|
|
|
I though about using SAFEARRAY, but it seems to add too much of (maybe) unnecessary overhead. Can you think of any other options?
I have a feeling that CopyMemory would have to be involved somehow
|
|
|
|
|
Anton A. Loukine wrote:
...but it seems to add too much of (maybe) unnecessary overhead.
Using what gauge?
|
|
|
|
|
Maybe because there is more code to write, the header of a SAFEARRAY contains more information than required. It may not be the case, but I would like to consider more than 1 option.
Also, when a safearray is passed from C++ to VB, what is actually passed (i.e., pointer only, the header + pointer to data)?
|
|
|
|
|
See if the MSDN article Q207931 sheds any light on this.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Has anyone else seen this:
I have a single HTML dialog that is called by a DLL. When the dialog box is displayed, there's the standard TODO:, OK, and Cancel buttons underneath the conrols I have added/changed. However, when you edit the dialog resource, they are not there. I could not find anything in the .rc, .rc2, or resource.h My assumption is that they are getting added from a library or something. Any ideas?
|
|
|
|