Hi, your project really help me a lot. During the code modification, I found that the application still running though the UI is closing when user close the application without disconnect it. Can you help me to figure it out? Thanks. I am running using VC++ .NET but I think this is not the reason because the provided demo also have this problem.
ReplyHi, I have a problem compiling the project under VS.NET 2003. The error is fatal error C1852: '.\Debug/VideoNet.pch' is not a valid precompiled header file Now if i change the setting in the Precompiled Headers section of the project properties, 9 other errors surfaced, error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall RecordSound::* )(WPARAM,LPARAM)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)' The errors only happen for the RecordSound.cpp and PlaySound.cpp Is this a problem with me using VS.NET? or am I missing something? Sorry for asking such a question :) as I am quite a newbie in this. If someone has a solution for this i would be very greatful Thanks.
sklim,please, could explain me how you have modified the code??Reply
I faced this problem also and solved it by changed the LRESULT to void for the function and also the declaration of the function.
ReplySince it has designed with VS6.0 ...some changes are required in case of .net version.. But this is common error..."not valid header file" Do the rebuild once again....it will resolve... For the problem with record sound and playsound.cpp you may have to do some other changes...i am not aware of...
Replydear mr when I set 16bit video format, the images of screen is full. but set 24bit video format, the images of screen isn't full. how can I do set this images is full with use the 24bit video format. thanks
I do not find any problem with this settings.. But these settings are depends upon the web cam... So if you web cam does not support these settings then it will not work...But these is general settings ...most of the new web cams should support it.. You open your webcam using any other software ..and check its settings... For any further problems please send mail to tnagareshwar@gmail.com ....It is easy for me to reply directly..otherwise i have enter codeguru....and it takes so long........thanks
Replydear mr my video capture is BT878. following it is my codes. BOOL VideoCapture::SetCapturePara() ... // Set Video Format parameter ... m_bmpinfo.bmiHeader.biSize=40; m_bmpinfo.bmiHeader.biWidth=176; m_bmpinfo.bmiHeader.biHeight=144; m_bmpinfo.bmiHeader.biPlanes=1; m_bmpinfo.bmiHeader.biBitCount=24; m_bmpinfo.bmiHeader.biCompression=0; m_bmpinfo.bmiHeader.biSizeImage=0; m_bmpinfo.bmiHeader.biXPelsPerMeter=0; m_bmpinfo.bmiHeader.biYPelsPerMeter=0; m_bmpinfo.bmiHeader.biClrUsed=0; m_bmpinfo.bmiHeader.biClrImportant=0; ... where is the wrong in these codes ? thanks
Replyhello , i am not able to make out where you are setting this video format... In my code ... i have used image_width and image_height parameters to specify the size....i haven't used setting like this in my code... can you please provide more details...about where you have done the changes...have you done it in your web cam? or in the code itself...? mail me at tnagareshwar@gmail.com
Replyhopefully it will be implemented in next version..if you need..you can try to implement...i will provide full help...thanks
You just have to use better quality image for sending and receiving. You can send in small size , but make sure that the quality is good. and at the receiving side you have stretch the image using good stretching function to display it as full screen ...
Replyhi am trying full screen implementn.plz provide help on how to go abt it?
Replydear mr sorry,my english is poor. I want say that this program's images isn't full ont the screen
Replydear mr, why I cant show full screen?
ReplyThis is what I need ! Thanks you very much, but I have a problem now ! I try to resize the image when display, but I can not ! Do you help me ? Thanks a lot !
To solve this problem. I think that we're used the following APIs: 1. SetWindowPos 2. SetClassLong Please refer to MSDN from Microsoft for more skill. OK ?
Replyhi.. currently it don't have resize feature...I am using standard size..due to some devevelopment probs....solved soon...
Replythanks for this demo. It is very useful. I was seeing intermittent connection success. Turns out that in the connect dialog, I was using ENTER sometimes and clicking CONNECT sometimes. The default behavior for ENTER is to cancel the dialog so it wasn't even trying to connect. I changed CONNECT to be the default button in the dialog instead of CANCEL.
thanks for doing that..i did not know how to do that...can you tell me how to do that..???
ReplyNagareshwar Talekar, You are great! this is the program i want. but it crash at ConvertRGB2YUV ( line 86)! why?
Experimenting with the peer to peer video app over wireless units I see it is very stable and works for many minutes when at close distance; but crashes every time when distance increases or dynamic video activity increases or combination. assertion fails at sockcore.cpp line #924 Socket send is in a callback thread from the vfw video function. this microsoft issue describes a problem with socket activity on the same socket across multiple threads: http://support.microsoft.com/default.aspx?scid=kb;en-us;140527 I put SendMessage(WMUSER_VIDEOSEND2) in the callback thread with the video hdr ptr argument; I added OnSendVideo2() message processing function to actually make the socket call to send the video data in the videonetdlg processing thread. I'll summarize my changes later if you are interested.
Replyi will assume that the capture device is capturing the frame in rgb24 format...some device capture in YUV format or other...the problem is that i am not doing any checking for YUV format,rgb format..etc I will add this in next version... thanks..
Reply