When i see your reply i think you have problem with mci functions but now that i see your reply it seems that you have a problem with CAnimateCtrl well first you dont need to use create you can insert this control from toolbox.
You said that path is correct well if you use from example clock.avi that is in windows whats happen?
are you getting same error or not,check this file and answer to me,please
When I run the file clock.avi , every thing is OK
But When I use the same program with my own avi file ie: day1.avi , the program does not work.
Is there a problem with my avi file? I can run it with microsoft window media player , no problem.
Hi Mr alex_kenobe
Well i dont know whats your avi file?you have a avi file or you create a avi file in a program like 3dmax and now you want to open it
but if you can open this file with media player and you sure that path is correct in your program i can say one suggestion to you.Used from mci
if you use from mci functions you can open avi,mp3,mpg and.... whit it because you can open clock.avi so your code doesnt any problem and problem is path or avi
but i guess if you can open it with medai player you can open your file with mci.
I hope its helpful for you but if you have questions if i can i help to you.
Tanks for your help, I read from msdn that CAnimateCtrl can only play non-compressed avi file.
I got the avi file from the internet and I donnot know if it is compressed. I am now trying mci and vfw hopefully can get some result.
Do you have any suggestions of how to use mci or vfw?
I am trying to use mciSendString to display the video , how do I postion the vido display in relative to my dialogBased application? , or If I can you other mci commoand which allows me to position the video display.
Hi alex, How are you,i think its morning in your country,right?
You want to set location from your video window,right? MoveWindow(...),SetWindowPos(...)are for position and size(dimensions) from a window
well you want to change position from your window so you need to get a HWND of your window
for example ::MoveWindow(m_hWnd,0,0,200,200,1);.
Now when you run previous code you get a handle(HWND) and you can set new location.You can get GetClientRect(hWnd,LPRECT); ScreenToClient(LPRECT); for retrieves coordinates from window.
well whats your problem?Do you have any problem yet?
I am very thankful of your kind patient and help, very much appreciated.
Yes, I have a problem.
What I am trying to do is to crate a dialogbased application using vc++.net.
On the application dialog box, I have a "play video" button, when I press the button, I like to have a video file playing on the right hand side of the dialog box ( within the application dialogbox).
I am using mci command, my problem is how to display the video at the location I wanted.
I'm trying to develop a communication between my computer (which runs on windows XP) and an external device which is connected through USB. I've built a driver using libusb-w32 which seems to be running fine. Then, following some tutorials I've found, after enumerating all the USB devices I'm using CreateFile function to establish a link. The problem is, the function returns a bad pointer (0x00000fb8) but GetLastError() returns 0, so I can't figure out what's happening...
Does anyone know why this happens? Isn't there an easier way to communicate w/ a USB device or is CreateFile the easiest?
Yep, tried using that pointer, but ReadFile returns a error. Error 9, I think... So, after that I checked the handle and it is invalid (hUsbDev = INVALID_HANDLE_VALUE). It also seemed valid too me, but it seems it isn't... =S
However, CreateFile returns 0, so it succeeds. Now what?
Hi , I'm writing a design tool , wherein i am to show few mathmatical equations. Right now i'm showing them as Plain text equations which looks unprofessional and clumsy . Does MFC have support for MathML ? or any other kinda framework for rendering Mathematical Equations. Finally i wish to have as good equations rendering as in mathmematica. .NET supports MathML and i found few links for doing it in .NET , but not sure abt MFC. Any kinda help wil be appreciated.Thanks.
I don't think you'll be able to display mathematical expression with just the MFC's (never heard of a thing in MFC that was able to do that, but I might be wrong). However, this control[^] seems to do what you are looking for.
I needed a very light-weight XML parser in MFC. The reason for this is, my application (this is an MFC based application using Visual Studio 6.0 ) needs to work fine on Win 98, ME, 2k, and XP. And I donot want to use the DOM Parser that would require any additional dlls to be install.
Please help get the source code for the simple parser in MFC, or plain C++ that would on all the said OS's without any additional dlls.
Any help or comments or tips would be highly appreciated.