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. The Lounge
  3. bits and pieces

bits and pieces

Scheduled Pinned Locked Moved The Lounge
questioncsharpc++java
6 Posts 5 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
    Adam Arthur
    wrote on last edited by
    #1

    Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.

    J C 2 Replies Last reply
    0
    • A Adam Arthur

      Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.

      J Offline
      J Offline
      Jason Gerard
      wrote on last edited by
      #2

      Adam Arthur wrote: If I were using VB, C# or Java -- which of these languages would support this? This can be done in C# and Java, not in VB. VB6 and below do not have bitwise operators, only logical. Although, I think VB.NET now has bitwise operators, but who the hell cares? Jason Gerard

      J 1 Reply Last reply
      0
      • A Adam Arthur

        Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        Adam Arthur wrote: If you wanted to, could you make a c++ compiler in VB? of course you can. but it will be slow. you could probably even write one in VB script - if you were insane and/or had something to prove. :) -c


        Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.

        P 1 Reply Last reply
        0
        • C Chris Losinger

          Adam Arthur wrote: If you wanted to, could you make a c++ compiler in VB? of course you can. but it will be slow. you could probably even write one in VB script - if you were insane and/or had something to prove. :) -c


          Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.

          P Offline
          P Offline
          peterchen
          wrote on last edited by
          #4

          Chris Losinger wrote: you could probably even write one in VB script Not without the help of a "real" language - (be it at least for the FileSystemObject)


          The cops still stand around and eat koeksisters - Paul Watson, The Lounge, 2002

          C 1 Reply Last reply
          0
          • J Jason Gerard

            Adam Arthur wrote: If I were using VB, C# or Java -- which of these languages would support this? This can be done in C# and Java, not in VB. VB6 and below do not have bitwise operators, only logical. Although, I think VB.NET now has bitwise operators, but who the hell cares? Jason Gerard

            J Offline
            J Offline
            James T Johnson
            wrote on last edited by
            #5

            I'm 99% sure this code will work If &H0003 And &H0001 = &H0001 Then MsgBox "Bit 0 is set" End If If Not (&H0004 And &H0002 = &H0002) Then MsgBox "Bit 1 is not set" End If James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

            1 Reply Last reply
            0
            • P peterchen

              Chris Losinger wrote: you could probably even write one in VB script Not without the help of a "real" language - (be it at least for the FileSystemObject)


              The cops still stand around and eat koeksisters - Paul Watson, The Lounge, 2002

              C Offline
              C Offline
              Chris Losinger
              wrote on last edited by
              #6

              errr. ok fine. the point is that VBS is probably capable of doing the real work of handling symbols. output could be a web page with ASM instructions, or a base64 representation of the EXE. -c


              Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.

              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