How to get "data" onto an emulated PPC

S

Sam Malone

I'm writing an app for a PPC which will use data transferred from a PC when
cradled. The program to put the data onto the PPC is written and works but
I'd like to develop and test the app (that will run on the PPC) using a PPC
emulator. Everything about that (using VS2003) is easy except getting the
data onto the emulated PPC. I (so far) haven't figured out how to let the
app on the emulator get at the same data that the real PPC will use. Am I
being particularly dense? Is this something that can be done or will I have
to test on the real PPC?

Thanks,
Bob
 
S

Sam Malone

Ah HAH!! I just figured it out.
I simply added the data files to my "Project" and when I run the app in
debug mode deployed to the emulator, it copies them there for me.

If there's a better, more intelligent way, please feel free to enlighten me.

TKS
 
C

Chris Tacke, eMVP

The emulator allows you to set up a folder (through the Setting menu) on the
host PC as a "shared" folder. It will show up as an installed storage card
on the emulator.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
D

Dick Grier

I agree with Ginny, that's what I do... You can map a drive and folder to
the emulator file system, and use that (which I have done, too).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 
S

Sam Malone

I'd like to try this method (the shared folder). I've looked at the emulator
Setting menu (at least I think I have) and see nothing there to so as you
suggest. I used the "Setting" menu on the emulated PPC itself (as if I we
holding a PocketPC in my hand). Is that what you mean?

Thanks,
Bob
 
G

Guest

Nope, it's part of the emulator engine.

- Launch Emulator
- From File menu choose Configure
- On the General tab, at the bottom is a filed called 'Shared Folder' fill
that in with a PC folder path

-Chris
 
S

Sam Malone

My apologies if I'm being particularly dense but I still can't find it.
We are talking about VS2003 are we?
If so, I guess I'm going to need very explicit instructions on how to get to
what it is you're referring to.

Thanks, again
 
G

Guest

Under the PPC 2003 emulator in Studio '03 follow these steps:

1. Share a folder on your PC
2. In File Explorer on the emulator select File -> Open
3. Enter \\MyComputerName and hit Enter
4. Enter your username/password for your PC
5. Save if you wish

You'll now see the shared PC folder(s)

-Chris
 
S

Sam Malone

MUCH better. Still not good but we're probably getting a lot closer.

I did as you instructed (below) and now I can (using File Explorer) "browse"
the content of that shared PC folder.
I have no idea how my program (running on the emulated PPC) would "see" that
data so I tried using the File Explorer to copy/paste it from the shared PC
folder to the folder on the PPC where the exectable of my app is.

That produced the following error:

Cannot copy XXXXXXX (where XXXXXXX is the name of the file without its PC
extension)
Executable and resource files in ROM cannot be copied.

The file I'm trying to copy is an XML file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top