|
Sure - don't make your posts bold, it's annoying.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
asmarani wrote: I am working in project that have title "Remote Monitoring Webcam via Internet", so please any pody can help me please
If you'll change the title to "Hello World", I'm sure the project will be much easier.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I knew that.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Did you have any question?
|
|
|
|
|
Help with what? Also, pick a more descriptive subject line, instead of "Dear all"...
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi,
I need an algorithm that fits an ellipse to x, y points. I looked around online but there is nothing written in C++. Even a methodology to achieve a fit will be good enough and I will be able to write the code.
I also have the center position and all the raw data points. I need a best fit ellipse to it.
Any help would be greatly appreicated.
Thanks
|
|
|
|
|
If you don't mind playing with matrices, here's[^] a "numerically stable non-iterative algorithm for fitting an ellipse to a set of data points" (method of least squares).
/ravi
|
|
|
|
|
Hi,
I saw this from my searching online, but the problem is none of this makes sense to me.
Is there a step by step procedure to solve this problem.
Thanks
|
|
|
|
|
|
All,
Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application.
Thanks in advance.
|
|
|
|
|
You can embedd the media player inside your app as a control. My memory is rusty on how complex this is to do in C++, although I know it's trivial in C#, if you can handle a .NET dependancy, you could use the .NET control, although it just wraps WMP, so there's no reason you'd need to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
IMO the easiest way to play a WMV is to use DirectShow[^].
The SDK has enough sample code to do a player with minimal effort.
If you want to work with the files, the Windows Media Format SDK is a great
resource. See Windows Media Downloads[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
See MCI functions,you can find articles about it on the codeproject
|
|
|
|
|
I have since tried this and was able to load the video, but the playback is VERY choppy. It seems that it pauses about once a second as if it caching more of the video.
Any suggestions as to why this happens?
|
|
|
|
|
Could you load other formats like avi or Mpeg?
|
|
|
|
|
Hi,
I have a Windows service that I had running yesterday, but today I can't get it to start. I have gone back to my old code that ran yesterday, but it still doesn't start. How can I get an error code that will give me some hint of what the problem is? The failing code is shown below:
<br />
if( ::StartService(schService, 0, 0) ) <br />
{<br />
Sleep(1000);<br />
<br />
while( ::QueryServiceStatus(schService, &m_ssStatus) ) <br />
{<br />
if( m_ssStatus.dwCurrentState == SERVICE_START_PENDING ) <br />
{<br />
TRACE( "." ); THIS LOOP NEVER EXITS, SO I CAN'T GET AN ERROR CODE<br />
Sleep( 1000 );<br />
}<br />
else<br />
break; <br />
}<br />
I found an event in the application event log with the following description, but I don't know what it means:
The description for Event ID ( 0 ) in Source ( AutoFileHandler ) cannot be found. The local computer may not have the necessary registry information or message DLL files to
display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following
information is part of the event: Service installed.
Can anybody help me with this?
Any help greatly appreciated.
|
|
|
|
|
What happens whey try to start the service using the Standard Windows Services MMC snap in?
led mike
|
|
|
|
|
RoyceF wrote: ...but today I can't get it to start.
If StartService() is failing, have you tried calling GetLastError() to find out why?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When I try to start it from the services panel, it just hangs for 2 or 3 minutes before the system shows a dialog indicating that the service failed to start.
StartService() doesn't fail, nor does QueryServiceStatus(). QueryServiceStatus() puts zeros in the exit code variables dwWin32ExitCode and dwServiceSpecificExitCode of the SERVICE_STATUS struct. It just never exits the loop waiting for the m_ssStatus.dwCurrentState to change from SERVICE_START_PENDING. GetLastError() always returns 0.
|
|
|
|
|
RoyceF wrote: it just hangs for 2 or 3 minutes
Are you sure your service application is starting correctly
(particularly, SetServiceStatus() to SERVICE_RUNNING)?
Have you tried attaching to the service process with the debugger to see
what's going on?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, I have tried starting the service from the services snapin, then attaching the debugger. It is always stuck in this loop waiting for a change in the current state. I have also stepped into the code from the Winmain entrance and it goes directly to this wait loop. However, I will have to wait until Monday as I can't uninstall the service remotely in order to restart it and I am not at my workstation. So I will pursue this then.
Thanks for your help.
|
|
|
|
|
Hi guys. I need to put a web browser control into an application. I don't care what language I do it in, but I want to get events when a DOM event fires ( such as a mouseover or a click on a link ), and I want to get an event that tells me they are about to fire, which allows me to cancel the event. Is this even possible ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Is this even possible ?
That is all determined by the DOM. I don't do much DHTML any more but my memory is that not all events can be canceled. I would also not believe that all events have an associated preXXXX event or whatever they are called. So basically you just have to dig into the DHTML documentation. Bummer eh?
One other thing is the potential browser version variations of course. Unless you can control/demand version.
led mike
|
|
|
|