July 11, 200519 yr Author psyphen said: If you're going to use a RAD language, for god's sake use Delphi. The syntax is less ugly, it has more functionality, and it's not made by Microsoft. heh delphi isnt a programming language
July 12, 200519 yr Well, here it goes. I like all programming languages I've learned except Java. VB is useful sometimes, but when it's not, I use C++. Think of it this way. Using only C++ for everything all the time is like writing raw html from scratch. Instead of spending hours writing raw code, why don't you just use Word or Frontpage, make a basic frame of the page and then make any changes you want by modifying the code? It saves alot of time and makes more sense. On a closing note, UNIX > all.
July 15, 200519 yr Quote From what I know you can't do something like "int i;char szString[1024];DWORD x;" all in one line in VB. and why the hell you would want to do that in any language is beyond me. code like that is illegible. But to answer your question you can do that. Dim j as string, a as integer, p as boolean Will work
July 16, 200519 yr VB = not cross-platform = lose by default ( + crappy/buggy .NET framework = even more lose ) C = been around for 35 years, not going anywhere anytime soon, and will be around long after Microsoft is gone C for the win. (and yes, I did have to learn VB as one of my college courses :P)
July 16, 200519 yr asterix said: VB = not cross-platform = lose by default ( + crappy/buggy .NET framework = even more lose ) C = been around for 35 years, not going anywhere anytime soon, and will be around long after Microsoft is gone C for the win. (and yes, I did have to learn VB as one of my college courses :P) :p ass meh, i dont care what anyone says, I like VB, and yall can shouve a cucumber up ur arse.
July 16, 200519 yr Vb is for teh n00b C++ is for teh 1337 you want string functions ? So did i. .h file #include <vbstrings.cpp> //VB Strings created by R.N(Ferox) int len(char *target); char *left(char *target,int nochar); char *right(char *target,int nochar); char * strreverse(char *target); char * mid(char *target,int param1,int param2); char *space(int target); .CPP file char result[150] = ""; //VB Strings created by R.N int len(char *target) { int i=0; while(target[i]) { i++; } return i; } char *left(char *target,int nochar) { for (int i = 0;i!=nochar;i++) result[i] = target[i]; return(result); } char *right(char *target,int nochar) { int c = 0; for (int i =len(target)-nochar;i<len(target);i++) { result[c] = target[i]; c++; } return(result); } char * strreverse(char *target) { int c =0; for (int i = len(target) -1;i!=-1;i--) { result[c] = target[i]; c++; } return (result); } char * mid(char *target,int param1,int param2) { int c = 0; for (int i = param1;i!=param2;i++) { result[c]=target[i]; c++; } return (result); } char *space(int target) { for (int i = 0; i!=target;i++){ result[i] = ' ';} return(result); } Theres most likely bugs but it might be usefull.
July 17, 200519 yr asterix said: VB = not cross-platform = lose by default ( + crappy/buggy .NET framework = even more lose ) C = been around for 35 years, not going anywhere anytime soon, and will be around long after Microsoft is gone C for the win. (and yes, I did have to learn VB as one of my college courses :P) There are initiatives out there to port .NET and its languages to other platforms. As for the comment about buggy .NET Framework, there are huge problems with the C library. Many of the standard functions availble are susceptible to buffer overflow. The more dangerous ones, are input functions that don't ask for the size of the buffer (i.e. gets, strcpy, sprintf, strlen, etc), making it possible to write beyond the buffer. I've even seen places where it is suggested not to use the standard library at all due to these problems. This of course, leads to portablity problems, and requires third-party libraries. Which comes to another point, C isn't inheritly portable. Any non-trivial work will need more specific features of a particular platform, and so if you want portablity, then somone will need to write a generic interface that encapsulates all the work for each and every platform that the application will be ported too. This means you'll need to statically compile code (making the executables bigger), or suppling the general third-party code in a platform-specific, dynamic library (many library licenses require this option). This of course, is comparable to virtual machines that so many people complain about having to supply for applications to work. In both cases, runtime libraries must be supplied at the time of execution. Edit: Ferox you're code has the "painter problem", which means its going to get slower as you manipulate the string. This is because each time you call a function that manipulates the string, you have to get the length: start from the beginning of the string and count each character. This is the same thing that standard C library strlen suffers. Its better just to use the C++ string class, which is faster than the C library, and safer.
July 24, 200519 yr ROFLSAUCE First, VB sucks. Second, Java has a great concept, but sucks Third, .NET is same concept, but doesn't suck Fourth, since VB sucks, VB.NET sucks. Based on this incredibly krad logic, C# is your ONLY ALTERNATIVE.
July 26, 200519 yr VB = Ugly fucking syntax, restricted to Windows operating systems and once your a fluent programmer in VB, you latch on to it like tits and you end up never learning C/C++/Perl to the level you can actually do something productive. C = Been around for ages, not restricted to it's native platform (read: cygwin), and the syntax has a nice flow.
July 30, 200519 yr VB is full of lies and irrelevent abstract concepts and terms, it never has been, and never will be suited to commercial application development, nor any application that requires a higher level of complexity than how to minimize a window. C has been used for the development of the majority of operating systems on the market today, including both Windows and Unix. It is the next step up from Assembly, and provides both an extensive range of built-in optimizing keywords along with the ability to produce code that is 80% identical to that of Assembly, unlike VB of which you couldn't even scale against Assembly. Regards, Matt J.
August 6, 200519 yr VB is great for kiddies. VB.NET is wonderful, rapid development PLUS managable code and OOP... unfortunatley it is nothing like VB6. Its a great side project langauge. Get over it. You will never be able to make effective memory calls like you can in VB.NET /C# .net or C++ asm. And yes you can make memory calls in .NET you just need to wrap unmanaged code. blah blah blah
August 6, 200519 yr In my oppinion, Delphi pwns VB by a long shot. Sure, VB is easier to learn and probably has more support, but Delphi is by far more powerful than vb. Also, if I had to say the most powerful language, it would be ASM. Very refined but it takes alot of time to code in. But I'm not one to judge.. I'm going by features I know. I don't know alot about Visual Basic, because I have always used C++ and Delphi.
August 7, 200519 yr Java, future programming language for all software development projects. VB is terrible, I learned it when I was 12. Basically all you need to know is how to speak english.
August 7, 200519 yr what you cant do in one line: int i; int s;int d;s=2;i=8;d=i+s;//math in vb it would look like... dim i as long, s as long, d as long 'i dont care that i used int and now am using long goto hell ok? i=8 s=2 d=i+s it couldnt be on the same line, would prob give errors. and even then you couldnt do things like arrays or loops on the same line. in C++ im almost certain an entire application could be one line. (if you really wanted to) but that doesnt change the fact that VB is flawed. its good to write calculators and children's games, but C++ is the powerhouse.
August 7, 200519 yr Yes, C++ is the most powerful I have encountered, other than asm, which requires alot of skill. Also people say C++ is hard to learn.. I find it alot easier than Visual Basic.
August 7, 200519 yr int i; int s;int d;s=2;i=8;d=i+s;//math could be done as simple as int i = 8, s = 2, d = i + s;