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.
MSXML comes with Internet Explorer (which is required to be installed with Windows in every OS since Win98). It has both a DOM and SAX parser.
TinyXML implements as little of the DOM standard as possible to make a decent parser. You might call it DOM-lite, but it is still, technically, a DOM parser. The nice thing about it is that you can compile it into your application.
Xerces is another opensource parser that supports the full DOM and SAX standards, but since you don't want to install a DLL, this probably isn't the route you want to go.
Since your OS restriction is limited to the Windows family, your best bet is to use either TinyXML or MSXML. MSXML offers all the features you would ever need and then some, and is guaranteed to be installed on all the given OS's (just make sure you bind to an older version).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week