|
I'm confused. Are you talking about two streams in the same file, or two streams in two files (e.g. standard AVI)?
If you're talking about 1 stream per file, yes I believe you can disconnect then reconnect, but I think it's a bit involved. the microsoft.public.win32.programmer.directx.video newsgroup had a couple of threads about it a while ago, I suggest groups.google.com and searching that ng for "reconnect" or something.
If you are talking about 2 streams in 1 file, you would use 1 filesource and chose a pin from the avi splitter depending on which file you wanted.
HTH,
Pete
|
|
|
|
|
I have noticed that most ADO examples including all MSDN examples use an import to import msado15.dll..
Although importing simplifies the task and gives much more easier to use methods, I was wondering whether this method is robust enough? is the ado dll available on all Windows operating system guaranteed to be msado15.dll or does the name change depending on the version?
|
|
|
|
|
In fact, this is the stupid #import clause in VC 6.0 that needs a file and then gets its typelibrary and then gets th GUIDs. Is it robust ? Well, at runtime, yes, becase what's used is the typelibrary, but at compile time you can have problems, like the "Program Files" folder, in the Portuguese version of Windows is the "Arquivos de Programas"
Crivo
Automated Credit Assessment
|
|
|
|
|
Hi, I want to get an idea on how to create the Slide that is similar to the Power Point.
I believe it uses the ole object for each slide. I am also looking for the solution on how to display the slide in full blown(Full Screen) like power point. Is there any particular API called? For the text fields in the Power point ( where you type the text for display) is that also the ole object? Please let me know. I have been looking for the solution to this feature for a while. If there is a good suggestion or code sample will be helpful. What I am trying to acomplish is to create an apps similar to Power Point. Instead of running the slide automatically or by pussing the down button, I try to let the user to have the whole control and they can jump and display from slide to slide by clicking just the slide. In other word the user insterface will be a slide like you see in the power point slide window.
Thanks for your help
DLEo
|
|
|
|
|
Displaying the slide in Full screen is not really hard. Just create a special window class without border and frames that displays full screen, and you got it. If you want a source code for this, just look the code for the screensaver app sample in the MSDN.
I do not know enough to help you on the other topics (BTW, it _IS_ possible to pass to next slide in Power Point just by clicking on it (I know some of my professor used to take their mouse to get a "remote controled Power Point" before the system which allows to do it through infrared begun to appear)).
~RaGE();
|
|
|
|
|
This may be something simple, but I can't seem to find it anywhere. Does anyone know of a way to get a handle to a process if I know the process ID? What I am trying to do is see if the process is still active by calling GetExitCodeProcess. I am getting the PID by enumerating the processes that are running at a certain time. Technically I could just run through all the running processes everytime I wanted to know if the process was running and compare PIDs, but that seems like overkill. It would be much simpler just to get the handle once, and check at anytime in the future using GetExitCodeProcess.
Thanks,
Mike
|
|
|
|
|
Try
HANDLE OpenProcess(DWORD dwDesiredAccess, // access flag
BOOL bInheritHandle, // handle inheritance option
DWORD dwProcessId // process identifier
);
Crivo
Automated Credit Assessment
|
|
|
|
|
Thanks. I don't know how I missed it. It was right in front of me the whole time. Having my 7 month old son (who is teething) yelling in my ear probably had something to do with it.
Thanks again,
Mike
|
|
|
|
|
How can my app know that D: is my CD-ROM??
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
Take a look at GetLogicalDriveStrings .
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
After getting the drives from GetLogicalDriveStrings, you need to use GetDriveType and test if the return value = DRIVE_CDROM.
Like it or not, I'm right.
|
|
|
|
|
Jason Henderson wrote:
After getting the drives from GetLogicalDriveStrings, you need to use GetDriveType and test if the return value = DRIVE_CDROM.
Yes,you're right.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Aah!
That wasn't too much difficult!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
You can use GetVolumeInformation as an alternative!
Best regards,
Alexandru Savescu
|
|
|
|
|
Hello,
I have to develop a dialog based MFC app in which several dialogs are linked using next/previous buttons, like in all those install apps.
As i dont have much time to do this, and as i havent used C++ in 3 years, i was wondering if a framework, or even some sample source code for such an app existed somewhere.
Thank you for your time.
|
|
|
|
|
you want to look at CPropertySheet and CPropertyPage..
basicly you use the resource editor to create dialogs, but instead of creating dialogs you create Property Pages (set to child instead of popup).. you create these for each of the pages you need.
then to put it all together you do:
CPropertySheet MySheet("This is my installer");
CMyPage1 page1;
CMyPage2 page2;
...
CMyPageN pageN;
MySheet.AddPage(&page1);
MySheet.AddPage(&page2);
...
MySheet.AddPage(&pageN);
MySheet.SetWizardMode();
MySheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;
if (MySheet.DoModal() == ID_WIZFINISH)
{ AfxMessageBox("woop!"); }
the CMyPage1,2,3 are the classes you created from your dialogs(proppages)
in your first page you need
BOOL CMyPage1::OnSetActive()
{
CPropertySheet* psheet = (CPropertySheet*) GetParent();
psheet->SetWizardButtons(PSWIZB_NEXT);
return CPropertyPage::OnSetActive();
} in your middle pages you need
BOOL CMyPage2::OnSetActive()
{
CPropertySheet* psheet = (CPropertySheet*) GetParent();
psheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT);
return CPropertyPage::OnSetActive();
} in your last page you need
BOOL CMyPageN::OnSetActive()
{
CPropertySheet* psheet = (CPropertySheet*) GetParent();
psheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
return CPropertyPage::OnSetActive();
}
theres enough code to get you started.. if you can't get there from this then you prolly need to read a book or somethin.. there are examples on this stuff in the articles on here..
-dz
|
|
|
|
|
hi
For the EditBox with the style ES_PASSWORD, WM_GETTEXT works fine in case of win98 like versions. But in windows 2K it not works.can anybody explain me the reason?
VIKS
|
|
|
|
|
vikrams wrote:
can anybody explain me the reason?
Security? Are you trying to send WM_GETTEXT from other process?
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
YES I am. But what shouid I do to get text from other process
VIKS
|
|
|
|
|
Why do you need this? Are you going to steal somebody's passwords?
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Actually I lost my own password. Trying to retrive that by this message
VIKS
|
|
|
|
|
As your already mentioned this does not work on Win2k and above.
But there are some hacks (i.e. hooks, what a nice play on words ) here at codeproject.
Maybe someone knows a direct link, I don't find the article right now.
greets
Greg
modified 12-Sep-18 21:01pm.
|
|
|
|
|
What kind of password it is?
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
actaully long ago I configured my INBOX to POP3 mails of my many accounts .Now I forgot my passowrd . I want to access my emails through normal browser.So thought that using WM_GETTEXT I will able to retrive it ! coz it is present in the POP3 configuration dialog box in "*******"
VIKS
|
|
|
|
|
I'm trying to come up with a way to have a popup come up when my edit box receives focus.
I've tried the OnFocus, but there were problems with that.
What I want is a soft-keypad to come up so the user and input data.
Any ideas.
Thanks in advance.
Jim
|
|
|
|