16,016,501 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by RamyaRaj from NewDelhi (Top 29 by date)
RamyaRaj from NewDelhi
2-Jun-11 1:19am
View
ok , If I use PostMessage(WM_QUIT) then there is no need of using WaitForSingleObject or Terminatethread to termintae the thread.
RamyaRaj from NewDelhi
1-Jun-11 1:24am
View
hi Albert Holguin,
If I use PostMessage(WM_QUIT) it will post that message to process or thread.If it process to thread then this PostMessage will send message to which thread ,because I am using 16 threads one for each camera.Can you please help me out.Thanks in Advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
24-May-11 6:11am
View
Hi to all,
Can anyone please help me out from this problem still I dint find any solution to this.If I am not able to convey my question properly ,Please can anyone help me how to post this question.
Thanks to all in Advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
23-May-11 0:35am
View
Ok Albert Holguin,
To terminate thread can i use WaitForSingleObject function
RamyaRaj from NewDelhi
21-May-11 5:47am
View
hi Albert Holguin, I created Pointer variable Seperately for all threads.I made a mistake of using timers,now i removed timer.But how to terminate thread and how to find wheather thread is terminated properly or not.While exiting my application i am suspending thread and terminating it but still its not terminating.Is there any other way to terminate thread.Here is the code what i used. here m_iCamNo is camera number(I used 16 cameras). if(m_ThRecieveImage[m_iCamNo]) m_ThRecieveImage[m_iCamNo]->SuspendThread(); ::TerminateThread(m_ThRecieveImage[m_iCamNo],90);
Is there any thing wrong in that. Thanks in advance.
Regards, RamyaRaj.
RamyaRaj from NewDelhi
21-May-11 5:34am
View
hi Albert Holguin,
I created Pointer variable Seperately for all threads.I made a mistake of using timers,now i removed timer.But how to terminate thread and how to find wheather thread is terminated properly or not.While exiting my application i am suspending thread and terminating it but still its not terminating.Is there any other way to terminate thread.Here is the code what i used.
here m_iCamNo is camera number(I used 16 cameras).
if(m_ThRecieveImage[m_iCamNo]) m_ThRecieveImage[m_iCamNo]->SuspendThread();
::TerminateThread(m_ThRecieveImage[m_iCamNo],90);
Is there any thing wrong in that.
Thanks in advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
21-May-11 5:27am
View
hi Sakryukov,
Now i removed timer in my code.I am creating thread for each camera is it anything wrong.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
20-May-11 2:17am
View
hi SAKryukov,
I used AfxBeginThread to create thread.
CWinThread* m_ThRecieveImage;
m_ThRecieveImage = AfxBeginThread(RecieveImage,m_CamNo,THREAD_PRIORITY_NORMAL,0,0,NULL);
I am using 16 cameras for each camera i am creating one like this.And in timer also i am calling this continuosly.
Can you please help me out from this problem.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
17-May-11 3:49am
View
I developed my server using visual C++ by using CSocket
RamyaRaj from NewDelhi
11-May-11 4:18am
View
Actually I am able to stream like a video in my client program (i.e., in my application GUI) but in web browser i am not able to stream like video.If I enter ipaddress and port number in web browser it sending request only once again if i press refresh it sending request again,so how to send request continuously from web browser once i enter ipaddress and protnumber.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
10-May-11 9:22am
View
is there any way of finding from where request came.Means i am using accept function which gives the handle of the socket from where i got the request,so from that i can access my image continuosly if i got request from any web browser.Can you please help me out from this problem.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
10-May-11 6:43am
View
i can use JavaScript, html5 or flash in VC++ I donot know how to do that did you have any idea about that.Can you please help me out.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
10-May-11 3:45am
View
Hi Kurt Degiorgio,
I am using TCP protocol for sending data.
In my client program I am able to stream like a video in my client program I am receiving 1 image and displaying it on my main CWnd so I am repeating it in a thread.But in browser I am getting only image/Snapshot if i refresh i am able to see the next image.How can i stream it like a video in WebBrowser.Thanks in advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
9-May-11 5:19am
View
Can anyone help me out from this problem still i dint get any solution for this.Thanks to all in advance
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
9-May-11 3:48am
View
yes your right
RamyaRaj from NewDelhi
9-May-11 3:09am
View
No ,It should stick to my window it should not pop up like a new window.If it stick to my window then the interface is like preview is on my main CWnd not on separate window.So when i click on any Video window i need to make that particular camera as active camera and i need to do further process based on that.
So when i use the following code i am able to stick the VideoWindow to my Main CWnd
pGraphList[CamNo]->QueryInterface( IID_IVideoWindow, (void**) &pVidWin[CamNo]); pVidWin[CamNo]->put_Owner((OAHWND)hWnd); pVidWin[CamNo]->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS); pVidWin[CamNo]->put_MessageDrain( (OAHWND)hWnd ); pVidWin[CamNo]->put_Visible(OATRUE); pVidWin[CamNo]->SetWindowForeground(-1);
But I am getting problem at click events.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
9-May-11 2:27am
View
IT IS LIKE OPENING THE CAMERA PREVIEW IN A SEPERATE WINDOW NOT STICKING ON TO MY MAIN CWnd
RamyaRaj from NewDelhi
9-May-11 1:11am
View
hi barneyman,
Why these are opening in Active movie window how can I solve this problem.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
7-May-11 8:08am
View
hi barneyman,
I tried your solution but preview from all cameras are opening in activewindow when i tried to use WS_CLIPSIBLINGS its generating error
when i used
Create(WC_STATIC, "", ws_child | ws_visible, where, parent, id);
what you suggested me its providing error like create doesnot take 6 parameters so i did in the following way
CWnd* pWnd = new CWnd;
pWnd->Create(_T("STATIC"), "", WS_CHILD | WS_VISIBLE, where, parent, id);
wheather this may be a cause for opening in Active window mode
And also
when to call this
void OnLButton(UINT flags, Point where)
in our child window class
or it will automatically enters into it when we click on IVideoWindow because of message drain.Can you please help me out from this problem.Whether I am going wrong anywhere.Thanks in advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
5-May-11 9:08am
View
sorry really i dint get you how to pass that message can you send me once again clearly waht i have to do
I dint define any clickevents to my IVideoWindow
how can i define this
ChildWnd::OnLButtonDown( UINT nFlags, CPoint point) {
---------
}
Sorry to trouble you
Regards,
RamyaRaj
RamyaRaj from NewDelhi
5-May-11 8:42am
View
yes i am using MFC only
here ChildWnd means my IVideoWindow
RamyaRaj from NewDelhi
5-May-11 8:38am
View
ok Olivier Levrey thanks for your help if you got any information about this can you please add your solution to me.Thanks for your help.
Regards,
Ramya Raj.
RamyaRaj from NewDelhi
5-May-11 8:26am
View
these are few lines of code wat i am using
pGraphList[CamNo]->QueryInterface( IID_IVideoWindow, (void**) &pVidWin[CamNo]);
pVidWin[CamNo]->put_Owner((OAHWND)hWnd);
pVidWin[CamNo]->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS);
pVidWin[CamNo]->put_MessageDrain( (OAHWND)hWnd ); pVidWin[CamNo]->put_Visible(OATRUE);
pVidWin[CamNo]->SetWindowForeground(-1);
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
5-May-11 8:21am
View
ya i created seperate Window for each message but how to know which iVideoWindow is giving this event.When i click it is entering directly into ON_LbuttonDown Function Only i am getting coordinates of the point nothing other than that.
RamyaRaj from NewDelhi
5-May-11 8:17am
View
when i am using MapWindowPoints it is not accepting 4 parameters as argument even i included winuser.h windows.h user32.lib also linked anything else i have to add to use this MapWindowPoints
Regards,
RamyaRaj
RamyaRaj from NewDelhi
5-May-11 7:26am
View
yes even i used put_MessageDrain evevt to pass handle of my click events to main window but when i click on IVideoWindow the coordinates what i am getting are corresponding to that window but not to main Hwnd.
RamyaRaj from NewDelhi
5-May-11 7:24am
View
Hi Olivier Levrey,
I am calling this ClientToScreen function in LButtonDown function of my main Dialog.when i click IvideoWindow i am getting only the information about point where i clicked but not from which IvideoWindow i got this Click.I am Creating Seperate handles to all IVideoWindows.I am using put_MessageDrain event to pass message handlings from IvideoWindow to my main Dialog Message events like LButtonDown,OnMouseMove,RButtonDown etc.,so wen i left click on IvideoWindow it passes message to ON_LButtonDown Function of my MainDialog.Can you Help me out from this Problem Thanks in Advance.
Regards,
RamyaRaj.
RamyaRaj from NewDelhi
5-May-11 7:17am
View
hi barneyman,
thanks for your solution,but here in MapWindowPoints we need to pass first two arguments as from which Window to which window we need to change the coordinates but here when i click the IvideoWindow i am getting only the information about point where i clicked but not from which IvideoWindow i got this Click
so how can i pass HWnd information to that function can you help me out from this problem.Thanks in Advance
Regards,
RamyaRaj
RamyaRaj from NewDelhi
5-May-11 1:30am
View
hi Olivier Levrey,
Thanks for your reply but my problem is when i click on the window means not not on the main window it is on IVideoWindow what i used for streaming video . If i convert the coordinates using Clienttoscreen method for all IvideoWindow's its giving same coordinates is there any method to convert that coordinates to screen coordinates.Thanks in Advance.
Regards,
RamyaRaj
Show More