| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > VirtualDub Filters and Filter Development > Please Help A Complete Mfc Weenie |
| Posted by: Chien_Andalusia Feb 20 2003, 12:31 AM |
| I'm not sure if this is the right forum, but here we go anyway. I am in the process of developing a number of VirtualDub filters. In one of the filters I want a dialog box to open when a filter is selected from the menu within VirtualDub. In the dialog box I want a single text line where a user can type in some string. Once the "ok" button is pressed the string is stored to a variable. Another possibility is for a dialog box to open up and request a user to select (for example) a text file by clicking a browse button and selecting the files in question by browsing the computer. I would like to be able to store the file path to a variable. Finally ,while a video and a filter are selected within VirtualDub, is it possible for that filter to output data onto a pop-up dialog box as the video is playing? If so how would I go about it? I have tried the example of reading user input contained in the SDK and have created a dialog box with check boxes that alters a video differently depending which box is checked. The trouble is my knowledge when it comes to all matters MFC are poor to say the best and I would not know how to make simple modifications to allow for different types of user input. I have visited MSDN and have ended up pretty confused. I can "draw" various dialog boxes from within Visual C++ without much problem at all. The problem arises when it comes to coding them (if you pardon the expression) to do "stuff". I just hope I'm making some sense to someone out there and if anybody could possibly help me with any of my problems in some small way I would be very grateful. |
| Posted by: fccHandler Feb 20 2003, 02:19 AM |
| I'm totally confused by MFC myself. Have you tried regular old C++? I'm afraid your questions are a bit too general. It's true that MSDN is the best resource for everything related to Windows programming, but it would probably help you a lot just to download other people's filter source code and see how they do their "stuff." |
| Posted by: Chien_Andalusia Feb 22 2003, 03:37 PM |
| So how do you make a dialog box pop up in regular old C++. If that is all I have to do then I will be rather happy. |
| Posted by: Kippesoep Feb 22 2003, 06:15 PM |
| Design your dialog box using the dialog box editor and call the "DialogBox" function using the appropriate parameters. You can find the necessary info in http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/dialogbox.asp?frame=true. |
| Posted by: Chien_Andalusia Feb 22 2003, 10:50 PM |
| Thanks for that link, I was looking in all the wrong places in MSDN it seems. I'll give it a shot. |
| Posted by: ChristianHJW Feb 24 2003, 02:43 PM |
| Please allow me to welcome you here, a Virtualdub filter developer is always more than welcome here |