Maker Pro
Maker Pro

VB .net. Is there a simple way to do comms?

T

The real Andy

Jan 1, 1970
0
I needed to do a simple test app for some serial comms, so I fired up .Net.
I thought 'VB will be nice'n'simple'. Well I'll be buggered, Classes?
Inherits? Publics? Damn, if thats VB I'll scull them ten beers in the
fridge, oh, i have already done that.....nevermind.. I have been playing in
..net for a while now but have never ventured into VB.net

Point being, there used to be this fabulous object in VB6 and before called
MSComm, does something like that still exist? Is there an easyway to punch
out a quick comms testing app or do I need to write it in C#? Life is so
complicated these days - MSComm, serial test app in 5 minutes.

Best Regards:

Andy, the Real.
 
T

The real Andy

Jan 1, 1970
0
Just thought I'd add,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

for a simple button.
 
R

Rene Tschaggelar

Jan 1, 1970
0
The said:
I needed to do a simple test app for some serial comms, so I fired up
.Net. I thought 'VB will be nice'n'simple'. Well I'll be buggered,
Classes? Inherits? Publics? Damn, if thats VB I'll scull them ten
beers in the fridge, oh, i have already done that.....nevermind.. I
have been playing in .net for a while now but have never ventured
into VB.net

Point being, there used to be this fabulous object in VB6 and before
called MSComm, does something like that still exist? Is there an
easyway to punch out a quick comms testing app or do I need to write
it in C#? Life is so complicated these days - MSComm, serial test app
in 5 minutes.

Andy, the Real.

Hi, Andy the real,
If you're familiar with VB6, why don't you use it for this
test application ?
Or is reality a bit farther away ?

Rene
 
T

The real Andy

Jan 1, 1970
0
Rene Tschaggelar said:
Hi, Andy the real,
If you're familiar with VB6, why don't you use it for this
test application ?
Or is reality a bit farther away ?

VB6 only remains upon my Win95 laptop which is at my workplace. Oh well, I
can read up a tutorial on VB.net or I can go scull another ten beers. The
later sounds more interesting. I'll look into the VB.net another year, in
the meantime i'll keepon VB6ing and VC++ing. Oh, i almost forgot JavaC#!!. I
do like the limited datatypes in C# though.
 
R

Rene Tschaggelar

Jan 1, 1970
0
The said:
VB6 only remains upon my Win95 laptop which is at my workplace. Oh
well, I can read up a tutorial on VB.net or I can go scull another
ten beers. The later sounds more interesting. I'll look into the
VB.net another year, in the meantime i'll keepon VB6ing and VC++ing.
Oh, i almost forgot JavaC#!!. I do like the limited datatypes in C#
though.

You mean getting the laptop form the workplace is more
complicated than getting familiar with new tools such as
VB.net ? Well, that may depend where your workplace is located
relative to your current location.
No VB6 CDs around ?

Rene
 
R

Rene Tschaggelar

Jan 1, 1970
0
The real Andy wrote:

[snip]
VB6 only remains upon my Win95 laptop which is at my workplace. Oh
well, I can read up a tutorial on VB.net or I can go scull another
ten beers. The later sounds more interesting. I'll look into the
VB.net another year, in the meantime i'll keepon VB6ing and VC++ing.
Oh, i almost forgot JavaC#!!. I do like the limited datatypes in C#
though.

I'd assume a VB.net newsgroup to be more appropriate then

Rene
 
T

The real Andy

Jan 1, 1970
0
Rene Tschaggelar said:
You mean getting the laptop form the workplace is more
complicated than getting familiar with new tools such as
VB.net ? Well, that may depend where your workplace is located
relative to your current location.
No VB6 CDs around ?

Got the VB6 CD's on a shelf nearby. I could install it, but am too lazy. I
think what I was trying to say is that I want a quick an easy way to knock
together a serial test app with .net. I will write the current test app
tomorrow at work on my laptop in vb6, but I would prefer to stick with
current software trends, hence .net

I was quite stunned when i loaded the vb.net standard windows as it looks
very very object oriented (i could be wrong) which is not real typical of
VB. The first thing i noticed was that it looks real strong on inheritance.
I also noticed all these new keywords that are more familiar with C and C++.
I also noticed that I could not find an MSComm object, which I assume has to
be inherited from some .net base class. Gaa, inhereted from a base class in
VB....See what I mean?
 
J

John Larkin

Jan 1, 1970
0
I needed to do a simple test app for some serial comms, so I fired up .Net.
I thought 'VB will be nice'n'simple'. Well I'll be buggered, Classes?
Inherits? Publics? Damn, if thats VB I'll scull them ten beers in the
fridge, oh, i have already done that.....nevermind.. I have been playing in
.net for a while now but have never ventured into VB.net

Point being, there used to be this fabulous object in VB6 and before called
MSComm, does something like that still exist? Is there an easyway to punch
out a quick comms testing app or do I need to write it in C#? Life is so
complicated these days - MSComm, serial test app in 5 minutes.

Best Regards:

Andy, the Real.

Take a look at PowerBasic. There are DOS, Win, and Win Console
versions. It's blindingly fast (megahertz FOR loops), simple, and
makes clean small .EXE files instead of the dozens of trash files that
VB likes to make.

http://www.powerbasic.com/

People smirk when I tell them I work in PB, but I get real
money-making stuff done in a fraction of the time they do.

John
 
R

Rene Tschaggelar

Jan 1, 1970
0
John said:
up .Net. >I thought 'VB will be nice'n'simple'. Well I'll be
buggered, Classes? >Inherits? Publics? Damn, if thats VB I'll scull
them ten beers in the >fridge, oh, i have already done
that.....nevermind.. I have been playing in >.net for a while now but
have never ventured into VB.net >
called >MSComm, does something like that still exist? Is there an
easyway to punch >out a quick comms testing app or do I need to write
it in C#? Life is so >complicated these days - MSComm, serial test
app in 5 minutes. >

Take a look at PowerBasic. There are DOS, Win, and Win Console
versions. It's blindingly fast (megahertz FOR loops), simple, and
makes clean small .EXE files instead of the dozens of trash files that
VB likes to make.

http://www.powerbasic.com/

People smirk when I tell them I work in PB, but I get real
money-making stuff done in a fraction of the time they do.

The same actually applies to Delphi, but for a quick test he
should use what does the job fastest.

Rene
 
A

Active8

Jan 1, 1970
0
You mean getting the laptop form the workplace is more
complicated than getting familiar with new tools such as
VB.net ? Well, that may depend where your workplace is located
relative to your current location.
No VB6 CDs around ?

no microfreakinsoft.public.programmer.telletubbyVB.crap newsgroups
around? ;-)

sheesh...

brs,
mike
 
A

Active8

Jan 1, 1970
0
Got the VB6 CD's on a shelf nearby. I could install it, but am too lazy. I
think what I was trying to say is that I want a quick an easy way to knock
together a serial test app with .net. I will write the current test app
tomorrow at work on my laptop in vb6, but I would prefer to stick with
current software trends, hence .net

I was quite stunned when i loaded the vb.net standard windows as it looks
very very object oriented (i could be wrong) which is not real typical of
VB. The first thing i noticed was that it looks real strong on inheritance.

yeah, it inherited all the crap code that was written in MFC for VB6.
I also noticed all these new keywords that are more familiar with C and C++.
I also noticed that I could not find an MSComm object, which I assume has to
be inherited from some .net base class. Gaa, inhereted from a base class in
VB....See what I mean?

move an old MSComm object over from VB6, register the damn thing and use
it.
 
A

Active8

Jan 1, 1970
0
Take a look at PowerBasic. There are DOS, Win, and Win Console
versions. It's blindingly fast (megahertz FOR loops), simple, and
makes clean small .EXE files instead of the dozens of trash files that
VB likes to make.

http://www.powerbasic.com/

People smirk when I tell them I work in PB, but I get real
money-making stuff done in a fraction of the time they do.

that might work. hope it works in the enterprise as well as VB. fast,
simple, and cross-platform is why i use wxWindows for C++ apps.

brs,
mike
 
A

Active8

Jan 1, 1970
0
uh, microshaft is one of their customers. that should tell us something.
NASA, AT&T...

pretty impressive customer list. MS must not like their own product.
sorta like Borland competing against itself with Paradox and dBase.

brs,
mike
 
T

The real Andy

Jan 1, 1970
0
move an old MSComm object over from VB6, register the damn thing and use
it.

Ahh, good idea. This is why a love newsgroups. Umm, how do you do that
exactly? Time to read up one of those .net books that have been on the shelf
since I bought it.....
 
T

The real Andy

Jan 1, 1970
0
PB in my part of the world is Powerbuilder, the most awful DB programming
language i have ever dealt with!
The same actually applies to Delphi, but for a quick test he
should use what does the job fastest.

MS is available to me, that's why I use it. Add to the fact that the
microsoft.public newsgroups are usually very helpful. Also add that MS is
also fairly widespread..
 
A

Active8

Jan 1, 1970
0
Ahh, good idea. This is why a love newsgroups. Umm, how do you do that
exactly? Time to read up one of those .net books that have been on the shelf
since I bought it.....
never saw a VB book that covered that, but the MSDN covers all that if
you enjoy drilling through a ton of separate files to find what you're
looking for. if you *know* what to look for, and how the hell could you?

i'm pretty sure that MSComm thingy was a component 'cause IIRC it showed
up in the "references" or "components" or whatever they're called in the
VB IDE along with common controls, ADO and all that crap.

you do regsvr32 -r file

-r for register. -u for unregister. file is the path to the ocx or dll.
exes IIRC are self registering (or you have to make 'em that way,) you
just run 'em. some exes have a window, so i'll open an app. there's a
command line check at the beginning of the WinMain func to check if it's
being run standalone or being called by the com subsystem. but in NT and
later, there's a couple of apps i can't remember the name of that you
have to use to set permissions to call servers over the network.
dcomconfg is one of 'em, best i can remember. they'll know at the OLE
group if you ever need to do it.

so after you do the regsvr thing it'll show up in the "components" or
"references" dialogs in the VB IDE. same if you write and register your
own controls.

heh, heh... i didn't return the book club card once and ended up getting
a couple of .NET books. one's an Osbourne programmers ref and the other
looked like it would get me through if ever some seat polishing, E-Week
(or whatever) reading, MIT decides he just has to have it, at which
point i would probably update my resume', call the headhunter, and milk
the cow while learning .NET. i read an opinion that it would pass as a
fad. hell, just look at that PowerBasic site. MS uses it! an MIT i
worked for wouldn't let me write C++ components 'cause with VB i
couldn't "get over on him." f-u MIT, learn a real language.

brs,
mike
 
A

Active8

Jan 1, 1970
0
[snip]
MS is available to me, that's why I use it. Add to the fact that the
microsoft.public newsgroups are usually very helpful. Also add that MS is
also fairly widespread..
and here i thought you didn't know that.
 
J

John Larkin

Jan 1, 1970
0
that might work. hope it works in the enterprise as well as VB. fast,
simple, and cross-platform is why i use wxWindows for C++ apps.

brs,
mike

What I'm talking about is solving electrical engineering problems, not
writing sellable enterprise Windows apps. Cross-platform doesn't
matter when all you want is the answer. Win programs tend to be mostly
OS and user interface, and engineering programs tend to be mostly
math.

A few of the things I've done in PowerBasic lately:

A utility to use the Tundra PCI-VME bridge chip in real mode.

A ROM image builder that combines uP code (Moto .S28) with Xilinx
FPGA (.rbt) config data

A jitter analysis program that gets data from a Tek sampling scope

A simulation of a hybrid analog:digital PLL

A program to acquire 3D atom probe images

Dozens of realtime test programs

Our parts list/inventory/planning system

This stuff is easy when the language is simple.

John
 
A

Active8

Jan 1, 1970
0
What I'm talking about is solving electrical engineering problems, not
writing sellable enterprise Windows apps. Cross-platform doesn't
matter when all you want is the answer. Win programs tend to be mostly
OS and user interface, and engineering programs tend to be mostly
math.

sorry, that's not exactly what i meant, though.

you snipped too much ;-)

****************
that might work. hope it works in the enterprise as well as VB. fast,
simple, and cross-platform is why i use wxWindows for C++ apps.
******************

that's really 2 thoughts. sorry for not being clear. i did piss poor,
actually :)

even in the enterprise for which the VB app was written, i've had that
odd machine on which it won't run. that's the enterprise angle. i've
stated in the past that i won't use VBA on anything i plan on letting
others use *outside* the [single] enterprise because VBA sucks. that's
basically what i said, anyway :)

the second thought was that wxWindows wraps the API IMHO better than MFC
and is cross-platform (meaning it's a programming framework that can be
compiled for different platforms - not platform-independant like Java,
mind you) which lends itself to use outside the enterprise, i.e.,
something you'd download from someone's site that'll work on your
machine without having to download a whole runtime package on top of it.

maybe i was hoping PB would work in that case, too, but before i tried,
i'm sure i'd come to my senses. glad to hear it works for you, though. i
don't have a big prob with VBA for those EDAs i write but i'm doing even
those in wxWindows/C++ now, too. i just don't like VBA. it's too loose.
wxWindows is (time to check up!) close to having a 3rd party UI
designer, too. and it's free. it'll support XML defined UIs , also.
Our parts list/inventory/planning system
there's a good enterprise app example. it runs in your enterprise
because, i assume, it's designed to retreive records from SQL Server/
Oracle/MySQL. it could be a pain in the ass getting it to work for
another enterprise even with the same DB and what's the word i'm looking
for? trying to say "the same tables, fields, stored procs, views, etc."
Schema!

brs,
mike
 
Top