Re: emulator for the Pocket PC

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 01/07/05


Date: Fri, 7 Jan 2005 20:22:08 -0000

1. How do you know the directory is not created, have you checked with
explorer?

2. So you are creating a directory. You then check to see if there is a file
in this *newly* created directory. Do you ever expect that to be true?

Cheers
Daniel

--
http://www.danielmoth.com/Blog/
"warbird" <warbird@discussions.microsoft.com> wrote in message
news:E0B5E5C7-5C97-4C31-B8B0-731191F5934F@microsoft.com...
>    Private mstrDir As String = "\Application\Project\Database\"
>    Private mstrDB As String = Me.mstrDir & "Project.sdf"
>
> "warbird" wrote:
>
>> The folder is not present so the create command is triggered, however the
>> folder is not being created so the files can not be uploaded.  Again this
>> only fails on the emulator, the code works find on the device.
>>
>> "Paul G. Tobey [eMVP]" wrote:
>>
>> > Which code paths is it taking?  Use the debugger...
>> >
>> > Paul T.
>> >
>> > "Warbird" <Warbird@discussions.microsoft.com> wrote in message
>> > news:27E4595F-C842-48BC-B90C-87601B896F87@microsoft.com...
>> > > Ok, here is my issue, I have an app. that works find on the Pocket PC
>> > > but,
>> > > fails to create the files and folders on the emulator.  Here is the
>> > > code
>> > > that
>> > > fails.
>> > >
>> > > If Not Directory.Exists(Me.mstrDir) Then
>> > >                Directory.CreateDirectory(Me.mstrDir)
>> > >            End If
>> > >            '
>> > >            ' if the database exists...
>> > >            '
>> > >            If File.Exists(Me.mstrDB) Then
>> > >                '
>> > >                ' connect...
>> > >                '
>> > >                If Me.mConn.State = ConnectionState.Closed Then
>> > > Me.mConn.Open()
>> > >            Else
>> > >                '
>> > >                ' look for the .CSV files to import...
>> > >                '
>> > >                Dim bFound As Boolean = File.Exists(Me.mstrDir &
>> > > "File1.csv")
>> > >                bFound = bFound AndAlso File.Exists(Me.mstrDir &
>> > > "File2.csv")
>> > >                bFound = bFound AndAlso File.Exists(Me.mstrDir &
>> > > "File3.csv")
>> > >                bFound = bFound AndAlso File.Exists(Me.mstrDir &
>> > > "File4.csv")
>> > >                bFound = bFound AndAlso File.Exists(Me.mstrDir &
>> > > "File5.csv")
>> > >
>> > > Any ideals on how to correct this to work?
>> > > I am using VB.Net.
>> >
>> >
>> >


Relevant Pages

  • Re: emulator for the Pocket PC
    ... "warbird" wrote: ... > folder is not being created so the files can not be uploaded. ... > only fails on the emulator, the code works find on the device. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: emulator for the Pocket PC
    ... The folder is not present so the create command is triggered, ... only fails on the emulator, the code works find on the device. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: SQL CE
    ... from emulator, use the File Explorer in the emulator to map to a ... shared folder on your desktop and copy and paste the sdf file to ... >> if you create a sql ce database programmatically using ... >> you cannot create a SQL CE database directly on your desktop ...
    (microsoft.public.sqlserver.ce)
  • Re: Transfer from Emu48 to PC to modify code in IDE.
    ... Everything will then be restored when copied into the emulator. ... Bruce Horrocks ... It is way too big to fit in a real 48GXs memory twice. ... the home folder were each placed in individual text files, ...
    (comp.sys.hp48)
  • Re: copy file to debugger
    ... yes, I know I can share a folder, but how can I get to these files in this ... Alternatively if you are using evc4 and the PPC2003 emulator you ... >> the emulator and executes it, but my application needs the configuration ... >> since I can't browse the emulator, no file browser or anything to copy ...
    (microsoft.public.pocketpc.developer)