karimw786 Posted February 2, 2005 Share Posted February 2, 2005 I know this isn't exactly the proper place to ask this, but please cut me some slack: I was wondering how to read input/data from the serial port in Visual Basic. I looked on Google and it only had stuff for C/C++/Java. I need to use VB, however. Any help you could give me (whether you yourself help or send me a link) would be greatly appreciated. Thanks. Link to comment Share on other sites More sharing options...
3141592 Posted February 2, 2005 Share Posted February 2, 2005 You need to use the Visual Basic Microsoft "Comm" control. From "components" menu select "Microsoft Comm control 6.0" Do a google for for it also - there is lots of stuff... Link to comment Share on other sites More sharing options...
zgamesforu Posted February 2, 2005 Share Posted February 2, 2005 Yea but VB isn't as popular as java or C++. More often than not you need to go digging to solve your problem, but the answer's there somewhere Link to comment Share on other sites More sharing options...
bbbb Posted February 9, 2005 Share Posted February 9, 2005 I wonder if it would be possible to place an older version of Visual Basic on this site. The language may have its limitations but it is easy to program simple programs. Link to comment Share on other sites More sharing options...
karimw786 Posted March 5, 2005 Author Share Posted March 5, 2005 Does anyone have an older version of VB to upload? I sure don't, otherwise i'd up it. Link to comment Share on other sites More sharing options...
Gamer98 Posted March 5, 2005 Share Posted March 5, 2005 I have VB 6.0 kicking around somewhere. If someone wants that let me know. Link to comment Share on other sites More sharing options...
NiteShdw Posted March 5, 2005 Share Posted March 5, 2005 I have a MSDN version of Visual Studio .net 2003, that's what I'm using to make my DVD -> AVI batch convertor utility. Link to comment Share on other sites More sharing options...
Gamer98 Posted March 5, 2005 Share Posted March 5, 2005 Isnt that 7 CD's in total? kinda overkill but maybe not for what it is need for. Link to comment Share on other sites More sharing options...
karimw786 Posted March 5, 2005 Author Share Posted March 5, 2005 I have a MSDN version of Visual Studio .net 2003' date=' that's what I'm using to make my DVD -> AVI batch convertor utility.[/quote'] Oh I really don't need VB, but someone else was asking for it on this thread... I have VB at school. Personally I'd be more interested in information about what is involved in a "DVD -> AVI batch convertor utility". But then again I'm a Comp. Sci. student and am always looking for programming hints/tips. :) Link to comment Share on other sites More sharing options...
elderbear Posted March 5, 2005 Share Posted March 5, 2005 I wonder if it would be possible to place an older version of Visual Basic on this site. The language may have its limitations but it is easy to program simple programs. Learn Python!!! It's free. It's portable. It has a good enough GUI (TKinter). It's open source - and that implies a huge community of debuggers, testers and builders. As a scripting language it's far more elegant than any form of BASIC, yet simple enough for a 12 year-old to learn. But, it's also object oriented - you can ignore that if you want, but that objective nature lets you do amazing things simply. It can be embedded in C/C++ programs, there is a version (Jython) for embedding in Java. There are a number of open source books free for download on the net. The support packages and libraries are amazing - everything from XML parsing to numerical programming to database manipulation. Did I say it was free? Python.org - free downloads, links, and documentation Link to comment Share on other sites More sharing options...
vystral Posted March 5, 2005 Share Posted March 5, 2005 ehh...Python is too different. Dig youself into C++ for a good time. #include void main(void) { cout >> "I have VB (a newer version) in .mds format."; } Link to comment Share on other sites More sharing options...
karimw786 Posted March 5, 2005 Author Share Posted March 5, 2005 ehh...Python is too different. Dig youself into C++ for a good time. #include void main(void) { cout >> "I have VB (a newer version) in .mds format."; } I love C++ too. Few things to look out for: 1. Error: it should be cout << not cout >> (unless you're comfortable with overloaded operators, which in general is not a good idea for >> and <<) 2. #include has been replaced by #include using namespace std; in the C++ standard 3. void main (void) can be replaced by void main() I'm just being picky, but my first programming teacher taught me that pickiness is good in coding. Link to comment Share on other sites More sharing options...
elderbear Posted March 5, 2005 Share Posted March 5, 2005 ehh...Python is too different. Dig youself into C++ for a good time. #include void main(void) { cout >> "I have VB (a newer version) in .mds format."; } #! \usr\local\bin\python print 'And you say Python is "too different?!?"' B) Link to comment Share on other sites More sharing options...
elderbear Posted March 5, 2005 Share Posted March 5, 2005 ehh...Python is too different. Dig youself into C++ for a good time. #include void main(void) { cout >> "I have VB (a newer version) in .mds format."; } I love C++ too. Few things to look out for: 1. Error: it should be cout << not cout >> (unless you're comfortable with overloaded operators, which in general is not a good idea for >> and <<) 2. #include has been replaced by #include using namespace std; in the C++ standard 3. void main (void) can be replaced by void main() I'm just being picky, but my first programming teacher taught me that pickiness is good in coding. All that for just a simple bit of code, that still has to be compiled and linked? Python is less obscure, thus one is less prone to insert errors. It also works at a higher level, greatly simplifying things like text processing. Nevertheless, when writing real-time code, C + assembler gets the job done, and gets it executed more rapidly ... eventually. And I'd disagree with your point # 3 as a matter of style. It's better to code the void as an argument to main than to leave it out. More explicit, especially for C programmers. I haven't kept up with C++ evolution, though, so perhaps the main(void) construct will now blow up? C++ is powerful, fast, kludgy, nasty to maintain, is only slightly portable, and has got too many gotchas. In the hands of a skilled programmer it can instantiate the Trek nature. Java is powerful, slightly slower, more elegant, mostly portable, and has a few well understood gotchas. It has the Berman//Braga "Trek" nature. Python is powerful, a bit slower yet, elegant, maintains very well, mostly portable, and has very few gotchas. It personifies the Trek nature. VB is cumbersome, kludgy, nasty to maintain, has a ton of gotchas, is proprietary, and not portable. It does not have the Trek nature - We are the Gates. Prepare to be assimilated. Resistance is futile! Link to comment Share on other sites More sharing options...
karimw786 Posted March 5, 2005 Author Share Posted March 5, 2005 Yeah, sorry, #3 is a matter of personal preference, but it's less typing, which is always a bonus. Link to comment Share on other sites More sharing options...
ghostwolf357 Posted March 6, 2005 Share Posted March 6, 2005 But does pyton tie in with apacie and sql language? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now