objects in embedded visual basic 3.0 
Author Message
 objects in embedded visual basic 3.0

I am really started to get frustrated with vb.  I am very comfortable in c
so I can not understand why making a struct like object is so hard in
embedded vb.  For some reason I can't just do

Type MyType
    a As Integer
    b As Integer
End Type

when I try that I get a compiler error saying expected statement, what the
heck does that mean.  What I really want is to be able to make a class, but
if I can get a struct to work I would live, does any body know anything
about embedded vb 3.0?



Tue, 14 Sep 2004 04:53:55 GMT  
 objects in embedded visual basic 3.0
Umm... maybe you need a private or public in front of Type?
I don't know much about embedded VB, I'm just drawing on what I know of
other languages

--
Whitt Batcheler


www.whittweb.net


Quote:
> I am really started to get frustrated with vb.  I am very comfortable in c
> so I can not understand why making a struct like object is so hard in
> embedded vb.  For some reason I can't just do

> Type MyType
>     a As Integer
>     b As Integer
> End Type

> when I try that I get a compiler error saying expected statement, what the
> heck does that mean.  What I really want is to be able to make a class,
but
> if I can get a struct to work I would live, does any body know anything
> about embedded vb 3.0?



Tue, 14 Sep 2004 05:48:18 GMT  
 objects in embedded visual basic 3.0


Quote:
> I am really started to get frustrated with vb.  I am very comfortable in c
> so I can not understand why making a struct like object is so hard in
> embedded vb.  For some reason I can't just do

> Type MyType
>     a As Integer
>     b As Integer
> End Type

> when I try that I get a compiler error saying expected statement, what the
> heck does that mean.  What I really want is to be able to make a class,
but
> if I can get a struct to work I would live, does any body know anything
> about embedded vb 3.0?

Well its not embedded vb but on my old vb3.0 the types had to
be defined within a module. ie select New >> Module.
Then if you want to use one in say a click event....
Static ThisType as MyType.
VB3 helpfiles have a good example if you need it.
HTH Mick.


Tue, 14 Sep 2004 06:16:24 GMT  
 objects in embedded visual basic 3.0
Quote:
> I am really started to get frustrated with vb.

The frustration won't end, believe me.

Quote:
> so I can not understand why making a struct like object is so hard in
> embedded vb.

eVB doesn't do Types or Classes. The help file's suggestion is to rewrite
your app so that it doesn't need them! What a joke.

eVB is essentially VBScript.



Tue, 14 Sep 2004 06:46:16 GMT  
 objects in embedded visual basic 3.0

Quote:
> > I am really started to get frustrated with vb.
> The frustration won't end, believe me.

I want to qualify this...the frustration won't end with eMbeddedVB. eVB is
*not* VB. VB6 is great tool.


Tue, 14 Sep 2004 06:48:27 GMT  
 objects in embedded visual basic 3.0

Quote:

> I am really started to get frustrated with vb.  I am very comfortable in c
> so I can not understand why making a struct like object is so hard in
> embedded vb.  For some reason I can't just do

> Type MyType
>     a As Integer
>     b As Integer
> End Type

> when I try that I get a compiler error saying expected statement, what the
> heck does that mean.  What I really want is to be able to make a class, but
> if I can get a struct to work I would live, does any body know anything
> about embedded vb 3.0?

"eMbedded" VB seems to be closer to VBScript than it is to Visual Basic.
If you're more comfortable with C, perhaps you'd be better off with
"eMbedded" Visual C++?

 URL:http://msdn.microsoft.com/vstudio/device/prodinfo.asp

--
Joe Foster <mailto:jlfoster%40znet.com>   Space Cooties! <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!



Tue, 14 Sep 2004 06:43:11 GMT  
 objects in embedded visual basic 3.0
So basically if you want to make an app for CE you gotta use c++ then uh?  I
would of used c++ right off the bat, but I had recentally been messing with
C# and I really liked the event driven way of doing it insteed of having the
winproc, but if I would of just started with the winproc I probally would of
been done by now, me thinks I will stick with my c++ until c# is everywhere.
Thanks for the info.


Quote:
> > I am really started to get frustrated with vb.
> The frustration won't end, believe me.

> > so I can not understand why making a struct like object is so hard in
> > embedded vb.

> eVB doesn't do Types or Classes. The help file's suggestion is to rewrite
> your app so that it doesn't need them! What a joke.

> eVB is essentially VBScript.



Tue, 14 Sep 2004 13:21:12 GMT  
 objects in embedded visual basic 3.0

Quote:

> So basically if you want to make an app for CE you gotta use c++ then uh?  I
> would of used c++ right off the bat, but I had recentally been messing with
> c# and I really liked the event driven way of doing it insteed of having the
> winproc, but if I would of just started with the winproc I probally would of
> been done by now, me thinks I will stick with my c++ until c# is everywhere.

Unless "eMbedded C#" is crippled like "eMbedded VB"...

Also have a look at CASL:  URL:http://caslsoft.com/

--
Joe Foster <mailto:jlfoster%40znet.com>  "Regged" again? <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!



Tue, 14 Sep 2004 14:39:04 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. embedded visual basic tools 3.0

2. Questions regarding embedded Visual Basic 3.0

3. Unable to start eMbedded Visual Basic 3.0

4. Problem whit GOTO ----- LABEL in eMbedded Visual Basic 3.0

5. No access to CE from within eMbedded Visual Basic 3.0

6. No access to CE from within eMbedded Visual Basic 3.0

7. Embedded Visual Basic 3.0 & Windows CE

8. Visual Basic 3.0 to Visual Basic 6.0

9. loading visual basic 3.0 applications in visual basic 5.0

10. Visual Basic 3.0 vs Visual Basic 4.0

11. DDE link between WinFax 3.0 and Visual Basic 3.0

12. Embedded Visual Tools 3.0 - 2002 Edition ??

 

 
Powered by phpBB® Forum Software