question about vb.net support in ce 6.0

question about vb.net support in ce 6.0

Post by ZGFuaWV » Wed, 06 Jun 2007 17:08:00


hi, everyone?
How can I use vb.net with ce 6.0 platform builder?
Is there anybody who can answer this?
 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Thu, 07 Jun 2007 00:24:30

Use it for what? You can't write drivers in managed code, so you can't do
that. You can't write the OAL in managed code, so you can't do that. You
*can* write applications in managed code, if your operating system supports
the .NET Compact Framework. It's not at all clear what the meaning of your
question is...

Paul T.

 
 
 

question about vb.net support in ce 6.0

Post by ZGFuaWV » Fri, 08 Jun 2007 09:21:01

I wish to know how to add vb.net subproject with pb 6.0.
If I create new subproject at pb 6.0, those are all (visual)c project.
 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Sat, 09 Jun 2007 00:44:17

The PB build system is definitely not very helpful with that. I don't have
my CE6 build machine nearby, but I seem to remember the ability to create
some form of a project in the OS build tree where you could set the type to
MANAGED or something of that sort. If I can get back to the machine, I'll
see what specifics I can find. Otherwise, you could just build the VB.NET
project and add a FILES entry to one of your PB BIB files to grab the
output...

Paul T.
 
 
 

question about vb.net support in ce 6.0

Post by Alessandro » Fri, 20 Jul 2007 00:37:41


Hi
i'm Alessandro

excuse me for my involontary new thread....

Have you clarify info, please?
Can you give me step-by-step procedure to menage subproject or step-by-step
procedure to add a files entry in vb.net project ?
What are PB BIB ?

Thank you very much for your help and excuse me for my bad english!

Regards
Alessandro



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> ha scritto nel messaggio
 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Fri, 20 Jul 2007 01:38:58

Don't worry about the English. It's better than my Italian.

As for VB.NET, I'd just build the VB.NET application as though I was going
to download it to the device (target the right SDK, etc.) Then, I'd add the
resulting EXE to the project.bib file, in the FILES section, as required by
managed code, and add any needed registry entries to project.reg.

BIB files, as documented in the help, tell the OS build process what
executable code and what files are to become part of the OS itself. The
format is also clearly documented in the help. The only hint is to put any
managed code EXEs in the FILES section.

Paul T.
 
 
 

question about vb.net support in ce 6.0

Post by QWxlc3Nhbm » Sat, 21 Jul 2007 20:08:00

i Paul

I created my SDK.msi (with BSP emulator for ARM microprocessors) into
OSDesign. I installed it, but if i open visual studio 2005 and click
File-->New Project, my device emulator dont appear. How can i do? I have
taken the right way? Can you help me again?

Thank you very much.
Ale

"Paul G. Tobey [eMVP]" wrote:

 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Sun, 22 Jul 2007 00:22:50

ait a minute. Originally, you seemed to be asking about how to add your
VB.NET program *to the operating system*. Now you're asking about
communicating with the emulator. What's the real question?

VS2005 should have several target types when you try to build a new Smart
Device project, correct? Any of them should work, if you're trying to build
a program which will then be included in the OS via a BIB file entry. Since
the Compact Framework isn't componentized as the operating system is, you
don't need to target a particular device type in the same way you do with a
native code program which might try to use a missing API.

Choose Windows CE 5.0 device or whatever is there in the list and build the
code. The only feature that you might be concerned about is targeting the
correct .NET CF version. The device, no doubt, has .NET CF 2.0 on it, but
it should be able to run .NET CF 1.0 programs just fine. However, you might
want to use features of 2.0 and so you'd have to be sure that your project
targets the right version.

Paul T.

"Alessandro - Bugs Generetor"
< XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...


 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Sun, 22 Jul 2007 02:47:33

ust to be sure what shows up, I built an OS and a SDK and tried creating a
managed code application. You're correct that the SDK name does not appear
as a target OS when you create a new project. As I indicated before, use
Windows CE 5.0 or one of the Windows Mobile targets, whichever will give you
the best match for your device.

You can target the emulator from your managed code project directly by
specifying the device emulator for your target build. It should show up in
the list where CE Emulator, CE Device, etc. appear. It might be something
like MyProjectSDK Emulator in the list. If you do that, when you hit Run to
run the managed code, an instance of the emulator will be launched with your
emulation (from the SDK), OS in it. The application will then be downloaded
and executed.

You can also target the emulator being run from VS2005/Platform Builder (if
you want to debug some low-level OS thing that causes problems for your
application, maybe). To do that, use a Platform Builder instance of VS2005
to launch the emulator OS (Target | Connect). Once that's up and running,
you can use a second instance of VS2005, with the managed code program
loaded, to deploy the program and debug it by selecting CE Emulator as the
target device. This will connect the managed code instance of VS2005 to the
currently-running emulator launched by Platform Builder. I would suppose
that you could do this all from a single instance of PB, too, if you
inserted the managed code project as a subproject in the OS solution, but I
didn't try that.

Paul T.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news: XXXX@XXXXX.COM ...


 
 
 

question about vb.net support in ce 6.0

Post by QWxlc3Nhbm » Tue, 07 Aug 2007 19:38:01

ear Paul,

in the previous post you ask me "what's the real question?"... i explain my
situation:
I never design operating system
I never programmed embedded os and application (i dont know previous version
of windows ce embedded and i never develop application for compact framework)
I dont know C++, C#.
I'm a developper of windows application and i use VB.NET 2005.
Now i need programme an EDB9315A Cirrus board for industrial device. This
board mount one ep9315 ARM microprocessor. I have intalled the Cirrus BSP and
i want use visual basic.

Now i want program this board without simulator and without SDK (if is not
indispensable).

I make some test and i have some questions:

Is possible not recompile one module every time after osdesign modification ?
For example, when i build the solution, the compiler employs much time to
compile dotnetv2 module. Is possible skip this module (i think is compact
framework really?).

You say i can use a bib file for including my application. Suppose i have
develop an application called myApp.exe in VB for generic CE device. In the
os design there are some bib files:
i must write in the myOSdesign/c:/wince600/ep93xx/parameter
files/platform.bib file or in the myOSdesign/parameter files/Cirrus
EP93xx:ARMV4I/project.bib file ? (or into other file.bib ?).

I must write in the Modules section or in the Files section?
An little example?

I'm a newbie and is very difficult for me.
All help you can give me will be very appreciate!

Thank you very much

Ale


"Paul G. Tobey [eMVP]" wrote:

 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Wed, 08 Aug 2007 01:17:13

K, in that case, you must consult with the device OEM and make sure that
they support managed code development for their device with VB.NET 2005. If
they do (which is *not* certain), then you do *NOT* need the BSP and, in
fact, you don't *want* the BSP. You have absolutely no use for it
whatsoever for application development. Uninstall it now.

The SDK will be required. You can't do without it. Now that you've
completely gotten out of trying to build an OS for the device, which is
*not* what you want to do (you said yourself that you want to build an
application), you can start working on what you *do* want to do.

Use the New | Project item in VS2005 and select Visual Basic | Smart Device
| Windows CE 5.0 or Pocket PC 2003 as the project type. Select the right
project template that you want to use (Device Application, I would guess).
Now, write your code. You can deploy the resulting application to the
device by following the instructions given to you by the device vendor for
using VS2005 to build managed code applications for the device.

Paul T.

"Alessandro - Bugs Generetor"
< XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...


 
 
 

question about vb.net support in ce 6.0

Post by QWxlc3Nhbm » Wed, 08 Aug 2007 03:34:01

i Paul,

we have not been understood.
I am the OSDesigner and i am the application developper too.

Cirrus dont give help for software, in fact, Cirrus do not give support !!!
:-(

The board was ship with an exaple of osdesign with subproject write in C#,
then the board support menaged code.

*I need write an application in vb therefore i must buid an OSdesign or use
an sdk (is right?)*

then i repeat my questions:

Is possible not recompile one module every time after osdesign
modification ?
For example, when i build the solution, the compiler employs much time to
compile dotnetv2 module. Is possible skip this module (i think is compact
framework really?).

You say i can use a bib file for including my application. Suppose i have
develop an application called myApp.exe in VB for generic CE device. In the
os design there are some bib files:
i must write in the myOSdesign/c:/wince600/ep93xx/parameter
files/platform.bib file or in the myOSdesign/parameter files/Cirrus
EP93xx:ARMV4I/project.bib file ? (or into other file.bib ?).

I must write in the Modules section or in the Files section?
An little example?

for debug i can:
1st: create a solution with 2 project (one os design an one vb project for
CE device)
2nd: build the os design project e download the image to device
3rd: distribute the vb project to device ?

Thak you for your patience and support.

Ale


"Paul G. Tobey [eMVP]" wrote:

 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Wed, 08 Aug 2007 04:01:48

hen, returning to my point of six or so messages ago, do not try to
incorporate the building of the VB program into the building of the OS
design. Create a new application project to do the VB application.

Yes, you will need an OS design, but it sounds to me like you're mixing
together the building of some random VB program with the building of the OS.
DON'T DO THAT. Forget about VB while you go and get your OS to build and
work on the device. Once you have the working OS, move to the application
development and build a separate project in VB that does the application
stuff that you want to do.

FORGET ABOUT BIB FILES. Get your OS to work and completely, totally forget
about VB. Does the OS now run on your device?

Paul T.

"Alessandro - Bugs Generetor"
< XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...


 
 
 

question about vb.net support in ce 6.0

Post by QWxlc3Nhbm » Wed, 08 Aug 2007 07:30:01

k Paul

I build an os that now run on my device.

I create a new project (separately) in vb for smartDevice-->Windows CE 5

Is it right? How must I now proceed?

Thanks again!

Ale



"Paul G. Tobey [eMVP]" wrote:

 
 
 

question about vb.net support in ce 6.0

Post by Paul G. To » Wed, 08 Aug 2007 07:39:03

es, that's fine. Proceed by writing the program. You can test it/debug it
from VS2005 while the device is connected via ActiveSync or over the
network. Once you have it working reliably, you can choose to include the
EXE in your OS itself, if you like, by editing one of the BIB files, as
described about four replies ago (and as covered in the help). Or, if you
don't want to build the application into the OS, you can store it on a flash
disk, a USB key, a hard disk, whatever might be connected to the device as a
storage medium.

Paul T.

"Alessandro - Bugs Generetor"
< XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...