Re: emulator for the Pocket PC
From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 01/07/05
- Next message: Daniel Moth: "Re: Awkward Exiting"
- Previous message: Sergey Bogdanov: "Re: Transparent picturebox?"
- In reply to: warbird: "Re: emulator for the Pocket PC"
- Next in thread: Paul G. Tobey [eMVP]: "Re: emulator for the Pocket PC"
- Messages sorted by: [ date ] [ thread ]
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. >> > >> > >> >
- Next message: Daniel Moth: "Re: Awkward Exiting"
- Previous message: Sergey Bogdanov: "Re: Transparent picturebox?"
- In reply to: warbird: "Re: emulator for the Pocket PC"
- Next in thread: Paul G. Tobey [eMVP]: "Re: emulator for the Pocket PC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|