using AVIFILE OPEN IN DOTNET(CSHARP)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kofi
    New Member
    • Sep 2007
    • 8

    #1

    using AVIFILE OPEN IN DOTNET(CSHARP)

    hi can any one help on using the avifileopen( ) function in a csharp app..
    i tried using it some other tyme but was getting an error like

    "bad or corrupt memory"

    i will need explanation to the parameters it take... having a sample code will also be appreciated..
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by kofi
    hi can any one help on using the avifileopen( ) function in a csharp app..
    i tried using it some other tyme but was getting an error like

    "bad or corrupt memory"

    i will need explanation to the parameters it take... having a sample code will also be appreciated..
    read it.......

    Comment

    • kofi
      New Member
      • Sep 2007
      • 8

      #3
      AVIFileOpen

      hi,
      can anyone help with using the avifileopen() method..

      can someone help with explaining the parameters to me...
      i have been doing this but get an error
      //
      IntPtr Pfile;
      String filename;// set to an avi file from a dialog box

      AviFileOpen(Pfi le,filename,OF_ SHARE_DENY_WRIT E, NULL)

      but always gets an error msg like "attempt to write bad or corrupt memeory"

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        AviFileOpen() is an API call and not managed code.
        You probably need to mark the code as unsafe if you want to use it.

        You find better help under the regular C/C++ forum for API calls.

        Comment

        • kofi
          New Member
          • Sep 2007
          • 8

          #5
          Originally posted by Plater
          AviFileOpen() is an API call and not managed code.
          You probably need to mark the code as unsafe if you want to use it.

          You find better help under the regular C/C++ forum for API calls.
          thanks Plater, i guess i missed some inilization at the begining...

          firstly i needed to call it in the [DllImport] statement... after which i needed to Call on AviFileInit( ) for initiliazation. .. after in was able to get around it my knowledge in working with with API has improved a bit....
          thanks so much

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Spring Cleaning [Merged]
            MODERATOR

            Comment

            Working...