x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Possible to make programs in Visual Basic for CE 2.0 that are exe files?

1 2
aab Page Icon Posted 2013-09-09 3:20 PM
#
Avatar image of aab
H/PC Elite

Posts:
669
Location:
Canada
Status:
I know Visual Basic and thought it would be very useful if I could write my own HPC programs for CE 2.0. However I remember when I had my first Casio E-100 (my first CE device) that VB "programs" for CE where basically a script saved as a *.vb file, is there a way to program in VB in such a way that you end up with an exe file?

The only programming I've done on CE devices was on my Jornada 720 (not the one I have now, but the one I had bought about 10 years ago) by writing HTML files on the Jornada itself that contained form elements and JavaScripts to program it. Unfortunately, IE in CE 2.0 doesn't support javacript.

Thanks



Edited by aab 2013-09-09 3:22 PM
 Top of the page
CE Geek Page Icon Posted 2013-09-10 8:26 AM
#
Avatar image of CE Geek
Global Moderator
H/PC Oracle

Posts:
12,663
Location:
Southern California
Status:
Actually, in the first incarnation of eMbedded Visual Basic for CE 2.0, the files were written as .pvb files rather than .vb files. I'm a techno-idiot who has never learned thus far how to write programs, but based on my online research, only two developers tried their hands at writing .pvb programs: 1) Vincent Collura (of CEBeans fame, who later shifted to writing .vb programs for CE 3.0); and 2) Larry Roof, who pioneered Visual Basic programming for Windows CE and has written several references on Windows CE programming. A lot of folks here have written .vb programs, but you'll need at least a Windows CE 2.11 device to run them. But that tells me that programming in subsequent versions of VBCE is easier than it was in the initial version for CE 2.0. Have I succeeded in confusing you?

The only way to run a .vb program as an .exe is to write a separate small .exe file that in turn executes the .vb file. A lot of developers have done this in order to be able to embed their own icons to display with the program's shortcuts instead of the generic VBCE icon.
 Top of the page
C:Amie Page Icon Posted 2013-09-10 8:48 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
In order to target CE 2.00 you will need the Windows CE Toolkit for Visual Basic 6.0 and Visual Studio 6. Then you can target as required. Neither were free.

VB for 2.11+ was free however.
 Top of the page
Rich Hawley Page Icon Posted 2013-09-10 1:38 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
But what program would one want to create anyways that there isn't already one out there?
 Top of the page
C:Amie Page Icon Posted 2013-09-10 4:17 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
We need a Windows CE App Store that integrates directly into the SCL
 Top of the page
Rich Hawley Page Icon Posted 2013-09-10 5:58 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
No problem...I'll just whip up a little application that will search the SCL database and enable downloads based on search terms and whatever....here it is, all done...



(hpcplay.jpg)



Attachments
----------------
Attachments hpcplay.jpg (107KB - 1 downloads)
 Top of the page
C:Amie Page Icon Posted 2013-09-10 8:30 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
Hmmm, good first dog food build!

Surely the CPU would be detected automatically from the device and have a direct download link to the CAB?

It should definately have the star ratings and screenshots too
 Top of the page
Rich Hawley Page Icon Posted 2013-09-10 10:20 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
Since we are talking fantasy here...how about it installs the CAB file remotely from your site directly onto the handheld?
 Top of the page
C:Amie Page Icon Posted 2013-09-11 9:09 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
That's what I said
 Top of the page
Alt Bass Page Icon Posted 2013-09-11 7:30 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Rich suggests one-click silent download and installation I guess.
 Top of the page
C:Amie Page Icon Posted 2013-09-11 8:15 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
Same answer

Let's imagine do it
 Top of the page
Rich Hawley Page Icon Posted 2013-09-11 9:39 PM
#
Avatar image of Rich Hawley
Global Moderator
H/PC Guru

Posts:
7,188
Location:
USA
Status:
When I download a program through my desktop, it asks me if I want to save it or open it...is that a function of the browser or my OS?
 Top of the page
C:Amie Page Icon Posted 2013-09-13 9:12 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,955
Location:
United Kingdom
Status:
It's the browsers file transfer logic, the OS provides the browser with the mechanisms to do it. The app would have to invoke a HTTP GET for the file, write it to c:\windows\temp and then execute the cab. After that it becomes quite difficult to automate
 Top of the page
Alt Bass Page Icon Posted 2013-09-13 4:18 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
Quote
C:Amie - 2013-09-13 12:12 PM

After that it becomes quite difficult to automate


There is /silent switch for the wceload.
 Top of the page
Alt Bass Page Icon Posted 2013-09-13 6:33 PM
#
Avatar image of Alt Bass
H/PC Sensei

Posts:
1,169
Location:
Russia
Status:
And some /path switch also, CabInstaller works that way - it launches wceload with switches.
 Top of the page
1 2
Jump to forum:
Seconds to generate: 0.218 - Cached queries : 72 - Executed queries : 10