|
I have a c++ application that i am attempting to launch a video clip that is located on a web server over a web browser. Can i use the shell execute function for that?
Also, is there such a thing as an html window that i can use to launch the video in.
If none of the above, i am open to other ideas...
Thanks,
|
|
|
|
|
LCI wrote: Can i use the shell execute function for that?
Yes.
LCI wrote: Also, is there such a thing as an html window that i can use to launch the video in.
Can you use CHtmlView ?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Never used CHtmlView before.
Any thoughts on how to use?
I will do a search on help.
|
|
|
|
|
LCI wrote: Any thoughts on how to use?
Yes. What exactly is it that you want to know?
LCI wrote: I will do a search on help.
Start here.
"Take only what you need and leave the land as you found it." - Native American Proverb
-- modified at 10:48 Monday 24th October, 2005
|
|
|
|
|
I simply just want to use it to launch a video clip located on a web server. I figured that using this will have a cleaner windows look than using shellexecute to launch an IE browser.
Can you resend the link that you were recommended? Does not look like it came through...
Thanks,
|
|
|
|
|
LCI wrote: I simply just want to use it to launch a video clip located on a web server. I figured that using this will have a cleaner windows look than using shellexecute to launch an IE browser
But if the video clip is associated with a browser, that's exactly what ShellExecute() will use.
LCI wrote: Can you resend the link that you were recommended? Does not look like it came through...
Try again.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hmmm, maybe i was wrong in the way i am thinking about this.
I though that with Shell execute, i will launch a .avi and it will play it through whatever player is on the system. Like Media player etc.
However, i thought with the ChtmlView, it will be played in a windows window view and look like part of your application rather than say a media player.
Am i way off?
|
|
|
|
|
The design is such that this clip will just sit on a web server.
The application should be able to hit that web server and play the clip in question.
I was going to use ShellExecute but figured that CHtmlView may have a cleaner look.
|
|
|
|
|
LCI wrote: I though that with Shell execute, i will launch a .avi and it will play it through whatever player is on the system.
That's exactly what happens by default. You can always have it open some other application by specifying the name of the .exe file and supplying the .avi file as a command-line argument. There's also CreateProcess() . I'm not for sure if it can deal with a URL or not.
LCI wrote: However, i thought with the ChtmlView, it will be played in a windows window view and look like part of your application rather than say a media player.
You thought correctly. The media player, probably an ActiveX control, will be embedded within the view.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
LCI wrote: I have a c++ application that i am attempting to launch a video clip that is located on a web server over a web browser.
I don't understand, you want to launch a browser with the URL pointing to the video ? or display the video in a browser inside ( from within ) your application ? or something else ?
You could use ShellExecute to launch the browser with the appropriate URL
for example :
::ShellExecute( NULL, "open", "http://www.codeproject.com", NULL, NULL, SW_SHOWNORMAL );
I think that if you put in a filename/URL with a media file type that is associated it will try to load the registered application for that file type ( or maybe will ask to save the file instead ).
if you use an htmlview class, you will ( might ?) have to create the html code to display the video inline instead of the browser trying to save as an external file.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
There will be video clips on stored on a web server.
I have an application that should be able to run any of those clips once i click a button pertaining to said clip from the C++ application.
So if clip is called 123.avi and located on say http:\\webserver\123.avi
the application should be able to play this clip.
I have used shell execute and it launches the app associated with the video to play the video.
I would like to have it so that the video plays within a windows style window and looks like part of the application and not a separate media player or such.
I was looking into using CHtmlView instead of ShellExecute to achieve this cause i do not think that ShellExecute can.
|
|
|
|
|
then insert an activeX control in you UI ( as suggested by david ).
you will have to download the file from the server.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
sir,
i make obe program in MFC .i want to debug any memory leaks in my program .how can i find out memeory leak
|
|
|
|
|
|
aloktambi wrote: how can i find out memeory leak
by seeing the memory use growing and growing while your application is running...
this is very hard to track with a tool...
the best thing to avoid memory leaks is still to take much care when handling heap memory... when you malloc() or when you new some memory on the heap, be sure to free() or delete it when it is no longer used...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
If you want an easy solution (yeah, I always prefere a solution where I don't need to read a bunch of articles ), you can simply launch the debugger (press F5) and then, when your program exits, you will have a dump of all memory leaks your program produced (and you can double-click on the lines and it will show where the memory has been allocated).
But this works only when the memory has been allocated with new and of course it only shows you the memory leaks your program produced (not all potential ones). That is, if there is function that is called when you press a button and if there is a leak within it, if you don't press the button, the leak won't be detected.
|
|
|
|
|
hi
how can i have a custom control in a property page?
i think i may register a window class, but i don't know how.
i think another way may be overriding OnPaint on a CStatic, but i know how to do it only in a dialog, not in a property page.
besides, controls may have undefinable IDs, that is a control may get its ID dynamically which is not constant to define a variable based on it.
help me please
|
|
|
|
|
Hi,
I'm trying to separate the mouse cursor movement from the mouse movement...
The problem is, when using a touchscreen monitor, I can capture the touch events using RawInput, and I want to process those events internally, without the mouse cursor moving.
However windows sees the touch event and moves the cursor.
So, is there any way of separating mouse events from the on-screen cursor movement, such that the on-screen cursors position is controlled purely by my application.
Thanks...
Simon
|
|
|
|
|
U can use the HOOK fundamentals of the windows OS
just track the mouse_events
Get the mouse coordinate sotre it in some variable
in the application the u can reset the mouse cursor
to its original coordinates
Its a long time i have used hook so u can just go
throught some projects on this site , and check that
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Thanks,
Unfortunatly, this doesn't prevent windows moving the cursor, so you still get the cursor jumping to the unwanted position then going to the wanted position...
|
|
|
|
|
How can i use the Dynamic Data Exchange with the combo box.
I just want to initialize my combox box with an element at
index 0.
Is it possible by DDX to restore the selection done by a user??
thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: I just want to initialize my combox box with an element at
index 0.
If the control is empty, use AddString() . Otherwise, use InsertString(0, ...) .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi David
Actully i mean that i wanted to use the
dynamic data exchange.
As for the Edit box we can Initalise & use the variable defined
as the CString by using the Wizard.
To initalise a editbox varibale CString m_passwordvalue
we can add this code to the dialogbox constructor
m_passwordvalue = _T("1");<br />
m_usernamevalue = _T("PMR");<br />
By the DoDataExchange function the data from the edit box is
transfered to the varibale (m_passwordvalue) on doing
UpdateData(FALSE)in any of our functions ;
<br />
void LoginBox::DoDataExchange(CDataExchange* pDX)<br />
{<br />
CDialog::DoDataExchange(pDX);<br />
DDX_Control(pDX, IDC_PASSWORD, m_password);<br />
DDX_Control(pDX, IDC_USERNAME, m_username);<br />
}
I wanted to use the same fundamental for the ComboBox is it
possible ???
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: is it
possible ???
Anything is possible, but the bigger question is why would you want to? Populating listboxes and comboboxes using DDX is just kludgy.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I want to use "Specstrings.h" , Perhaps I should install "Microsoft Platform SDK for Windows XP SP2",
But in microsoft site , I couldn't find "Microsoft Platform SDK for Windows XP SP2", who can tell me where can I find it?
Please help, Thanks a lot !
|
|
|
|