|
I have been working with tapi to init the modem, answer a phone call(all this works so far!!), and then stream what the caller says(raw 16 bit data) into a buffer. The problem i am having is in my waveInOpen(...) call to set up the data connection with the phone call. waveInOpen returns with an error saying the device is already in use. Any help or suggestions would be great.
here is what i am doing:
1. open the line with lineOpen( ) (i have monitor and owner privleges)
2. Once i am connected to a call i get the waveID with lineGetID(....)
3. I then try to call waveInOpen( &m_hRecord, m_iCallID, &m_Format, m_ThreadID, NULL, CALLBACK_THREAD) where m_iCallID is the id return in step 2 and this returns the error.
Does anyone know how to open a tapi call with waveInOpen to have access to the raw data? Thanks for the help.
Steve G
|
|
|
|
|
((Hi All,
I have an application where I needed to trap mouse events, specially right click so that when user right clicks I can do whatever I want to..so I created a mouse hook and when I run the applciation it also traps the left click of mouse and doesn't do what is required..I mean if I click on button it doesnt seem to remember what it has to do..can this be solved..any help from out there is highly appreciated..Any pointers ideas or code is most welcome..Thanks a lot in advance..
Himanshu
|
|
|
|
|
I will assume you set up the hook using SetWindowsHookEx(WH_MOUSE,...) . In your MouseProc, are you calling CallNextHookEx() and returning the value it returns to you?
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks for ur reply..but I am not sure what was the idea..I am using setwindowshookex to set the mouse hook..but I am not sure how to make left click work..here is the piece of code..
LRESULT CALLBACK MyTaskMouseHookLL(int nCode, WPARAM wp, LPARAM lp){
if (nCode == HC_ACTION)
{
if (wp == WM_LBUTTONDOWN) MessageBeep(0);
if (wp == WM_RBUTTONDOWN) MessageBeep(0);
}
return CallNextHookEx(g_hHookMousedLL, nCode, wp, lp);
}
Please correct me if I am wrong anywhere..or if u can provide me a piece of code that does the work..will be great...I shall be waiting for ur response..
thanks a lot in advance..
Himanshu
|
|
|
|
|
Provider=Microsoft.Jet.OLEDB.4.0
is for Access2000 and
Provider=Microsoft.Jet.OLEDB.3.51
is for Access97
Now I want to use Access2002
may I change the Provider Version?What is it?
Thanks
YES, I am here.
|
|
|
|
|
Angel Kid wrote:
Provider=Microsoft.Jet.OLEDB.4.0
This will work with Access 2002. You have to make sure that Jet engine 4.0 is installed.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Hello Guys!!!
I want to detect internet connection on a Windows system. I have tired using InternetGetConnectedState function but i am getting "unresolved external symbol __imp__InternetGetConnectedState@8" linker error. Can anybody help me out cause i need the code urgently...
Thanx in advance.
Abhi
|
|
|
|
|
You have to include in Wininet.h (which obviously you did) and link the Wininet.lib library.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Hi Tony!!
Ya. It worked linking the Wininet.lib. But still there seems to be problem.
I am getting "'INTERNET_CONNECTION_OFFLINE' : undeclared identifier"
Here`s my code. Can u have a look at it.
#include "stdafx.h"
#include "Wininet.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
BOOL bConnected = FALSE;
DWORD dwFlags;
bConnected = InternetGetConnectedState ( &dwFlags, 0 );
if ( bConnected )
if ( dwFlags & INTERNET_CONNECTION_OFFLINE )
bConnected = FALSE;
if (bConnected )
MessageBox(0,"WOW ! Internet is Connected !","",0);
else
MessageBox(0, "Oops ! Internet is not Connected !","",0);
return 0;
}
|
|
|
|
|
Which version of the Platform SDK do you have? It doesn't exist in the one that comes with VC6 but does exist in the October 2002 version that I've got. It's in wininet.h , so if you don't have it, then you'll need to download the latest Platform SDK.
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"
|
|
|
|
|
I should have read your reply first.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
***Clickety police
What clickety?
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"
|
|
|
|
|
I screwed up the titles. I meant to write that in the other message. Sorry for the confusion. I need some sleep.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
No problem
Have a good sleep
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:
Have a good sleep
Thank you. Should I reply with have a nice day? Just curios, what time is it down there?
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
Should I reply with have a nice day?
That would be appropriate
Toni78 wrote:
what time is it down there?
1352
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"
|
|
|
|
|
You need to download the latest SDK release. Go to [^] to download it.
I just checked Ryan's answer and he is suggesting the same thing.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Thanx Ryan / Tony,
I am using VC 6. Is it ok if I install PSDK from the link u sent me.
Abhi
|
|
|
|
|
You are welcome.
Abhi@Work wrote:
Is it ok if I install PSDK from the link u sent me
Yes it is ok. I have VC6 and I installed the exact same SDK release a few weeks ago.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni!!
I`ve downloaded the SDK but the error still remains.Is there something more to it ?
Abhi
|
|
|
|
|
Abhi@Work wrote:
I`ve downloaded the SDK but the error still remains.Is there something more to it ?
Did you register SDK with visual studio?
If not go to Start->Programs->Microsoft Plaftorm SDK February 2003->Visual Studio Registration->Register PSDK ...
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Ya it worked !! Thanx..
|
|
|
|
|
I customized CColorDialog into MyColorDialog and added a hex edit box. When the user edits the hex box, I need to call CColorDialog::SetCurrentColor, but it seems to crash everytime I do so. Anyone else have any problems with SetCurrentColor?
Thanks.
|
|
|
|
|
Hello all
I would like to know if there's any way of terminating a process from another process without using "TerminateProcess()". I read from msdn that "ExitProcess()" is the best way of terminating a process, But I'm not getting how to use it from another process.
If anyone knows how to do it, pls help me.
Thanks for your help.
Hari.
|
|
|
|
|
ExitProcess() will exit the process that it is called from - it cannot be used to close another process. If the process you are trying to terminate has a main window, then you can try posting WM_CLOSE or WM_QUIT to it, forcing it to close itself.
Dave
http://www.cloudsofheaven.org
|
|
|
|