Pocket PC FAQ Forums Forum Index Pocket PC FAQ Forums
The place to discuss Windows Mobile, Pocket PCs, Smartphones, Handheld PCs, Windows CE and More!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem in conversion from appforge 5.1 to 6.1

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Pocket PC FAQ Forums Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
shalabh
Pocketeer


Joined: 05 Jun 2006
Posts: 2
Location: india

PostPosted: Mon Jun 05, 2006 11:25 pm    Post subject: problem in conversion from appforge 5.1 to 6.1 Reply with quote

i have compiled a Pocket pc project from appforge 5.1 to appforge 6.1. its working currectly on my computer but not working when i deployed to pocket pc. Its not open the database that is in PDB file.
I am using Window mobile 5.0 and VB 6.0 as supportive to appforge 6.1.
I am giving u the code thats used in opening the database.
*******
Code:
*******
* to open all database*

Public Function OpenAllDatabases() As Boolean

On Error GoTo Trap

Call OpenDBFile(dbMember, "tblMember", "Unable to Open Member Database")
Call OpenDBFile(dbContact, "tblContact", "Unable to Open Contact Database")
OpenAllDatabases = True

Exit Function

Trap:
Err.Raise Err.Number, Err.Source, Err.Description
End Function

''************************************************************
Public Sub CloseAllDatabases()
Call CloseDBFile(dbMember)
Call CloseDBFile(dbContact)
End Sub
***********************************************************
Private Sub OpenDBFile(ByRef nHandle As Long, ByVal sFile As String, ByVal sMsg As String)
Dim sDatabaseName As String

On Error GoTo Trap

#If APPFORGE Then
sDatabaseName = sFile
nHandle = PDBOpen(Byfilename, "sDatabaseName", 0, 0, 0, 0, afModeReadWrite)
#Else
nHandle = PDBOpen(Byfilename, App.Path & "\tblMember", 0, 0, 0, 0, afModeReadWrite)
#End If

If nHandle <> 0 Then
'We successfully opened the database
sDatabaseName = True
Exit Sub
Else
'We failed to open the database
sDatabaseName = False
#If APPFORGE Then
MsgBox "Could not open database - sDatabaseName", vbExclamation
#Else
MsgBox "Could not open database - " + App.Path + "\PalmblankDatabase\" & sFile + vbCrLf + vbCrLf + "Potential causes are:" + vbCrLf + "1. Database file does not exist" + vbCrLf + "2. The database path in the PDBOpen call is incorrect", vbExclamation
#End If
End If

Trap:
On Error GoTo 0
Err.Raise Err.Number, Err.Source, Err.Description
End Sub
************************************************************

The error is occured in openDBfile. its not opening the file.
can u please tell me how can i come over this difficulty.

Thanks
Shalabh
_________________
Shalabh Gupta
Software Engineer
PSPL India
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
ChrisDeHerrera
Site Admin


Joined: 01 Feb 2000
Posts: 7017
Location: Los Angeles, CA, USA

PostPosted: Wed Jun 07, 2006 5:33 pm    Post subject: Reply with quote

Hi,
Please review the specs for Windows Mobile 5.0 development. VB 6.0 is not supported nor is the CDB database which you are trying to access.

VB.NET is the replacement for VB 6.0.
_________________
Chris De Herrera
Microsoft MVP - Mobile Devices & Tablet PC
http://www.pocketpcfaq.com- The most complete set of FAQs on Windows CE
http://www.tabletpctalk.com - Get the latest Tablet PC News
http://www.pocketpctalk.com - Get the latest Pocket PC News
http://www.mobilitytalk.com - Quickly view all the Pocket PC & Tablet PC News on one page
Back to top
View user's profile Send private message Visit poster's website
shalabh
Pocketeer


Joined: 05 Jun 2006
Posts: 2
Location: india

PostPosted: Wed Jun 07, 2006 8:01 pm    Post subject: problem in conversion from appforge 5.1 to 6.1 Reply with quote

Hi,
Actually i think u don't have enough knowledge of Appforge. Because i have done that conversion and it supports all the databases.
You need to update urself
_________________
Shalabh Gupta
Software Engineer
PSPL India
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
ReyFlores
Pocketeer


Joined: 01 May 2006
Posts: 5

PostPosted: Thu Jun 15, 2006 1:14 pm    Post subject: Re: problem in conversion from appforge 5.1 to 6.1 Reply with quote

[quote="shalabh"]You need to update urself[/quote]

There's no need to be catty on an open forum.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Pocket PC FAQ Forums Forum Index -> Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Copyright 2001-2010, Chris De Herrera, All Rights Reserved

Powered by phpBB © 2001, 2005 phpBB Group