Notices

PDA/AXIM Newbies Don't be afraid to ask a question.

Reply
 
LinkBack Thread Tools
Old 03-26-08, 09:41 PM   #1 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
Thanked 0 Times in 0 Posts
developing software

I am familiar with visual basic and currently play with vb 2005. I can to some extent create apps for my pocket pc but it seems that the standard syntax for creating and writing to a file on the pocket pc is quite different that that of writing to my computers hard drive.

I have a book on the way but I am struggling to find info, tutorials, or any other support on the web that discusses this.

There is so much vb code on the net for creating apps that run on a pc they practically write themselves. Not for ppc though. The code is sometimes quite different and very hard for me to find. File system code in particular is what I need. For example: Say I want to create a file on my pc harddrive called "steve.txt" and in the file write the name "steve" This is a piece of cake for pc based visual basic but for the pc the syntax changes drastically it seems.

Any guidance would help. Thank you in advance.

Steve
oversteve is offline   Reply With Quote
Sponsor Ads
Old 03-28-08, 10:54 AM   #2 (permalink)
jdigitL
Guest
 
Posts: n/a
HOw to install eMbedded Visual Basic in VB.NET | Free Programming Tutorials

GAPI. Sections. Pocket PC Developer Network

try google books as well. basically you install vb and the pocket pc sdk for the os(s) your aiming your app for. make a build and test it on different devices after your testing in the emulation environment...

jd
  Reply With Quote
Old 03-28-08, 11:13 AM   #3 (permalink)
Aximsite Veteran
 
CodeBubba's Avatar
Uber Member
 
Join Date: Jan 2005
Location: DeLand, FL
Posts: 1,919
Device: Moto-Q 9C
Carrier: Verizon Wireless
Thanked 8 Times in 8 Posts

Awards Showcase
Aximsite Active Silver Member 
Total Awards: 1

Originally Posted by jdigitL View Post
HOw to install eMbedded Visual Basic in VB.NET | Free Programming Tutorials

GAPI. Sections. Pocket PC Developer Network

try google books as well. basically you install vb and the pocket pc sdk for the os(s) your aiming your app for. make a build and test it on different devices after your testing in the emulation environment...

jd
eMBedded VB isn't needed if you are using VB.Net 2005. You can develop, debug and deploy applications directly from the IDE. All the additional SDK's aren't needed anymore if you have Visual Studio 2005 Standard or better.

-CB :D
CodeBubba is offline   Reply With Quote
Old 03-28-08, 11:16 AM   #4 (permalink)
jdigitL
Guest
 
Posts: n/a
nice, thanks!
  Reply With Quote
Old 03-28-08, 05:18 PM   #5 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
Thanked 0 Times in 0 Posts
Embedded vb is not only no longer necessary but good luck even finding it. It is pretty much obsolete and out of the game. Even though vb2005 can make apps for the ppc it used different language for certain things like writing sequential files to memory for example. For a pc you might use an "Open" statement to create a file. If you select a ppc project in vb2005 though, it simply no longer recognizes "open" as a usable statement. It uses things like "System.IO.file... etc." these appear to be the commands in lieu of normal statements like "open and close."

Therein lies my problem.
oversteve is offline   Reply With Quote
Old 03-28-08, 07:28 PM   #6 (permalink)
Aximsite Major League
 
Bill_Todd's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Colchester (nuked in 1984)
Posts: 315
Thanked 6 Times in 2 Posts
You might also like to look at Basic4PPC (Basic4ppc - Developing mobile applications the easy way) if you don't want to spend out on VS2005
__________________
Bill
Bill_Todd is offline   Reply With Quote
Old 03-29-08, 09:59 AM   #7 (permalink)
Aximsite Veteran
 
CodeBubba's Avatar
Uber Member
 
Join Date: Jan 2005
Location: DeLand, FL
Posts: 1,919
Device: Moto-Q 9C
Carrier: Verizon Wireless
Thanked 8 Times in 8 Posts

Awards Showcase
Aximsite Active Silver Member 
Total Awards: 1

Originally Posted by oversteve View Post
Embedded vb is not only no longer necessary but good luck even finding it. It is pretty much obsolete and out of the game. Even though vb2005 can make apps for the ppc it used different language for certain things like writing sequential files to memory for example. For a pc you might use an "Open" statement to create a file. If you select a ppc project in vb2005 though, it simply no longer recognizes "open" as a usable statement. It uses things like "System.IO.file... etc." these appear to be the commands in lieu of normal statements like "open and close."

Therein lies my problem.
Well, the main problem you're going to have here is you're simply going to need to learn how the .Net framework operates, that's all. Yes, it's an uphill learning curve but I think you'll figure it out. Sometimes it can be frustrating when you're used to simple constructs like "Open myfile for output as #1". I definitely feel your pain there.

However, even with .Net you can minimize the complexity, you just need to dig a little. Vs2005's IDE sure does make writing PPC code easier. emVB was "OK" but since you were really writing vbscript (in a VB6 IDE) half the functionality simply did not work. The IDE would let you write & compile the code but you had to run it on the device (or emuulator) before you could even find out.

-CB :)
CodeBubba is offline   Reply With Quote
Old 03-29-08, 10:22 PM   #8 (permalink)
Aximsite Veteran
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 1,173
Device: Nokia 5310
Thanked 5 Times in 5 Posts
Or you can use embedded visual c++ 4.0 (which is freeish).
__________________
  1. Be Kind.
  2. Have fun.
DaLabrador is offline   Reply With Quote
Old 03-30-08, 12:06 AM   #9 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Location: Washington
Posts: 157
Device: Moto Q 9m
Carrier: Verison!
Thanked 0 Times in 0 Posts
Just go C# :D
File operations aren't that different. It seems most people are using c based languages such as C++ and C#. You'll find much more support if you take the time to learn one of these languages then if you try to stumble around with vb.net.

For Pocket PC I'd really suggest learning C++ as these wimpy processors take so long to load the .NET runtime to start .net applications.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- My Website

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


I don't believe in atheists therefore atheists don't exist.
Clegs is offline   Reply With Quote
Old 03-30-08, 02:38 PM   #10 (permalink)
Aximsite Veteran
 
CodeBubba's Avatar
Uber Member
 
Join Date: Jan 2005
Location: DeLand, FL
Posts: 1,919
Device: Moto-Q 9C
Carrier: Verizon Wireless
Thanked 8 Times in 8 Posts

Awards Showcase
Aximsite Active Silver Member 
Total Awards: 1

Originally Posted by Clegs View Post
Just go C# :D
File operations aren't that different. It seems most people are using c based languages such as C++ and C#. You'll find much more support if you take the time to learn one of these languages then if you try to stumble around with vb.net.
I "stumble" around with VB.Net just fine, mate. My rules-engine (which drives a large time&attendance application is completely written in VB.Net). C# is a poor knock-off of the C-language, IMHO. I use both (C# and VB.Net) extensively and if given a choice I'll write it in VB.Net. The IDE implementation of VB is superior with it's incremental compiler and tighter integration with Intellisense.

Choose which language you like guy ... just don't assume that using VB.Net is "stumbling around", please. Some of us (30-year experienced) software professionals just plain like it!

-CB :D
CodeBubba is offline   Reply With Quote
Old 03-31-08, 12:47 PM   #11 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Location: Washington
Posts: 157
Device: Moto Q 9m
Carrier: Verison!
Thanked 0 Times in 0 Posts
Originally Posted by oversteve
I am familiar with visual basic and currently play with vb 2005.
Sorry CodeBubba, I know VB.net very well also but I was responding to oversteve who sounds like he is stumbling around in it... From my experience (I may not have 30 years but I do have experience) C based languages are much easier for people to learn. When I said stumble around I meant learn on your own. You can't deny that most .NET applications are written in C#, most programming books are in C#, you have java, javascript, actionscript, and many more languages based off of the c syntax. I think it's very worthwhile for every developer to learn how to get around in c style code.

B^)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- My Website

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


I don't believe in atheists therefore atheists don't exist.
Clegs is offline   Reply With Quote
Old 03-31-08, 01:57 PM   #12 (permalink)
Aximsite Veteran
 
CodeBubba's Avatar
Uber Member
 
Join Date: Jan 2005
Location: DeLand, FL
Posts: 1,919
Device: Moto-Q 9C
Carrier: Verizon Wireless
Thanked 8 Times in 8 Posts

Awards Showcase
Aximsite Active Silver Member 
Total Awards: 1

Originally Posted by Clegs View Post
Sorry CodeBubba, I know VB.net very well also but I was responding to oversteve who sounds like he is stumbling around in it... From my experience (I may not have 30 years but I do have experience) C based languages are much easier for people to learn. When I said stumble around I meant learn on your own. You can't deny that most .NET applications are written in C#, most programming books are in C#, you have java, javascript, actionscript, and many more languages based off of the c syntax. I think it's very worthwhile for every developer to learn how to get around in c style code.

B^)
No problem.

No doubt, learning C-like languages is a good idea but that they are "easier" is debatable. Let's just agree to disagree about that. ;)

As far as books go, I've found an adequate number of them using both languages. Seems to depend on the type of subject-matter. I might say that "most" are C#, but I wouldn't say that's a large "most". From what I've found at the bookstore in recent days it might be 55/45 in favor of C#.

Either languages is fine, really - particularly in .Net. They both do, essentially, the same thing.

-CB :D
CodeBubba is offline   Reply With Quote
Old 03-31-08, 02:21 PM   #13 (permalink)
Aximsite Legend
 
psionandy's Avatar
Addicted Member
 
Join Date: Mar 2005
Posts: 21,422
Thanked 0 Times in 0 Posts
If you're a VB fan then Basic4PPC would seem to be a very similar fit....
__________________
You'd have thought that someone would have put a sig here
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
psionandy is offline   Reply With Quote
Old 04-02-08, 07:04 PM   #14 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
Thanked 0 Times in 0 Posts
I am in fact stumbling around in it but, all of your suggestions are very helpful. Thank you.
oversteve is offline   Reply With Quote
Old 04-29-08, 07:08 PM   #15 (permalink)
Aximsite Prospect
 
Join Date: Apr 2008
Posts: 1
Thanked 0 Times in 0 Posts
VB is easy. .Net is huge and takes a while to learn. At the top of your code page add the line "Imports System.IO.File". Then you can call all the file system objects without having to put system.io.file in front of all of them. "Imports system...." works for any branch of the .NET tree that you are using in your project and make a lot of object calls from.


Imports System.IO.File

Public Class PocketTune


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.IO.File.Open("c:\tesst", IO.FileMode.Create)
Open("c:\tesst", IO.FileMode.Create)
SerialPort1.Open()
oughtsix is offline   Reply With Quote
Reply

Tags
developing, software

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:09 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC