|
Home > Archive > SQL Anywhere ultralite > December 2005 > Ultralite problems on CF 2.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Ultralite problems on CF 2.0
|
|
|
| Hi,
I try to deploy a project from VS2005 to a PPC2003 device.
The project references ( among others ) iAnywhere.Data.Ultralite and
iAnywhere.Data.Ultralite.resource
I have linked the ulnet9.dll from the UltraLite.NET\ce\arm directory.
I have the following code in the connect function.
m_Conn = new ULConnection(parms.ToString());
private ULConnection m_Conn;
public void Connect()
{
ULConnectionParms parms = new ULConnectionParms();
parms.DatabaseOnCE = "\\MMC Card\\dbfile.udb";
parms.SchemaOnCE = "\\Program Files\\App\\dbfile.usm";
try
{
m_Conn = new ULConnection(parms.ToString());
m_Conn.OpenWithCreate();
}
catch (ULException ex)
{
MessageBox.Show(ex.Message + " : " + ex.InnerException.ToString());
Application.Exit();
}
}
Now when connect function is called I get an exception on
m_Conn = new ULConnection(parms.ToString());
Message : ULExeception was unhandled.
SQLE_COULD_NOT_LOAD_
LIBRARY.
The thing is I don't know which library, cause it doesn't say.
What is going on here ?
Kind regards,
Mark
| |
|
| There is a type in the example.
The first occurence of 'm_Conn = new ULConnection(parms.ToString());'
should not be there.
So the first line of code is;
private ULConnection m_Conn;
"Mark" <mark@speedxs.nl> schreef in bericht
news:tUhjf.4$JM2.1@calista.speedxs.net...
> Hi,
>
> I try to deploy a project from VS2005 to a PPC2003 device.
>
> The project references ( among others ) iAnywhere.Data.Ultralite and
> iAnywhere.Data.Ultralite.resource
> I have linked the ulnet9.dll from the UltraLite.NET\ce\arm directory.
>
> I have the following code in the connect function.
>
> m_Conn = new ULConnection(parms.ToString());
> private ULConnection m_Conn;
>
> public void Connect()
> {
> ULConnectionParms parms = new ULConnectionParms();
> parms.DatabaseOnCE = "\\MMC Card\\dbfile.udb";
> parms.SchemaOnCE = "\\Program Files\\App\\dbfile.usm";
>
>
> try
> {
> m_Conn = new ULConnection(parms.ToString());
> m_Conn.OpenWithCreate();
> }
> catch (ULException ex)
> {
> MessageBox.Show(ex.Message + " : " + ex.InnerException.ToString());
> Application.Exit();
> }
> }
>
> Now when connect function is called I get an exception on
> m_Conn = new ULConnection(parms.ToString());
>
> Message : ULExeception was unhandled.
> SQLE_COULD_NOT_LOAD_
LIBRARY.
>
> The thing is I don't know which library, cause it doesn't say.
>
> What is going on here ?
> Kind regards,
>
> Mark
>
>
| |
|
|
|
| Please, can anyone confirm these problems ?
Is there a solution available
"Mark" <mark@speedxs.nl> schreef in bericht
news:tUhjf.4$JM2.1@calista.speedxs.net...
> Hi,
>
> I try to deploy a project from VS2005 to a PPC2003 device.
>
> The project references ( among others ) iAnywhere.Data.Ultralite and
> iAnywhere.Data.Ultralite.resource
> I have linked the ulnet9.dll from the UltraLite.NET\ce\arm directory.
>
> I have the following code in the connect function.
>
> m_Conn = new ULConnection(parms.ToString());
> private ULConnection m_Conn;
>
> public void Connect()
> {
> ULConnectionParms parms = new ULConnectionParms();
> parms.DatabaseOnCE = "\\MMC Card\\dbfile.udb";
> parms.SchemaOnCE = "\\Program Files\\App\\dbfile.usm";
>
>
> try
> {
> m_Conn = new ULConnection(parms.ToString());
> m_Conn.OpenWithCreate();
> }
> catch (ULException ex)
> {
> MessageBox.Show(ex.Message + " : " + ex.InnerException.ToString());
> Application.Exit();
> }
> }
>
> Now when connect function is called I get an exception on
> m_Conn = new ULConnection(parms.ToString());
>
> Message : ULExeception was unhandled.
> SQLE_COULD_NOT_LOAD_
LIBRARY.
>
> The thing is I don't know which library, cause it doesn't say.
>
> What is going on here ?
> Kind regards,
>
> Mark
>
>
|
|
|
|
|