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. JOTD

JOTD

Scheduled Pinned Locked Moved The Lounge
c++oopquestion
37 Posts 16 Posters 11 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.
  • P peterchen

    Well, if you are forced to use VB, you can always do like this:

    Dim code;
    code = "#include <stdafx.h>" & vbCRLF & _
    "int main()" & vbCRLF & _
    "{" & vbCRLF & _
    " // ... " & vbCRLF & _
    "}" & vbCRLF

    ' TODO: RUN C Compiler

    Agh! Reality! My Archnemesis![^]
    | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #20

    Well, if I would able to understand VB syntax then I should say you know well VB syntax... :-D

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    P 1 Reply Last reply
    0
    • N Nish Nishant

      A talking frog I can digest. But a Visual Basic programmer! What is this? Some kind of sick perverted joke? :mad:

      Regards, Nish


      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
      My latest book : C++/CLI in Action / Amazon.com link

      I Offline
      I Offline
      Ian Shlasko
      wrote on last edited by
      #21

      Nishant Sivakumar wrote:

      A talking frog I can digest.

      I dunno... Have you ever tried frog legs? I heard they're pretty nasty... Now imagine them talking to you on the way down.

      Proud to have finally moved to the A-Ark. Which one are you in?
      Author of Guardians of Xen (Sci-Fi/Fantasy novel)

      1 Reply Last reply
      0
      • N Nagy Vilmos

        Designed and implimented a retail banking system in VB a few years back currently work on a trading platform with a lot of VB front end components. So yes, I can write VB, but I prefer Java or C# poking an eye out with a shitty stick [ftfms].


        Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #22

        Nagy Vilmos wrote:

        retail banking system

        Nagy Vilmos wrote:

        trading platform

        Yeah, now I understand. You're not doing VB for money. You're doing VB for a lot of money.

        N 1 Reply Last reply
        0
        • N Nagy Vilmos

          Designed and implimented a retail banking system in VB a few years back currently work on a trading platform with a lot of VB front end components. So yes, I can write VB, but I prefer Java or C# poking an eye out with a shitty stick [ftfms].


          Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

          I Offline
          I Offline
          Ian Shlasko
          wrote on last edited by
          #23

          Yep, lots of trading software written in VB... Funny thing... If I hadn't put VB6 on my resume, back when I graduated college, I never would have gotten the job that started my career on wall street... Started out maintaining and updating old VB6 and Excel VBA systems... Then, once I had proven myself, I rewrote most of it in C# :)

          Proud to have finally moved to the A-Ark. Which one are you in?
          Author of Guardians of Xen (Sci-Fi/Fantasy novel)

          1 Reply Last reply
          0
          • P peterchen

            Well, if you are forced to use VB, you can always do like this:

            Dim code;
            code = "#include <stdafx.h>" & vbCRLF & _
            "int main()" & vbCRLF & _
            "{" & vbCRLF & _
            " // ... " & vbCRLF & _
            "}" & vbCRLF

            ' TODO: RUN C Compiler

            Agh! Reality! My Archnemesis![^]
            | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

            J Offline
            J Offline
            JustWorking
            wrote on last edited by
            #24

            peterchen wrote:

            Dim code;

            :wtf: :wtf: :wtf: First of all you didn't specify the data type wish is String

            Dim code as string

            Second in VB their is no ; at the end of the line like C#

            R N P 3 Replies Last reply
            0
            • R Rage

              Nagy Vilmos wrote:

              retail banking system

              Nagy Vilmos wrote:

              trading platform

              Yeah, now I understand. You're not doing VB for money. You're doing VB for a lot of money.

              N Offline
              N Offline
              Nagy Vilmos
              wrote on last edited by
              #25

              see, it pays to have low standards to exceed.


              Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

              1 Reply Last reply
              0
              • J JustWorking

                peterchen wrote:

                Dim code;

                :wtf: :wtf: :wtf: First of all you didn't specify the data type wish is String

                Dim code as string

                Second in VB their is no ; at the end of the line like C#

                R Offline
                R Offline
                Rage
                wrote on last edited by
                #26

                Cpianism wrote:

                you didn't specify the data type

                which would result in it being a variant, hence perfectly valid code, AFAIK.

                Cpianism wrote:

                their is no ; at the end of the line

                I sometimes end my mail lines with a ; :)

                1 Reply Last reply
                0
                • M Mark_Wallace

                  Corinna John wrote:

                  he uses VB and he is a programmer. But that doesn't mean he is a "VB programmer".

                  I think we need clarification on the direction of the dependency.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  C Offline
                  C Offline
                  Corinna John
                  wrote on last edited by
                  #27

                  Many programmers use several languages. The favorite language at home, the project language at work, some horrible languages for maintenance, and - in the worst case - VB for a job that was better than staying unemployed. That means, you can be a programmer, but still be forced to use VB.

                  This statement is false.

                  M 1 Reply Last reply
                  0
                  • J JustWorking

                    peterchen wrote:

                    Dim code;

                    :wtf: :wtf: :wtf: First of all you didn't specify the data type wish is String

                    Dim code as string

                    Second in VB their is no ; at the end of the line like C#

                    N Offline
                    N Offline
                    Nagy Vilmos
                    wrote on last edited by
                    #28

                    Cpianism wrote:

                    Second in VB their is no ; at the end of the line like C#

                    You missed out there is no sarcasm in Lebanon.


                    Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                    L 1 Reply Last reply
                    0
                    • N Nagy Vilmos

                      Cpianism wrote:

                      Second in VB their is no ; at the end of the line like C#

                      You missed out there is no sarcasm in Lebanon.


                      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #29

                      You missed out that you generalized :mad:

                      N P 2 Replies Last reply
                      0
                      • L Lost User

                        You missed out that you generalized :mad:

                        N Offline
                        N Offline
                        Nagy Vilmos
                        wrote on last edited by
                        #30

                        oops...


                        Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                        L 1 Reply Last reply
                        0
                        • N Nagy Vilmos

                          oops...


                          Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #31

                          Oooopssss ;)

                          1 Reply Last reply
                          0
                          • J JustWorking

                            peterchen wrote:

                            Dim code;

                            :wtf: :wtf: :wtf: First of all you didn't specify the data type wish is String

                            Dim code as string

                            Second in VB their is no ; at the end of the line like C#

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

                            I'm not claiming to be a VB expert ;) I did some ASP+VBS once, and I sometimes have to dabble a bit in VBA. The "no semicolon" almost always hit me, repeatedly. (worst in VB6, where it would pop up a Syntax Error message box when you left the line. Gah!)

                            Agh! Reality! My Archnemesis![^]
                            | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                            1 Reply Last reply
                            0
                            • C CPallini

                              Well, if I would able to understand VB syntax then I should say you know well VB syntax... :-D

                              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                              [My articles]

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

                              Unlike those uneducated masses hating VB out of consensus with majority, I hate it because i know enough about it to hate it.

                              Agh! Reality! My Archnemesis![^]
                              | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                              1 Reply Last reply
                              0
                              • L Lost User

                                You missed out that you generalized :mad:

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

                                Oh my god the sky is falling! :sigh:

                                Agh! Reality! My Archnemesis![^]
                                | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                                1 Reply Last reply
                                0
                                • C Corinna John

                                  Many programmers use several languages. The favorite language at home, the project language at work, some horrible languages for maintenance, and - in the worst case - VB for a job that was better than staying unemployed. That means, you can be a programmer, but still be forced to use VB.

                                  This statement is false.

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #35

                                  Corinna John wrote:

                                  This statement is false.

                                  IAWTS!

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  1 Reply Last reply
                                  0
                                  • M Mark_Wallace

                                    OriginalGriff wrote:

                                    A Visual Basic programmer...

                                    Anyone in particular?

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    L Offline
                                    L Offline
                                    Luc Pattyn
                                    wrote on last edited by
                                    #36

                                    Not an in-law for sure. :)

                                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                                    I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.


                                    1 Reply Last reply
                                    0
                                    • N Nagy Vilmos

                                      I... ...write... ...code... ...in... ...VB... ... :sigh:


                                      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #37

                                      VB Anonymous?

                                      Join the cool kids - Come fold with us[^]

                                      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