To VB or not to VB
-
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.
-
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.
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
-
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.
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
-
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
aka Flashing Light Syndrome :sigh: The tigress is here :-D
-
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.
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!
-
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.
Neither of them can be used to program device drivers. There's your unique selling point. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
-
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
Ryan Roberts wrote: But why would anyone want to? I second that. John
-
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!
As to console programming, would you ever need anything but std::string (or std::wstring)? -- Oneigaishimasu! I blog too now[^]
-
Neither of them can be used to program device drivers. There's your unique selling point. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
But then again, device drivers are not console apps now, are they? ;) -- Oneigaishimasu! I blog too now[^]
-
But then again, device drivers are not console apps now, are they? ;) -- Oneigaishimasu! I blog too now[^]
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"
-
As to console programming, would you ever need anything but std::string (or std::wstring)? -- Oneigaishimasu! I blog too now[^]
-
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.
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. -
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.
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
-
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
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++.
-
Depends on whehter you have to call any Win32 API functions.... The generation of random numbers is too important to be left to chance.
#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[^]
-
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"
They're not apps at all! HE HE!:laugh:
-
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!