Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Need translation from C# to VB

Need translation from C# to VB

Scheduled Pinned Locked Moved C#
csharp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Are Jay
    wrote on last edited by
    #1

    byte* void* unsafe Thanks!

    S D D 3 Replies Last reply
    0
    • A Are Jay

      byte* void* unsafe Thanks!

      S Offline
      S Offline
      Sebastian Schneider
      wrote on last edited by
      #2

      Dim byting_into_void As unsafe?

      Cheers, Sebastian -- Contra vim mortem non est medicamen in hortem.

      1 Reply Last reply
      0
      • A Are Jay

        byte* void* unsafe Thanks!

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #3

        IIRC unsafe code and pointers (Type*) aren't available in vb.net. The languages are almost identical, but there are a handful of features in each not supported by the others. C# has unsafe (dunno why it's not in VB), VB has optional parameters (depricated and only kept for legacy VB code support, but useful for writing com wrappers in any langauge), managed C++/C++Cli allow a more direct mixing of managed and native code (useful for high performance interop situations).

        1 Reply Last reply
        0
        • A Are Jay

          byte* void* unsafe Thanks!

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There are no equivilents. Unsafe code blocks and pointers are not supported in any version of VB/VB.NET to date. It doesn't look like they'll show up in the next release either.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          A 1 Reply Last reply
          0
          • D Dave Kreskowiak

            There are no equivilents. Unsafe code blocks and pointers are not supported in any version of VB/VB.NET to date. It doesn't look like they'll show up in the next release either.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            A Offline
            A Offline
            Are Jay
            wrote on last edited by
            #5

            Thank you. I've been programming with VB for a while now and am trying to decide if I need to pick-up C#. I have an application that has alot of images that need to be displayed an then manipulated quickly. I've found a ton of helpful articles on CP but there almost always in C#. I have a good C# to VB converter but it has been balking at these bits of code. Thanks again everyone.

            D 1 Reply Last reply
            0
            • A Are Jay

              Thank you. I've been programming with VB for a while now and am trying to decide if I need to pick-up C#. I have an application that has alot of images that need to be displayed an then manipulated quickly. I've found a ton of helpful articles on CP but there almost always in C#. I have a good C# to VB converter but it has been balking at these bits of code. Thanks again everyone.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              AreJay wrote:

              trying to decide if I need to pick-up C#.

              It couldn't possibly hurt. For image manipulation, C# is just about a must, or a Managed C++. I know VB.NET and C#. My C++ is pretty rusty, but I can still read it and translate very easily. I do the bulk of my work in VB.NET, but use C# for the stuff that VB.NET doesn't support, like pointers and unsafe blocks for image manipulation. (Thank you Christian!)

              Dave Kreskowiak Microsoft MVP - Visual Basic

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups