Register Forums Today's Posts Reviews Gallery Video Vault Downloads Resources Shopping
Go Back   Mobility Site > Dell Axim Forums - Aximsite.com > X50 / X51 Forums > PDA/AXIM Newbies

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

Reply
 
LinkBack Thread Tools
Old 03-26-08, 08:41 PM   #1 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
iTrader Rating: (0)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
sponsor links


Old 03-28-08, 09:54 AM   #2 (permalink)
Aximsite All Star
 
jdigitL's Avatar
 
Join Date: Dec 2006
Posts: 751
Location: Philadelphia
PDA: HTC TyTN II
Carrier: AT&T
Laptop: Lenovo X60
PMP: iTunes
iTrader Rating: (0)
View MyPDA
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
jdigitL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-28-08, 10:13 AM   #3 (permalink)
Aximsite Veteran

 
CodeBubba's Avatar
 
Join Date: Jan 2005
Posts: 1,918
Location: DeLand, FL
PDA: Samsung SCH-i760
Phone: Samsung SCH-i760
Carrier: Verizon Wireless
PMP: Phillips GoGear 8GB
iTrader Rating: (0)
View MyPDA
Quote:
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
General Aviation is not the stepchild of modern aviation... it is the Father. - Unknown

The aviation industry has a perfect record: we've never left anyone up there! - Unknown

If the plane is still in one piece don't cheat on it, ride the bastard all the way down! - Airp, Airp.

Aximsite Active Silver Member 

CodeBubba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-28-08, 10:16 AM   #4 (permalink)
Aximsite All Star
 
jdigitL's Avatar
 
Join Date: Dec 2006
Posts: 751
Location: Philadelphia
PDA: HTC TyTN II
Carrier: AT&T
Laptop: Lenovo X60
PMP: iTunes
iTrader Rating: (0)
View MyPDA
nice, thanks!
jdigitL is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-28-08, 04:18 PM   #5 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
iTrader Rating: (0)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-28-08, 06:28 PM   #6 (permalink)
Aximsite Major League
 
Bill_Todd's Avatar
 
Join Date: Mar 2006
Posts: 314
Location: Colchester (nuked in 1984)
PDA: Axim X51V
iTrader Rating: (0)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-08, 08:59 AM   #7 (permalink)
Aximsite Veteran

 
CodeBubba's Avatar
 
Join Date: Jan 2005
Posts: 1,918
Location: DeLand, FL
PDA: Samsung SCH-i760
Phone: Samsung SCH-i760
Carrier: Verizon Wireless
PMP: Phillips GoGear 8GB
iTrader Rating: (0)
View MyPDA
Quote:
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

Aximsite Active Silver Member 

CodeBubba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-08, 09:22 PM   #8 (permalink)
Aximsite All Star
 
DaLabrador's Avatar
 
Join Date: Jun 2006
Posts: 756
PDA: X51V
Phone: Nokia 5310
PMP: Nokia 5310, X51V
iTrader Rating: (0)
View MyPDA
Or you can use embedded visual c++ 4.0 (which is freeish).
  1. Be Kind.
  2. Have fun.
DaLabrador is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-08, 11:06 PM   #9 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Posts: 157
Location: Washington
PDA: Dell Axim x51v
Phone: Moto Q 9m
Carrier: Verison!
Tablet: That's my Axim
Laptop: Dell Inspiron
PMP: VLC
iTrader Rating: (0)
View MyPDA
Just go C#
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.
calebgo.com - My Website


I don't believe in atheists therefore atheists don't exist.
Clegs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-30-08, 01:38 PM   #10 (permalink)
Aximsite Veteran

 
CodeBubba's Avatar
 
Join Date: Jan 2005
Posts: 1,918
Location: DeLand, FL
PDA: Samsung SCH-i760
Phone: Samsung SCH-i760
Carrier: Verizon Wireless
PMP: Phillips GoGear 8GB
iTrader Rating: (0)
View MyPDA
Quote:
Originally Posted by Clegs View Post
Just go C#
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
General Aviation is not the stepchild of modern aviation... it is the Father. - Unknown

The aviation industry has a perfect record: we've never left anyone up there! - Unknown

If the plane is still in one piece don't cheat on it, ride the bastard all the way down! - Airp, Airp.

Aximsite Active Silver Member 

CodeBubba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-08, 11:47 AM   #11 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Posts: 157
Location: Washington
PDA: Dell Axim x51v
Phone: Moto Q 9m
Carrier: Verison!
Tablet: That's my Axim
Laptop: Dell Inspiron
PMP: VLC
iTrader Rating: (0)
View MyPDA
Quote:
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^)
calebgo.com - My Website


I don't believe in atheists therefore atheists don't exist.
Clegs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-08, 12:57 PM   #12 (permalink)
Aximsite Veteran

 
CodeBubba's Avatar
 
Join Date: Jan 2005
Posts: 1,918
Location: DeLand, FL
PDA: Samsung SCH-i760
Phone: Samsung SCH-i760
Carrier: Verizon Wireless
PMP: Phillips GoGear 8GB
iTrader Rating: (0)
View MyPDA
Quote:
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
General Aviation is not the stepchild of modern aviation... it is the Father. - Unknown

The aviation industry has a perfect record: we've never left anyone up there! - Unknown

If the plane is still in one piece don't cheat on it, ride the bastard all the way down! - Airp, Airp.

Aximsite Active Silver Member 

CodeBubba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-31-08, 01:21 PM   #13 (permalink)
News Editor


 
psionandy's Avatar
 
Join Date: Jan 2005
Posts: 20,834
Location: Liverpool, England
PDA: Vario III (Kaiser)
Phone: Vario III (Kaiser)
Carrier: O2 UK
Laptop: changing mat
PMP: Coreplayer
iTrader Rating: (2)
View MyPDA
If you're a VB fan then Basic4PPC would seem to be a very similar fit....
This week I have been mostly listening to..... Short cummings audio

Life — In Funny, Six-Minute Slices

Aximsite Active Silver Member Gold Poster Aximsite Contest Winner Top Notch MyPDA Aximsite Silver Contributors 

psionandy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-02-08, 06:04 PM   #14 (permalink)
Aximsite Prospect
 
Join Date: Mar 2008
Posts: 4
iTrader Rating: (0)
I am in fact stumbling around in it but, all of your suggestions are very helpful. Thank you.
oversteve is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-29-08, 06:08 PM   #15 (permalink)
Aximsite Prospect
 
Join Date: Apr 2008
Posts: 1
iTrader Rating: (0)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
developing, software

sponsor links



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 06:36 PM.