Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
Questioninheritance : how to call child methods from parents method (or hide parents methods) Pin
miljbee4-Dec-06 3:42
miljbee4-Dec-06 3:42 
AnswerRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
S. Senthil Kumar4-Dec-06 3:57
S. Senthil Kumar4-Dec-06 3:57 
AnswerRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
Prakash Nadar4-Dec-06 4:12
Prakash Nadar4-Dec-06 4:12 
GeneralRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
miljbee4-Dec-06 20:46
miljbee4-Dec-06 20:46 
GeneralRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
Prakash Nadar4-Dec-06 22:58
Prakash Nadar4-Dec-06 22:58 
QuestionMoving Images from a folder to another folder using C# Pin
Suhas Kyadiguppi4-Dec-06 3:40
Suhas Kyadiguppi4-Dec-06 3:40 
AnswerRe: Moving Images from a folder to another folder using C# Pin
Nader Elshehabi4-Dec-06 3:45
Nader Elshehabi4-Dec-06 3:45 
QuestionRenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 3:40
mvaMarc Clifton4-Dec-06 3:40 
I'm attempting to use DirectShow.NET to play movies on different DVD drives, with the following call:

hr = dvdGraph.RenderDvdVideoVolume( "f:", AMDvdGraphFlags.None, out status );


I have two DVD drives, E: and F:

Regardless of the path that I give RenderDvdVideoVolume, it always plays the movie on the first drive (E) and the flag bDvdVolInvalid is set true.

Anyone have any ideas? I'm using DirectX 9.0c, etc.

The call is basically just an interface call to the SDK, DirectShow.NET isn't injecting any other code. When I looked at some C++ examples:

WCHAR    achwFileName[MAX_PATH] ;
    LPCWSTR  lpszwFileName = NULL ;  // by default
    if (lstrlen(m_achFileName) > 0)  // if something was specified before
    {
#ifdef UNICODE
        lstrcpy(achwFileName, m_achFileName) ;
#else
        MultiByteToWideChar(CP_ACP, 0, m_achFileName, -1, achwFileName, MAX_PATH) ;
#endif // UNICODE

        lpszwFileName = achwFileName ;
    }

    // Build the graph
    AM_DVD_RENDERSTATUS   Status ;
    DbgLog((LOG_TRACE, 5, TEXT("Calling RenderDvdVideoVolume(<%s>, 0x%lx, 0x%lx)"), 
            m_achFileName, m_dwRenderFlag, &Status)) ;
    HRESULT hr = m_pDvdGB->RenderDvdVideoVolume(lpszwFileName,
                                    m_dwRenderFlag, &Status) ;



it looks like the string needs to be Unicode format, which is what a C# String is. Still, I wonder what requirements the API method actually has that C# isn't meeting.

Marc




Thyme In The Country

People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith


AnswerRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 8:29
Eric Dahlvang4-Dec-06 8:29 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:12
mvaMarc Clifton4-Dec-06 9:12 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 9:26
Eric Dahlvang4-Dec-06 9:26 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:38
mvaMarc Clifton4-Dec-06 9:38 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 10:06
Eric Dahlvang4-Dec-06 10:06 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 10:12
mvaMarc Clifton4-Dec-06 10:12 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:51
wasek20014-Dec-06 2:51 
QuestionDrawString / label transparency Pin
Scalee4-Dec-06 1:47
Scalee4-Dec-06 1:47 
AnswerRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 3:27
Nader Elshehabi4-Dec-06 3:27 
GeneralRe: DrawString / label transparency Pin
Scalee4-Dec-06 3:36
Scalee4-Dec-06 3:36 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 3:43
Nader Elshehabi4-Dec-06 3:43 
GeneralRe: DrawString / label transparency Pin
Scalee4-Dec-06 4:11
Scalee4-Dec-06 4:11 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 6:51
Nader Elshehabi4-Dec-06 6:51 
GeneralRe: DrawString / label transparency Pin
Lord ChaosMan4-Dec-06 14:36
Lord ChaosMan4-Dec-06 14:36 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 22:32
Nader Elshehabi4-Dec-06 22:32 
GeneralRe: DrawString / label transparency Pin
Lord ChaosMan5-Dec-06 8:11
Lord ChaosMan5-Dec-06 8:11 
AnswerRe: DrawString / label transparency Pin
Lord ChaosMan5-Dec-06 8:13
Lord ChaosMan5-Dec-06 8:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.