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. To VB or not to VB

To VB or not to VB

Scheduled Pinned Locked Moved The Lounge
questioncsharpc++
17 Posts 14 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.
  • F Franz Klein

    I know that one must not place programming questions in The Lounge but I feel that the importance of this question is an exception. Can VB6 or VB .NET be used for creating console applications? I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. :mad: I am the handsome one in the crowd.

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #3

    Franz Klein wrote: I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. I suspect that, ability to write console apps is not gonna tilt a bunch of VBers to C++ :-) They love eyecandy stuff though, tell them C++ can let them easily make windows (use the word form, most VBers won't know what a window is) with fancy colors and fonts and you'll find some of them willing to convert :-) Nish

    L 1 Reply Last reply
    0
    • N Nish Nishant

      Franz Klein wrote: I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. I suspect that, ability to write console apps is not gonna tilt a bunch of VBers to C++ :-) They love eyecandy stuff though, tell them C++ can let them easily make windows (use the word form, most VBers won't know what a window is) with fancy colors and fonts and you'll find some of them willing to convert :-) Nish

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

      aka Flashing Light Syndrome :sigh: The tigress is here :-D

      1 Reply Last reply
      0
      • F Franz Klein

        I know that one must not place programming questions in The Lounge but I feel that the importance of this question is an exception. Can VB6 or VB .NET be used for creating console applications? I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. :mad: I am the handsome one in the crowd.

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #5

        Franz Klein wrote: I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. Forget about it: try to convince them to code in C#. Visual C++ is a too big step for the average VB6 programmer. Just picture yourself trying to explain the difference between LPCTSTR, LPTSTR, CString, std::string and char *. I see dead pixels Yes, even I am blogging now!

        J P 2 Replies Last reply
        0
        • F Franz Klein

          I know that one must not place programming questions in The Lounge but I feel that the importance of this question is an exception. Can VB6 or VB .NET be used for creating console applications? I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. :mad: I am the handsome one in the crowd.

          D Offline
          D Offline
          Duncan Edwards Jones
          wrote on last edited by
          #6

          Neither of them can be used to program device drivers. There's your unique selling point. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

          J 1 Reply Last reply
          0
          • R Ryan Roberts

            You can easily create console applications VB .NET. IN VB6, its possible but involves massive hacks such as using a filesystem object for IO. ..But why would anyone want to? Ryan

            J Offline
            J Offline
            John M Drescher
            wrote on last edited by
            #7

            Ryan Roberts wrote: But why would anyone want to? I second that. John

            1 Reply Last reply
            0
            • D Daniel Turini

              Franz Klein wrote: I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. Forget about it: try to convince them to code in C#. Visual C++ is a too big step for the average VB6 programmer. Just picture yourself trying to explain the difference between LPCTSTR, LPTSTR, CString, std::string and char *. I see dead pixels Yes, even I am blogging now!

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #8

              As to console programming, would you ever need anything but std::string (or std::wstring)? -- Oneigaishimasu! I blog too now[^]

              N 1 Reply Last reply
              0
              • D Duncan Edwards Jones

                Neither of them can be used to program device drivers. There's your unique selling point. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #9

                But then again, device drivers are not console apps now, are they? ;) -- Oneigaishimasu! I blog too now[^]

                R 1 Reply Last reply
                0
                • J Jorgen Sigvardsson

                  But then again, device drivers are not console apps now, are they? ;) -- Oneigaishimasu! I blog too now[^]

                  R Offline
                  R Offline
                  Ryan Binns
                  wrote on last edited by
                  #10

                  Jörgen Sigvardsson wrote: But then again, device drivers are not console apps now, are they? Well, they're certainly not GUI apps, so they must be console apps :rolleyes:

                  Ryan

                  "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                  T 1 Reply Last reply
                  0
                  • J Jorgen Sigvardsson

                    As to console programming, would you ever need anything but std::string (or std::wstring)? -- Oneigaishimasu! I blog too now[^]

                    N Offline
                    N Offline
                    Navin
                    wrote on last edited by
                    #11

                    Depends on whehter you have to call any Win32 API functions.... The generation of random numbers is too important to be left to chance.

                    J 1 Reply Last reply
                    0
                    • F Franz Klein

                      I know that one must not place programming questions in The Lounge but I feel that the importance of this question is an exception. Can VB6 or VB .NET be used for creating console applications? I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. :mad: I am the handsome one in the crowd.

                      N Offline
                      N Offline
                      Nu Er Ha Chi
                      wrote on last edited by
                      #12

                      Franz Klein wrote: Can VB6 or VB .NET be used for creating console applications? Yes, here is a VB.NET version: Module Module1 Sub Main() System.Console.WriteLine("Hello, world") End Sub End Module If you want to convince others that VB is bad or evil, make sure your point is based on facts instead of anger.

                      1 Reply Last reply
                      0
                      • F Franz Klein

                        I know that one must not place programming questions in The Lounge but I feel that the importance of this question is an exception. Can VB6 or VB .NET be used for creating console applications? I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. :mad: I am the handsome one in the crowd.

                        M Offline
                        M Offline
                        Matt Gerrans
                        wrote on last edited by
                        #13

                        While I personally don't like the VB language all that well, I'd recommend VB.NET for your audience. If they already do know VB and they don't already C++, then that's a pretty long learning curve. I've seen some pretty frightening C code (in cpp files) by people who knew VB, learned a little C syntax and thought they could just muddle along without a thorough understanding of null-terminated strings, pointers, dynamic allocation and so on. Unless you have a better argument for using C++ (eg. the app is performance crtitical), then I don't see why you'd want to push it in this case. You'll just hurt your own credibility. You shouldn't just try to push C/C++ on everybody because you like it. I've done console apps in C# and it is quite easy, so I assume it is just about the same in VB.NET (if you know the language, of course). So, if you have the liberty of using managed code, then go for VB.NET. If your audience wants to expand their horizons and improve their resumes, then C# would be a good choice too. Matt Gerrans

                        1 Reply Last reply
                        0
                        • R Ryan Roberts

                          You can easily create console applications VB .NET. IN VB6, its possible but involves massive hacks such as using a filesystem object for IO. ..But why would anyone want to? Ryan

                          N Offline
                          N Offline
                          Nu Er Ha Chi
                          wrote on last edited by
                          #14

                          Ryan Roberts wrote: IN VB6, its possible but involves massive hacks such as using a filesystem object for IO. I never did or liked VB console applications myself but I have seen people doing it with no problem/hack at all. If someday C++ programmers are accused of being ignorant or closed minded, you could be partially responsible for it. BTW, I am not a VB programmer nor do I like VB more than C++.

                          1 Reply Last reply
                          0
                          • N Navin

                            Depends on whehter you have to call any Win32 API functions.... The generation of random numbers is too important to be left to chance.

                            J Offline
                            J Offline
                            Jorgen Sigvardsson
                            wrote on last edited by
                            #15

                            #ifdef _UNICODE use std::wstring #else use std::string #endif and forget all about the T's. The odd ones like GetProcAddress() will be a bigger problem for the average VB programmer than any character type.. :) -- Oneigaishimasu! I blog too now[^]

                            1 Reply Last reply
                            0
                            • R Ryan Binns

                              Jörgen Sigvardsson wrote: But then again, device drivers are not console apps now, are they? Well, they're certainly not GUI apps, so they must be console apps :rolleyes:

                              Ryan

                              "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                              T Offline
                              T Offline
                              TheGreatAndPowerfulOz
                              wrote on last edited by
                              #16

                              They're not apps at all! HE HE!:laugh:

                              1 Reply Last reply
                              0
                              • D Daniel Turini

                                Franz Klein wrote: I am asking this question as I am trying to convince some of my colleagues to program in C++ rather than VB. Forget about it: try to convince them to code in C#. Visual C++ is a too big step for the average VB6 programmer. Just picture yourself trying to explain the difference between LPCTSTR, LPTSTR, CString, std::string and char *. I see dead pixels Yes, even I am blogging now!

                                P Offline
                                P Offline
                                Phil Harding
                                wrote on last edited by
                                #17

                                Daniel Turini wrote: trying to explain the difference between LPCTSTR, LPTSTR, CString, std::string and char * I'd rather chew on a wasp :omg: Phil Harding.
                                myBlog [^]  |  mySite [^]

                                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