|
Does anyone have a pointer to understandable source that shows how to read in an avi
with directshow and create a new avi with the processed bits from the first avi.
Im just looking for how to write the new avi.
Thanks,
|
|
|
|
|
Hi!
i want to create a multi-form-based application with mfc. I've read this tutorial:
<url=http: www.functionx.com="" visualc="" controls="" forms.htm="">http://www.functionx.com/visualc/controls/forms.htm
but i can't understand the one of the last steps, number 38 to be exact.
Is there another tutorial on the subject? there are many ones for adding dialogs, but that's not what i'd like to do
thanks!!
|
|
|
|
|
Hi,
kfaday wrote:
want to create a multi-form-based application with mfc. I've read this tutorial:
http://www.functionx.com/visualc/controls/forms.htm
but i can't understand the one of the last steps, number 38 to be exact.
What is it (exactly) that you don't understand about step 38?
The step talks about adding UI handlers. Rather than add handlers for each and every command, MFC has MACRO's that help with a range of command ID's.
So for the OnUpdate UI handler, you are handling command ID's from ID_VIEW_EMPLAPP to ID_VIEW_REQTIMEOFF, e.g. if ID_VIEW_EMPLAPP has an ID of 34000 and ID_VIEW_REQTIMEOFF of 34004, then we would be handling ID's 34000,34001,34002,34003, and 34004.
The function itself is simply saying "set the UI as checked (ticked) if the ID of the command (34000 - 34004) is equal to the value of m_CurrentView.
Also, note that the ON_*_RANGE macros are outside the AFX_MSG_MAP macro's. This is because Class Wizard does not support these macro's and if you had put them inside, the next time you use class wizard to handle another message, the RANGE macro's would have gone!
Hope this helps,
Andy
|
|
|
|
|
i was able to complete that project. What it does, is to change the view in the same window, (it switches through different CFormView objects.. each one with a dialog, )
What i want to do, is a messanging (like icq, or msn) program. So when you double click on an user in the list, a new chat window opens. I was able to acomplish that with modeless dialogs, but that's not what i want. I'd like resizable windows.
any ideas?
thanks!!
|
|
|
|
|
Hey all. I'm wondering if someone could point me to the correct method to use for getting user input through a messagebox? (IE, I want to display a box that says "Enter Password", and gives the user a field to type in a password and it returns that value). I thought that this could be done by doing something to the effect of sPassword = MessageBox(...);, but it isn't working. I've been through the list of methods for CWnd but still can't seem to find it.
Thanks!
|
|
|
|
|
You can't find it because AFAIK it does not exist. You need to create your own input dialog. Dialog boxes return a code to show which button was pressed.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Just curious Christian, what does AFAIK mean?
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
|
Thanx.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
How do I plot a simple graph like a*x^2+b*x+c=0 with Visual C++.Help me with some code or anyhting else
|
|
|
|
|
You use brute force; a series of for loops inside each other.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
When asking a question, don't make the subject 'how do I' ? Everyone wants the answer to that question here, it's the rest of the question that matters. For example 'drawing a graph' is a subject that would attract the attention of people who can help you.
Basically, create a bitmap, loop over values for x, calculate y, and plot your pixels accordingly.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I saw a created, dynamic graph somewhat last year. The way it was done:
draw your graph field with rectangles and lines. (eg white rectangles and some gray reference lines., the axis were drawn seperatly)
put your values in a CPoint Array and draw these values with polyline I think.
Do some reading about drawing and you'll figure it out.
Hope it helps!
|
|
|
|
|
I want to use WIN32_FIND_DATA to try to find folders, on the system, that contain a certain string. How exactly would I do this. Source code would help
-Ryan M.
|
|
|
|
|
|
I tried that a long time ago. It didnt work. I even used the correct includes.
-Ryan M.
|
|
|
|
|
Well, I assure you it works. I have a half dozen programs that use this code, with some minor modifications of course.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
sorry buddy but it doesnt seem to search for folders that "contain a certain string" and not only that it doesn't seem to go through sub folders. Also it doesnt find all the folders that contain the string. Just another thing to say it doesnt start from the top level directory, C:\ for instance. So dont go saying that yours works because it dont
-Ryan M.
|
|
|
|
|
It doesn't search for folders which contain part of a string, it recursively looks for folders which ARE a specified string starting from the current directory, which is what the original poster was looking for. I never said otherwise. It is your job to modify the source for your own use.
If you modify the "else if" section in "walk" to the following:
else if (!IsDots(findData.cFileName))
{
::SetCurrentDirectory(findData.cFileName);
TCHAR path[260];
::GetCurrentDirectory(sizeof(path) / sizeof(TCHAR), path);
_tprintf(_T("Changing to: %s\n"), path);
foundDir = Walk(pDirToFind, pFinalPath);
::SetCurrentDirectory(_T(".."));
}
Then add:
::SetCurrentDirectory(_T("\\"));
in main() just after the first if() section, it will search the entire drive, displaying the directories recursed, until it finds the directory MATCHING that from the command line.
If this doesn't work for you, you are compiling and/or running it incorrectly. You are also making no effort to determine why it isn't performing as you expected.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
thanks. I got it to work. sorry i got pissy.
-Ryan M.
|
|
|
|
|
|
uhh yeah they can. folder name like "Program Files" Okey. "Files" is a string geneous
-Ryan M.
|
|
|
|
|
Heh, that would have almost been a good flame except you misspelled "genius".
My apologies for trying to help you. I will not make that mistake again.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!
|
|
|
|
|
I forgot to tell you i am stupid. sorry for getting angry.
-Ryan M.
|
|
|
|
|
I need to handle and override the event that works when user presses the close button on the upper right (on the left of minimize and maximize buttons)?
Thanks;)
|
|
|
|