|
hi,
I need to ask about the microsoft acoustic echo canceller in directshow. I m trying to find the tutorials and implementation but i couldn't find it. even it has very scarce documentation. Please help me out.
ALL for Knowledge.
|
|
|
|
|
guys...i m not sure whether this is the right place 2 post this message...if not please excuse me...
but i need help desperately...
i have 2 play mp3 and tone...i am able 2 play wave and midi using MCI...but not mp3 and tone...
if u guys have any idea...or code snippets...pls help me out..
thanks in advance..
vinnzy
|
|
|
|
|
Hi, I am a newbie to win32 programming and have a question:
I have the following code:
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_LBUTTONDOWN:
{
ShellExecute(hwndParent,"open", bsUrl, NULL, NULL, SW_SHOWNORMAL);
break;
}
}
return 0;
}
I went to be able to pass a paramater, bsUrl to WndProc so it can know what url to navigate to based on what was clicked. How can I do this?
|
|
|
|
|
make bsUrl static
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Sorry for the ignorance, but how do I make it static? You mean make it a static variable?
|
|
|
|
|
Put the keyword before the variable initialization:
static CString bsUrl , replace CString with the type of bsUrl, dunno how you declared it.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Got it! Thanks for the help, you're a life saver.
|
|
|
|
|
Hello my best friends,
I'm a beginner to Visual C++ programming, so I have some "stupid" questions for you and I hope you guys to help me.
I'm working on my own very simple chatapplication, but I encounterd some problems. I've made a client and a server part, I've tested it out but I had the problem that I couldn't send a text string. My serverside establishes a connection with the clientside ( I know it because I put some control messages to be sure there is a connection).
But when I try to send a peace of text, it does nothing except that it shows the sending text on my display and the receiver part shows nothing on the display. I used the following code to send a string:
void CSimComDlg::OnSend()
{
m_Message.GetWindowText(strMESSAGE);
m_pArOut->WriteString(strMESSAGE);
m_pArOut->Flush();
m_MsgDsp.SetWindowText(_T(Name+":"+strMESSAGE+"\r\n"));
strMESSAGE.Empty();
}
And to read a received string:
void CSimComDlg::ReadReceive()
{
m_pArIn->ReadString(strMESSAGE);
m_MsgDsp.SetWindowText(_T("Chatter:"+strMESSAGE+"\r\n"));
strMESSAGE.Empty();
}
m_pArOut and m_pArIn are CArchive pointers (I use this in combination with CSocketFile to send data over internet).
Is there something wrong with these codes?
I've seen some other example codes on the internet, they include also the length of the message to send and they check also the buffer if there's more data coming in. But are they neccesary to put them in my code?
I hope you can help me boyzz
If my application works, I forget all my problems.
|
|
|
|
|
CYourApp::Instance()//<<=====your app class
{
....
if (!AfxSocketInit())
{
::MessageBox(NULL,"Can't use socke!","Error",MB_OK);
return false;
}
....
}
|
|
|
|
|
Thnx for the reply,
But what has this to do with sending test on the right way?
I just want to know how I can send or receive text (in string-format) in its simplest form using CArchive and WriteString() and ReadString().
If my application works, I forget all my problems.
|
|
|
|
|
SimCom wrote:
But what has this to do with sending test on the right way?
I just want to know how I can send or receive text (in string-format) in its simplest form using CArchive and WriteString() and ReadString().
If my application works, I forget all my problems.
what I think he is trying to say is check for error return values at every point, initialization to send/receive. Also since you did not include the initialize routine he showed, it may be as simple as initializing properly. The greater part of programming is learning how to find your own answers. Know what is wrong, and you can fix it. Run in debug mode, step through the operation, check error return values. Most of us do not have time to take your code, compile it into a full executable, discover the answers and give it back.
I highly recommend running in debug mode. at least then you can say all the return values operate as if they are actually sending the information, but I am not receiving it.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
I use Visual C++ Toolk 2003 and I don't know how to add my resource file to my projects. How to do it with Visual C++ Toolkit 2003 Command Prompt???
|
|
|
|
|
Does anyone know where to find information on implimenting key binding/mapping?
Any information: articles, books, BBS, key words that will narrow the search, ect...
I wrote a text/code editor program sometime ago, that works much like the editor in VC++. One of the problems I need to solve is custimization of key bindings. At the moment, the key comands are built in (hard coded) and I to eleminate that aspect of code.
Thanks!
INTP
Solve one problem at a time and eventualy you will have a complete solution.
|
|
|
|
|
Hi
I need to popup a menu after I click a button on a toolbar. How can I find the position of the button?
Thanks
|
|
|
|
|
CToolBar::GetItemRect(). Use CToolBar::CommandToIndex to get the index if you have just the command ID.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
hi,
I want to change the Color of Scroll Bars which are appeared with Edit Controls(Text Boxes)..
please reply me if any body know it
Thanks in advance..
|
|
|
|
|
Hi I'm getting an unhandled exception in MSVCRTD.DLL Stack Overflow.
Basically I can't see where it's coming from. The below try block call's itself recursively and doing some other stuff along the way until a global count has been reached.
The only exception i can trap is the catch all. Is there anyway of determining the type of exception? I can't work out where it is being thrown from?
code:
try
{
AddNextCallToPlayList();
}
catch( CMemoryException* e )
{
LOG_ERROR(_T("CMem\n"));
// Handle the out-of-memory exception here.
}
catch( CFileException* e )
{
// Handle the file exceptions here.
LOG_ERROR(_T("CFile\n"));
}
catch( CException* e )
{
// Handle all other types of exceptions here.
LOG_ERROR(_T("CException \n"));
}
catch(_com_error e)
{
LOG_ERROR(_T("catch com\n"));
}
catch(...) //__except(EXCEPTION_EXECUTE_HANDLER)
{
LOG_ERROR(_T("catch all\n"));
}
|
|
|
|
|
Either remove the catchall or set stack overflow exceptions to break into the debugger. Then you can look at the call stack.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
The problem is that it runs through this code at least 137 times without causing a problem. If i remove the catch all the stack is showing the current function but no where near anything that could cause a problem.
How do i set set stack overflow exceptions?
Your comments are appreciated
Carl
|
|
|
|
|
crandall wrote:
The problem is that it runs through this code at least 137 times without causing a problem.
It sounds like the stack overflow is being caused by unbounded recursion. Check to see if this function can be called recursively somehow, and if it is, make sure it doesn't get called too many times.
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"
|
|
|
|
|
It is being called recursively. How can i achieve this successfully?
Carl
|
|
|
|
|
You need to include some code to prevent the recursion from going too deep; you need to reduce the number of times the function is called recursively. How you do this is up to you, but you may need to convert the algorithm to an iterative one. If you can limit the depth of the recursion without ruining the algorithm then that would be the best option.
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"
|
|
|
|
|
Hi...
How can I simulate pressing the tab key with enter key. I have 5 edit controls in my view and I want to jump to the next edit control not by pressing the tab key but by pressing the enter key. I tried like this
BOOL CMyView::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->wParam == VK_RETURN)
{
PostMessage(WM_KEYDOWN, VK_TAB, NULL); UpdateCalc();
return 0;
}//if
return CFormView::PreTranslateMessage(pMsg);
}
this works exept, that this code simulate's a double key press of the tab key.
Please Help!
Thanks
My question is:
|
|
|
|
|
|
this works but still the code executes 2 times. Let's say that my position is on the first edit ctrl. When I press the enter key for the first time this segment of code is executed:
if(pMsg->wParam == VK_RETURN)
{
PostMessage(WM_NEXTDLGCTL); //the first time
UpdateCalc();
return false;
}//if
But after that the focus goes to the next edit ctrl?????
|
|
|
|