lame_enc.dll and VB.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kimiraikkonen

    #1

    lame_enc.dll and VB.NET

    Hello,
    I wonder a thing about free mp3 encoder lame if it supports to be used
    under Visual Basic .NET. I searched the net then i read sth than Lame
    is not accessible under Visual Basic directly. Lame was written under
    C language, so is that the reason that lame_enc.dll cannot be used in
    Visual Basic projects like a toolbox-added activeX control?

    How can i use lame_enc.dll under Visual Basic .NET and what differs
    interacting a dll without including it as a COM component from control
    toolbox?

    Thanks :-)
  • Tom Shelton

    #2
    Re: lame_enc.dll and VB.NET

    On 2007-12-10, kimiraikkonen <kimiraikkonen8 5@gmail.comwrot e:
    Hello,
    I wonder a thing about free mp3 encoder lame if it supports to be used
    under Visual Basic .NET. I searched the net then i read sth than Lame
    is not accessible under Visual Basic directly. Lame was written under
    C language, so is that the reason that lame_enc.dll cannot be used in
    Visual Basic projects like a toolbox-added activeX control?
    >
    How can i use lame_enc.dll under Visual Basic .NET and what differs
    interacting a dll without including it as a COM component from control
    toolbox?
    >
    Thanks :-)
    I haven't ever used lame, but I did look at it once a couple of years
    ago... I believe that it exposes an api that you should be able to
    access via P/Invoke.

    --
    Tom Shelton

    Comment

    • kimiraikkonen

      #3
      Re: lame_enc.dll and VB.NET

      On Dec 10, 5:39 pm, Tom Shelton
      <tom_shel...@YO UKNOWTHEDRILLco mcast.netwrote:
      On 2007-12-10, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
      >
      Hello,
      I wonder a thing about free mp3 encoder lame if it supports to be used
      under Visual Basic .NET. I searched the net then i read sth than Lame
      is not accessible under Visual Basic directly. Lame was written under
      C language, so is that the reason that lame_enc.dll cannot be used in
      Visual Basic projects like a toolbox-added activeX control?
      >
      How can i use lame_enc.dll under Visual Basic .NET and what differs
      interacting a dll without including it as a COM component from control
      toolbox?
      >
      Thanks :-)
      >
      I haven't ever used lame, but I did look at it once a couple of years
      ago... I believe that it exposes an api that you should be able to
      access via P/Invoke.
      >
      --
      Tom Shelton
      It would be great if Lame was an COM-compatible control even it's free.

      Comment

      • Tom Shelton

        #4
        Re: lame_enc.dll and VB.NET

        On Dec 10, 9:51 am, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
        On Dec 10, 5:39 pm, Tom Shelton
        >
        >
        >
        >
        >
        <tom_shel...@YO UKNOWTHEDRILLco mcast.netwrote:
        On 2007-12-10, kimiraikkonen <kimiraikkone.. .@gmail.comwrot e:
        >
        Hello,
        I wonder a thing about free mp3 encoder lame if it supports to be used
        under Visual Basic .NET. I searched the net then i read sth than Lame
        is not accessible under Visual Basic directly. Lame was written under
        C language, so is that the reason that lame_enc.dll cannot be used in
        Visual Basic projects like a toolbox-added activeX control?
        >
        How can i use lame_enc.dll under Visual Basic .NET and what differs
        interacting a dll without including it as a COM component from control
        toolbox?
        >
        Thanks :-)
        >
        I haven't ever used lame, but I did look at it once a couple of years
        ago... I believe that it exposes an api that you should be able to
        access via P/Invoke.
        >
        --
        Tom Shelton
        >
        It would be great if Lame was an COM-compatible control even it's free.- Hide quoted text -
        >
        - Show quoted text -
        Well, you could always create one - or search, maybe someone else has
        already done it ;)

        --
        Tom Shelton

        Comment

        • Kerem Gümrükcü

          #5
          Re: lame_enc.dll and VB.NET

          Hi Tom,
          >I haven't ever used lame, but I did look at it once a couple of years
          >ago... I believe that it exposes an api that you should be able to
          >access via P/Invoke.
          It has, the Interface is exposed as Standard-C Exports and
          you can easlily access it via pinvoke,...

          See here:

          beCloseStream
          beDeinitStream
          beEncodeChunk
          beEncodeChunkFl oatS16NI
          beFlushNoGap
          beInitStream
          beVersion
          beWriteInfoTag
          beWriteVBRHeade r


          Regrds

          Kerem


          --
          -----------------------
          Beste Grüsse / Best regards / Votre bien devoue
          Kerem Gümrükcü
          Microsoft Live Space: http://kerem-g.spaces.live.com/
          Latest Open-Source Projects: http://entwicklung.junetz.de
          -----------------------
          "This reply is provided as is, without warranty express or implied."


          Comment

          • kimiraikkonen

            #6
            Re: lame_enc.dll and VB.NET

            On Dec 10, 10:39 pm, "Kerem Gümrükcü" <kareem...@hotm ail.comwrote:
            Hi Tom,
            >
            I haven't ever used lame, but I did look at it once a couple of years
            ago... I believe that it exposes an api that you should be able to
            access via P/Invoke.
            >
            It has, the Interface is exposed as Standard-C Exports and
            you can easlily access it via pinvoke,...
            >
            See here:
            >
            beCloseStream
            beDeinitStream
            beEncodeChunk
            beEncodeChunkFl oatS16NI
            beFlushNoGap
            beInitStream
            beVersion
            beWriteInfoTag
            beWriteVBRHeade r
            >
            Regrds
            >
            Kerem
            >
            --
            -----------------------
            Beste Grüsse / Best regards / Votre bien devoue
            Kerem Gümrükcü
            Microsoft Live Space:http://kerem-g.spaces.live.com/
            Latest Open-Source Projects:http://entwicklung.junetz.de
            -----------------------
            "This reply is provided as is, without warranty express or implied."
            Hi,
            Could you sample some code includes P/invoke for VB.NET?

            Thanks.

            Comment

            • Kerem Gümrükcü

              #7
              Re: lame_enc.dll and VB.NET

              Hi Tom,

              see here:

              VB Example:


              Other useful Code:



              Regards

              Kerem

              --
              -----------------------
              Beste Grüsse / Best regards / Votre bien devoue
              Kerem Gümrükcü
              Microsoft Live Space: http://kerem-g.spaces.live.com/
              Latest Open-Source Projects: http://entwicklung.junetz.de
              -----------------------
              "This reply is provided as is, without warranty express or implied."


              Comment

              • kimiraikkonen

                #8
                Re: lame_enc.dll and VB.NET

                On Dec 11, 9:48 pm, "Kerem Gümrükcü" <kareem...@hotm ail.comwrote:
                Hi Tom,
                >
                see here:
                >
                VB Example:http://www.codeproject.com/KB/audio-...spx?print=true
                >
                Other useful Code:http://www.csharphelp.com/archives/a...languages.csha...
                >
                Regards
                >
                Kerem
                >
                --
                -----------------------
                Beste Grüsse / Best regards / Votre bien devoue
                Kerem Gümrükcü
                Microsoft Live Space:http://kerem-g.spaces.live.com/
                Latest Open-Source Projects:http://entwicklung.junetz.de
                -----------------------
                "This reply is provided as is, without warranty express or implied."
                Hi Kerem,
                Thanks for the links replying regarding to Tom but i'm not Tom :-),
                however i was aware of some them like codeproject's one but that one
                is not well-detailed and assumes that you're experienced.

                I don't have much experience about invoking methods, could you
                describe and say the differences between invoke, begininvoke,
                endinvoke and the important one P/invoke?

                Is it about .NET's platform invoke?

                Thanks.

                Comment

                Working...