I am working with the Windows Media Encoder SDK, and at one point in the
code, I have a need to display the Property Page of a Device plugin. The
only code I have for doing this is written in C++ and looks like this:
// Retrieve the plug-in object.
if ( SUCCEEDED( hr ) )
{
hr = pVidSrc->GetSourcePlugi n( &pPlugin );
}
// Call QueryInterface to verify whether the plug-in supports
// property pages. If it does, retrieve a pointer to the
// ISpecifyPropert yPages interface, and fill an array of GUID
// values in which each GUID specifies the CLSID of each property
// page that can be displayed for this object.
if ( SUCCEEDED( hr ) )
{
hr = pPlugin->QueryInterface (IID_ISpecifyPr opertyPages,
(LPVOID*)&pPage s);
}
if ( SUCCEEDED( hr ) )
{
hr = pPages->GetPages( &uuid );
}
// Invoke a dialog box to display.
if ( SUCCEEDED( hr ) )
{
hr = OleCreateProper tyFrame
(
m_hWnd, // You must create the parent window.
200, // Horizontal position for the dialog box.
200, // Vertical position for the dialog box.
CComBSTR("name" ), // String used for the dialog box
caption.
1, // Number of pointers passed in pPlugin.
&pPlugin, // Pointer to the plug-in.
uuid.cElems, // Number of property pages.
uuid.pElems, // Array of property page CLSIDs.
LOCALE_USER_DEF AULT, // Locale ID for the dialog box.
0, // Reserved.
NULL // Reserved.
);
}
// Release memory.
if ( uuid.pElems )
{
CoTaskMemFree( uuid.pElems );
}
How do I achieve this same functionality in C#? CAN I do this in C#?
Thanks in advance for any replies.
--
Later,
Gizmo 1 3957
No one has any suggestions on the below question?
--
Later,
Gizmo
"Chris Richards" <gi***@digistar .com> wrote in message
news:uD******** ******@TK2MSFTN GP12.phx.gbl... I am working with the Windows Media Encoder SDK, and at one point in the code, I have a need to display the Property Page of a Device plugin. The only code I have for doing this is written in C++ and looks like this:
// Retrieve the plug-in object. if ( SUCCEEDED( hr ) ) { hr = pVidSrc->GetSourcePlugi n( &pPlugin ); }
// Call QueryInterface to verify whether the plug-in supports // property pages. If it does, retrieve a pointer to the // ISpecifyPropert yPages interface, and fill an array of GUID // values in which each GUID specifies the CLSID of each property // page that can be displayed for this object. if ( SUCCEEDED( hr ) ) { hr = pPlugin->QueryInterface (IID_ISpecifyPr opertyPages, (LPVOID*)&pPage s); }
if ( SUCCEEDED( hr ) ) { hr = pPages->GetPages( &uuid ); }
// Invoke a dialog box to display. if ( SUCCEEDED( hr ) ) { hr = OleCreateProper tyFrame ( m_hWnd, // You must create the parent window. 200, // Horizontal position for the dialog box. 200, // Vertical position for the dialog box. CComBSTR("name" ), // String used for the dialog box caption. 1, // Number of pointers passed in pPlugin. &pPlugin, // Pointer to the plug-in. uuid.cElems, // Number of property pages. uuid.pElems, // Array of property page CLSIDs. LOCALE_USER_DEF AULT, // Locale ID for the dialog box. 0, // Reserved. NULL // Reserved. ); }
// Release memory. if ( uuid.pElems ) { CoTaskMemFree( uuid.pElems ); }
How do I achieve this same functionality in C#? CAN I do this in C#?
Thanks in advance for any replies.
-- Later, Gizmo
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sue |
last post by:
Help! I have an asp table with an embedded table. The asp
tablerow that contains this table has a static ID assigned
of "FilterRow2" (see snippets of code below). When I click
on the button to set the tablerow style property
to "None", the row (And embedded table) briefly disappear,
but then bounce right back into sight.
Any ideas on why it's doing this and how to make the
style.display = "None" stick?
|
by: John Lau |
last post by:
Hi,
Is there documentation that talks about the page lifecycle, the lifecycle of
controls on the page, and the rendering of inline code, in a single
document?
Thanks,
John
|
by: Benedict Teoh |
last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit is performed.
How do I force the usercontrol to display the newly assigned date? I don't have this problem if I place the two dropdownlist and the year field directly on the aspx page.
|
by: Milan |
last post by:
Hi,
I am having a problem with displaying a * to a required field.
There seems to be a problem with this and the static value does not
appear unless you submit the page.
I am trying to display the static text as soon as the page is loaded
in the browser.
Does anyone know if there is a bug with the aps.net validator
controls? Or is this not possible.
|
by: Michelle |
last post by:
Hi, I want to display some pretty basic xml data in
a .NET user control that I would like to build for my
site.
I am getting the XML from a URL that has been provided to
me (i.e. http://domain.com/somelink.asp). If I type the
URL into my browser, the xml doc below is displayed. How
can I incorporate the XML into the user control so that I
can display the company name on my web page?
| |
by: KMiller |
last post by:
I would like to control entry into one or more of the tabs
> I have set up on my Tab control based on set rules. Does
> anyone know how to grey-out the text so that a user will
> see that they do not have access to that particular tab?
>
> I tried setting the enabled = false for the given tab,
but
> it only seems to work in the form assembly section (that
> is, if I do it after the form is loaded through a
> function, it doesn't seem...
|
by: c676228 |
last post by:
Hi,
I have several user controls like email, phone,ssn etc. each has it's own
validation message in its user control already.
When I bring all those user controls in an aspx page, I would like to
display a summary error messages using validation summary in an aspx page,
how to do that?
Thank you.
--
Betty
|
by: Benny Ng |
last post by:
Dear All,
Now I met one problem in the development of my one application.
I have one ASP.NET page. It's for disply the information of customer.
But now I have one new requirement. It's to combine the "Edit" and "Display"
funtions into this page.
(It means if user want to edit the customer information, this page would
provided editing page to the user;
If the user want to display the customer information, this page would
providev the...
|
by: tshad |
last post by:
I have a Windows App that is doing some work and then writing a "Now
Processing..." line to the status line of the window as well as the Textbox
on the form.
But the problem is that the work is in another class from the main class.
So it couldn't access the Status Line or textbox.
So what we did was set them up as properties:
string IStatusDisplay.Status
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |