|
I want to know something about video chat.for example:whici protocal is preferred,which Interface is used to record video data and audio data.
I also want to know whether the data structure used to store the video data and audio data is the same.if not,the procedure of recording video and audio is separately executed.IGraphicBuilder and ICaptureGraphBuilder2 are used to capture video. and Recording audio data is execute by another interfaces?
please help me,thanks a lot
|
|
|
|
|
you question is very very general. what about fetching some information before asking?
there are articles about video capturing on cp!
Don't try it, just do it!
|
|
|
|
|
Could you give me some advices? such as book,URL etc. Thanks a lot
|
|
|
|
|
|
Hi,
how can i use the Console in vc++ .net?
I've seen an example code at MSDN like:
Console::WriteLine("blabla");
However, I need to reference the "System" namespace i guess...It's easy to do that in VB.NET and C# but how to do that in VC++.NET ?
Thanks
|
|
|
|
|
There's one crucial difference.
VC++ .NET is standard C++, you can write console applications by creating a file that contains the function main and links with the C Runtime Library.
However, Managed Extensions for C++ (MC++) is the C++ version you use to write software for .NET Framework. MC++ is the language that can be compared with C# or VB .NET, for example. VC++ .NET is not a .NET language.
In MC++, you need to use the import statements to use the .NET Framework. For example:
#import <mscorlib.dll>
#import <system.dll>
System::Console::Writeline( L"BlaBla" ); Microsoft is currently developing the C++/CLI specification, which is MUCH more flexible and usable than MC++. To write programs with this language, you need to have the Visual C++ Express 8 Beta version, available from Microsoft as a free download.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Thanks a lot
|
|
|
|
|
hi,
How can we use the thumbnail view in a list ctrl?
bye
|
|
|
|
|
|
Hello I am only a beginner. I like to ask if how to use visual c++? What are their variables?
Dark Angel
|
|
|
|
|
What do you mean with variables??
Hardy.
|
|
|
|
|
What to use in visual c++? I mean their language and code.
Dark Angel
|
|
|
|
|
Language -- for what?? Programming language - c++, Language for user interface ?? Whatever you like.
Are you a programmer?
|
|
|
|
|
Are you familiar with C or C++ programming?? Do you have any programming experience. If not, then I suggest you to learn C++ language first, before moving to Visual C++.
ARSALAN MALIK
|
|
|
|
|
Hi !
I'm calling a function of a api to which I have to give a pointer to a callback function. Here is the typedef :
typedef int (*proc_restore_progress_callback)(restore_progress_data*)
The problem is that I want, as the callback method, to pass a method of my own class. I tried something like this :
api_set_restore_progress_callback(JSPartLoader::setRestoreProgress);*)
Here is the signature of the 'setRestoreProgress' method :
int JSPartLoader::setRestoreProgress(restore_progress_data* pProgressData);*)
But I get a compiler error :
error C2664: 'set_restore_progress_callback' : impossible to convert the parameter 1 from 'int (restore_progress_data *)' to 'proc_restore_progress_callback'
Is it possible to give a class' method as the callback function or do I have to have a global function which will be the callback function ?
Thanks for your help !
Jerome
|
|
|
|
|
This problem is related to the class abstracty concept. As you specify that ClassA::MethodA is a callback function for some other function, then how, at run-time, can then code determine the correct instance of class ?
The problem is most often faced in wrapping Win32 API functions inside C++ classes. GameDev.Net has an excellent article about this, here[^].
If you wish to use a class method as callback's target, the method must be declared static, or you need to have a static router function that can flawlessly determine the instance to which the method should be routed.
Also, there is a Code Project article written by Nitzan Shaked here[^] that provides yet another approach to the problem.
Hope this helps..
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Many thanks for your help Antti ! I'll have a look at the different methods you suggest !
Thanks,
Jerome
|
|
|
|
|
Is there anybody who worked on memory leaks in MFC,
whenever a model dialog is open there is an increase of 4 k bytes of memory and when it is closed it is not released.
And also whenever a spin control is used for the first time there is an increase of memory which is not reduced when the dialog is closed.
Why it is like this? where is the leak?
vidya
|
|
|
|
|
|
Yes there is a leakage, when my application is started
it is having only mainframe that time the memory in task manager is 3500k
now i opened one dialog from the menu bar...and the memory increased to 3788k
when i closed that dialog the memory is not reduced back to 3500k
why it is like this? Is there any virtual function i need to call for this dialog?
In that dialog i am not allocating anything still when the dialog is initialized the memory is increased by not decreased on closing of that dialog.
vidya
|
|
|
|
|
The symptoms you have described do not mean it is a leak.
What happens if you repeatedly open and close the dialog? Does the memory keep increasing each time or does it stay at 3788k? I expect it will stay at 3788k or whatever indicating that it is not leaking.
Mike
|
|
|
|
|
visual studio .net normally shows up memory leaks after the program exited. try to execute the debug version of your software via vs .net.
Don't try it, just do it!
|
|
|
|
|
Did you actually read the article that Jon Hulatt was referring to? It explains why your memory used by your app doesn't decrease...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Dumping objects ->
{462} normal block at 0x00628CE0, 36 bytes long.
Data: <192.168.100.83 S> 31 39 32 2E 31 36 38 2E 31 30 30 2E 38 33 00 53
strcore.cpp(118) : {456} normal block at 0x00628D30, 23 bytes long.
Data: < Prod> 01 00 00 00 09 00 00 00 0A 00 00 00 50 72 6F 64
strcore.cpp(118) : {455} normal block at 0x00628D80, 30 bytes long.
Data: < name> 01 00 00 00 10 00 00 00 11 00 00 00 6E 61 6D 65
strcore.cpp(118) : {454} normal block at 0x00628DD0, 29 bytes long.
strcore.cpp(118) : {331} Memory leaked!
I am getting like this when i use DumpAllObjectsSince(); while checking for memory leakage.
Where is the leakage?
vidya
|
|
|
|
|
Hello,
Maybe you are doing some things with a CString that you shouldn't. For exemple when you manipulate the CString contents directly without calling CString.ReleaseBuffer() will result in behaviour you don't want...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|