|
I am sorry and thank you for your answer. Actually I got this problem last week and solved it by using WM_LBUTTONDOWN. Actually I want to know why the above mentioned problem happens with WM_LBUTTONUP? Could you please tell me?
akt
|
|
|
|
|
Hello all,
I want to make an application that can convert PCMU data to MP3.I am able to do it using files but i want to do it as online(packet by packet).
My program uses lame MP3 encoder to conver PCMU to MP3.
Is there anybody who can help me out on this?
I dont know whether i am putting question in right forum or not.
Thanks in advance.
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Google for Oreka.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
How to do it?
Help says use RenderStream() twice:
hr = m_pCapture->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, pSrcFilter, NULL, NULL);
hr = m_pCapture->RenderStream(&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Video, pSrcFilter, pEncoder, pMux);
But the second call to it always fail, so it could be either preview or capture.
????
chesnokov
|
|
|
|
|
Chesnokov Yuriy wrote: But the second call to it always fail
any error message ?
|
|
|
|
|
the same document [^]says, "If the filter has only a capture pin, the Capture Graph Builder uses the Smart Tee filter to split the capture stream".
May be the capture filter has only one capture pin, check the hr, error code might be VFW_S_NOPREVIEWPIN.
|
|
|
|
|
I'll see the error code.
But it works as either preview or capture, but not them together. The cam is acer laptop web cam. I need something generic to capture and preview at the same time
chesnokov
|
|
|
|
|
yes, you need to check the error code, BTW, Graphedit tool can be used to check the graph building, may the intermediate and mux filters are not connecting in the second statement.
|
|
|
|
|
I planning to make Web Crowler / Robots / Spiders. Can you provide some sample codes / projects for the same.
|
|
|
|
|
You can ask here[^] with your keywords as input.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
no, we don't prodive code samples.
but can we help on specific questions though.
|
|
|
|
|
Why you cant prodive code for s(he) now s(he) can completes this project!
|
|
|
|
|
sumit.durg wrote: I planning to make ...
You're planning to make something or you're planning to download something that's been already done by someone else?
Why is that immediately after you have a plan to make a web crawler, you want sample code? What can you possibly do with it? Rename and sell? Have you analysed the requirements? Are they well defined at first? Do you have at least a vague design in your mind? Do you have a proper roadmap? Have you set your goal points?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Its not like that, I need some algorithm / Logic. How it can be made.
|
|
|
|
|
There's a book titled,"Programming Bots, Spiders, and Intelligent Agents in Microsoft Visual C++" authored by David Pallmann that explains interfaces and has code examples.
|
|
|
|
|
Hi, i have a problem with an ActiveX Control that was developped in VS C++ 2005 using MFC. It works perfect in C++,VB, ActiveX Testcontainer. All events are fired proberbly (using FireEvent). Now we have to develop a program in Access 2000 and we need this control there. All methods work fine, but not a single event is fired in Access, not even a OnMouseMove event. Does anyone have similar experiences and possible solutions?
Thanks for any answer.
|
|
|
|
|
I am a newbie and this is my first program...
#include "stdafx.h"
#include "conio.h"
#include "stdio.h"
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Hello!";
return 0;
}
But when I built, it thre follwong error...
<br />
Error 1 error C2065: 'cout' : undeclared identifier e:\visual programming\practices\test\test\test.cpp 11 test<br />
Mohsin Ali
|
|
|
|
|
cout is part of the std namespace, so either write std::cout or put a using namespace std on top of your file (after the header file inclusion).
Another point: conio.h and stdio.h are for C. If you are using cout (which is part of the C++ standard library), you should #include <iostream> instead.
|
|
|
|
|
Cout is declared in iostream header.
#include "iostream"
using namespace std;
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
mohsindeveloper wrote: #include "stdio.h"
Hint: Stdio.h is for C-Style input output routines. Can you guess what header has the prototypes for C++ style input output routines?
[Add: Oh my Gawd! Two people beat me to it already ]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Add this header file
#include <iostream>
And also write cout as
std::cout<<"Hello!";
|
|
|
|
|
Yuppeee!!
Program has built.......
Now how can I run it.. i.e. I want to see the output of my program..
Mohsin Ali
|
|
|
|
|
Either add getche() before return statement and press F5.
or
Go to command prompt and run your program exe directly.
|
|
|
|
|
Error!!!
Error 1 error C3861: 'getche': identifier not found e:\visual programming\practices\test\test\test.cpp 13 test<br />
Mohsin Ali
|
|
|
|
|
to use getche() you will have to use #include <conio.h>
by the way you should choose second option.
|
|
|
|