Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Win 32 Client

9 posts in General Discussion Last posting was on 2006-04-04 17:14:31.0Z
Robert Craill Posted on 2006-03-27 15:17:51.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Win 32 Client
Lines: 70
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Original-NNTP-Posting-Host: dsl-146-114-101.telkomadsl.co.za
Message-ID: <4427f208@forums-2-dub>
X-Original-Trace: 27 Mar 2006 06:09:12 -0800, dsl-146-114-101.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Mar 2006 06:09:12 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Mar 2006 07:17:51 -0800
X-Trace: forums-1-dub 1143472671 10.22.108.75 (27 Mar 2006 07:17:51 -0800)
X-Original-Trace: 27 Mar 2006 07:17:51 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:761
Article PK: 17783

HI all,

I have written a pod to convert jpg to binary and upload to the database.
On hand held device all works fine.
I get a list of directories in "My Pictures", user can select which
directory then choose which image to upload to the database for syncing to
live web server.

On Win 32 client, the pod displays the directory and image list but when a
connection to the database is required, the pod bombs out. Debug info says
ulrtcw9.dll
On further investigation, if I manually start dbuleng9.exe, then try connect
all works as expected but if the engine is not started it bombs.
Now to my questions,
What is needed on the win32 client for my connection to work automatically
( without manual start of dbuleng9.exe)
I have read that the engine must be started manually or a "startline"
in the connection parameters needs to point to the dbuleng9.exe.
tried but failed ( any help or ideas)
Second why does the pod work on the device( Win ce) but not on the win32
client.I don't need to load any additional dlls or exe's on the device for
it to work but I do on the Win32 client

Now the info
Mbusiness 5.7 build 32
database pod v2.0.50
Javascript pod v4.0
Ultralite pod 9.0.2.3249

ASA 9.0.2.2451

Herewith some code as to connect
TCHAR *ConnParams = new TCHAR[1024];
wsprintf(ConnParams,
L"UID=DBA;PWD=SQL;DBF=%S\\ul_cyberagent.udb;schema_file=%S\\ul_cyberagent.usm",
picdir,picdir);
sqlcaInit();
initDatabaseManager(&self->dm);
*** fails here
if (self->dm == UL_NULL)
{
sqlcaFinalize();
MessageBox( NULL, L"Could not connect to the database manager", L"ERROR",
MB_OK | MB_ICONERROR );
delete [] ConnParams;
return false;
}

--
--------------------------------------------------------------------------------
Robert Craill
Web Development
USP Designs (Pty) Ltd

E: robert@cyberprop.com
T: +27 11 955 9100
F: +27 11 955 9110
W: www.cyberprop.com
W: www.cyberagent.co.za
W: www.cyberbonds.co.za

USP Designs (Pty) Ltd is Proudly South African!

This message and any attachments are confidential and intended solely for
the addressee. Any unauthorized use, alteration or dissemination is
prohibited. USP Designs (Pty) Ltd. accepts no liability whatsoever for any
loss, whether it be direct, indirect or consequential, arising from
information made available and actions resulting there from.


Greg Fenton Posted on 2006-03-27 18:30:33.0Z
From: Greg Fenton <greg.fenton_NOSPAM_@ianywhere.com>
Organization: iAnywhere Solutions Inc.
User-Agent: Mozilla Thunderbird 1.6.3.2f (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Win 32 Client
References: <4427f208@forums-2-dub>
In-Reply-To: <4427f208@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: gfenton-t30.sybase.com
Message-ID: <44281f30$1@forums-2-dub>
X-Original-Trace: 27 Mar 2006 09:21:52 -0800, gfenton-t30.sybase.com
Lines: 30
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Mar 2006 09:21:54 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 27 Mar 2006 10:30:33 -0800
X-Trace: forums-1-dub 1143484233 10.22.108.75 (27 Mar 2006 10:30:33 -0800)
X-Original-Trace: 27 Mar 2006 10:30:33 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:762
Article PK: 9059


Robert Craill wrote:
> What is needed on the win32 client for my connection to work automatically
> ( without manual start of dbuleng9.exe)
> I have read that the engine must be started manually or a "startline"
> in the connection parameters needs to point to the dbuleng9.exe.

Yes, you must add ";START=\path\to\ASA\dbuleng9.exe" to your ConnParams
variable.

> tried but failed ( any help or ideas)

Can you show us what you tried?
What is the value of SQLCode after a failed connection attempt?

> Second why does the pod work on the device( Win ce) but not on the win32
> client.I don't need to load any additional dlls or exe's on the device for
> it to work but I do on the Win32 client

The path to dbuleng9.exe will be different on Win32 than on CE. Other
than that, I cannot think of a reason why. Can you show use the CE code
that works and the win32 code that doesn't?

greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Robert Craill Posted on 2006-03-27 20:15:45.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub>
Subject: Re: Win 32 Client
Lines: 89
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 196.207.45.254
X-Original-NNTP-Posting-Host: 196.207.45.254
Message-ID: <442847f1@forums-1-dub>
Date: 27 Mar 2006 12:15:45 -0800
X-Trace: forums-1-dub 1143490545 196.207.45.254 (27 Mar 2006 12:15:45 -0800)
X-Original-Trace: 27 Mar 2006 12:15:45 -0800, 196.207.45.254
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:763
Article PK: 9060

Hi Again,

Herewith code for the Win 32 Client ( VS 6.0)

static PODSBoolean SendFileObjectConnect(PODSObject *podsObj , PODSString
picdir)
{
SendFileObject *self = (SendFileObject *)podsObj;
TCHAR *ConnParams = new TCHAR[1024];
wsprintf(ConnParams,
L"UID=***;PWD=***;DBF=%S\\ul_cyberagent.udb;schema_file=%S\\ul_cyberagent.usm",
picdir,picdir); sqlcaInit();
initDatabaseManager(&self->dm);



And here is code for CE ( Embedded C++ 3.0)

static PODSBoolean SendFileObjectConnect(PODSObject *podsObj , PODSString
picdir)

{

SendFileObject *self = (SendFileObject *)podsObj;

TCHAR *ConnParams = new TCHAR[1024];

wsprintf(ConnParams,L"UID=***;PWD=***;DBF=%S\\ul_cyberagent.udb;schema_file=%S\\ul_cyberagent.usm",
picdir,picdir);

sqlcaInit();

initDatabaseManager(&self->dm);





As you can see they are the same.



How does the CE communicate with the ultralite data base. Does it also use
dbuleng9.exe.? if yes,then how is this dbuleng9.exe loaded. I have not
installed ASA SQL Anywhere on the device.

And why does it not recognise dbuleng.9exe on Win32 client.I have also just
installed Mbusiness 5.7 and nothing else.

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:44281f30$1@forums-2-dub...
> Robert Craill wrote:
>> What is needed on the win32 client for my connection to work
>> automatically ( without manual start of dbuleng9.exe)
>> I have read that the engine must be started manually or a "startline"
>> in the connection parameters needs to point to the dbuleng9.exe.
>
> Yes, you must add ";START=\path\to\ASA\dbuleng9.exe" to your ConnParams
> variable.
>
>> tried but failed ( any help or ideas)
>
> Can you show us what you tried?
> What is the value of SQLCode after a failed connection attempt?
>
>> Second why does the pod work on the device( Win ce) but not on the win32
>> client.I don't need to load any additional dlls or exe's on the device
>> for it to work but I do on the Win32 client
>
> The path to dbuleng9.exe will be different on Win32 than on CE. Other
> than that, I cannot think of a reason why. Can you show use the CE code
> that works and the win32 code that doesn't?
>
> greg.fenton
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/


Greg Fenton Posted on 2006-03-27 21:28:41.0Z
From: Greg Fenton <greg.fenton_NOSPAM_@ianywhere.com>
Organization: iAnywhere Solutions Inc.
User-Agent: Mozilla Thunderbird 1.6.3.2f (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Win 32 Client
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub>
In-Reply-To: <442847f1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: gfenton-t30.sybase.com
X-Original-NNTP-Posting-Host: gfenton-t30.sybase.com
Message-ID: <44285909$1@forums-1-dub>
Date: 27 Mar 2006 13:28:41 -0800
X-Trace: forums-1-dub 1143494921 10.25.98.144 (27 Mar 2006 13:28:41 -0800)
X-Original-Trace: 27 Mar 2006 13:28:41 -0800, gfenton-t30.sybase.com
Lines: 26
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:764
Article PK: 17784


Robert Craill wrote:
> wsprintf(ConnParams,
> L"UID=***;PWD=***;DBF=%S\\ul_cyberagent.udb;schema_file=%S\\ul_cyberagent.usm",
> picdir,picdir); sqlcaInit();
>

Does picdir contain a space ?
You might try using ...;DBF='%S\\ul_cyberagent.udb';... (notice the
single quotes around the filename).

Without specifying a START parameter, your code will simply be using the
UL dll (ulrt9.dll) to open the file directly. This means that no other
connection can be made to the database concurrently (well, this is a bit
of a lie...but let's leave of multithreaded connections for this talk...)

BTW: what does the code of initDatabaseManager() look like? What error
code are you getting back after a failed connection attempt?

greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Robert Craill Posted on 2006-03-28 08:19:40.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub> <44285909$1@forums-1-dub>
Subject: Re: Win 32 Client
Lines: 58
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Original-NNTP-Posting-Host: dsl-146-114-101.telkomadsl.co.za
Message-ID: <4428e183@forums-2-dub>
X-Original-Trace: 27 Mar 2006 23:10:59 -0800, dsl-146-114-101.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 27 Mar 2006 23:11:00 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Mar 2006 00:19:40 -0800
X-Trace: forums-1-dub 1143533980 10.22.108.75 (28 Mar 2006 00:19:40 -0800)
X-Original-Trace: 28 Mar 2006 00:19:40 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:765
Article PK: 9061

No, no spaces in the directory. There may well be a time when there is a
space so I will add the single Quotes.This still does not answer my question
about why I need to load SQL Anywhere on Win32 client and not on WinCE
client..
When I add the start line to my connection parameter, the connection failes.
What I thought to do was to launch dbuleng9.exe everytime I make a
connection but I don't know how to run an external exe from C++.
I would then use dbulstop.exe when I disconnect.
That would mean having to distribute the exes and the dlls of SQL Anywhere
to the client.
Still confused.
Here is code for initdatabasemanager
void initDatabaseManager( DatabaseManager **dm )
{
*dm = ULInitDatabaseManager( Sqlca );
//MessageBox( NULL, L"Init datbase manager.", L"Info", MB_OK );
return;
}


UL dll (ulrt9.dll)??????
the win32 client uses ulrtcw9.dll. If this is not loaded on client's Windows
System32 directory, my pod failes to load with an error "dll not found"


Cheers
Robert

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:44285909$1@forums-1-dub...
> Robert Craill wrote:
>> wsprintf(ConnParams,
>> L"UID=***;PWD=***;DBF=%S\\ul_cyberagent.udb;schema_file=%S\\ul_cyberagent.usm",
>> picdir,picdir); sqlcaInit();
>>
>
> Does picdir contain a space ?
> You might try using ...;DBF='%S\\ul_cyberagent.udb';... (notice the
> single quotes around the filename).
>
> Without specifying a START parameter, your code will simply be using the
> UL dll (ulrt9.dll) to open the file directly. This means that no other
> connection can be made to the database concurrently (well, this is a bit
> of a lie...but let's leave of multithreaded connections for this talk...)
>
> BTW: what does the code of initDatabaseManager() look like? What error
> code are you getting back after a failed connection attempt?
>
> greg.fenton
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/


Greg Fenton Posted on 2006-03-28 16:56:07.0Z
From: Greg Fenton <greg.fenton_NOSPAM_@ianywhere.com>
Organization: iAnywhere Solutions Inc.
User-Agent: Mozilla Thunderbird 1.6.3.2f (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Win 32 Client
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub> <44285909$1@forums-1-dub> <4428e183@forums-2-dub>
In-Reply-To: <4428e183@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: gfenton-t30.sybase.com
Message-ID: <44295a8a@forums-2-dub>
X-Original-Trace: 28 Mar 2006 07:47:22 -0800, gfenton-t30.sybase.com
Lines: 79
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Mar 2006 07:47:23 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Mar 2006 08:56:07 -0800
X-Trace: forums-1-dub 1143564967 10.22.108.75 (28 Mar 2006 08:56:07 -0800)
X-Original-Trace: 28 Mar 2006 08:56:07 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:766
Article PK: 9062


Robert Craill wrote:
> This still does not answer my question
> about why I need to load SQL Anywhere on Win32 client and not on WinCE
> client..

That I cannot completely answer. But if you have installed the ULPod
CAB file to CE, then the UL libraries will have been installed for your
device whereas there is no such CAB for win32 (thus you need to install
the UL files yourself, for which there are a few options).

> When I add the start line to my connection parameter, the connection failes.

What is the error code after a failed attempt?

> What I thought to do was to launch dbuleng9.exe everytime I make a
> connection but I don't know how to run an external exe from C++.

This is what the START parameter will do for you automatically. When UL
cannot find a running engine to connect to, it uses the START line to
automatically launch the server and then attempts to connect to that.

> I would then use dbulstop.exe when I disconnect.

May not be necessary. You could use "AUTOSTOP=YES" in which case the
server will shut down after the last connection to the database is
closed (if the server was started automatically via a START).

However, if you just plan on starting, manipulating, stopping...then why
bother using dbuleng at all? Why not simply use UL directly (ulrt9.dll
instead of ulrtc9.dll and dbuleng9.exe)?

> That would mean having to distribute the exes and the dlls of SQL Anywhere
> to the client.

No matter what, you need to distribute the DLLs. You can set up the
DLLs as part of a channel to have them automatically downloaded to the
MBA client.

> Here is code for initdatabasemanager
> void initDatabaseManager( DatabaseManager **dm )
> {
> *dm = ULInitDatabaseManager( Sqlca );
> //MessageBox( NULL, L"Init datbase manager.", L"Info", MB_OK );
> return;
> }

I'm confused. How do you know that the failure is with the above code?
Can you show us the sqlcaInit() function too?

Did you get this code from a sample somewhere, or is this you building
the code from the ground up?

Have you considered writing a stand-alone UL application first, and then
POD-ifying it once you have the functionality down that you are after?
Writing and debugging a POD with UL functionality in it is a much more
difficult task as there are many more layers involved.

> UL dll (ulrt9.dll)??????
> the win32 client uses ulrtcw9.dll. If this is not loaded on client's Windows
> System32 directory, my pod failes to load with an error "dll not found"
>

In the SQLAnywhere 9.x online docs, see:

UltraLite C/C++ User's Guide
Developing Applications Using the UltraLite C++ Component
- Compiling and linking your application

for a description of each of the DLLs and LIBs. Which you choose
depends on what it is you are trying to do exactly.


--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Jan Posted on 2006-03-31 12:27:30.0Z
From: "Jan" <jan@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub> <44285909$1@forums-1-dub> <4428e183@forums-2-dub> <44295a8a@forums-2-dub>
Subject: Re: Win 32 Client
Lines: 98
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: c1-80-15.rrba.isadsl.co.za
Message-ID: <442d1006@forums-2-dub>
X-Original-Trace: 31 Mar 2006 03:18:30 -0800, c1-80-15.rrba.isadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2006 03:18:31 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2006 04:27:30 -0800
X-Trace: forums-1-dub 1143808050 10.22.108.75 (31 Mar 2006 04:27:30 -0800)
X-Original-Trace: 31 Mar 2006 04:27:30 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:769
Article PK: 17786

Hi Gregg,

U said : "That I cannot completely answer. But if you have installed the
ULPod
CAB file to CE, then the UL libraries will have been installed for your
device whereas there is no such CAB for win32 (thus you need to install
the UL files yourself, for which there are a few options)."

What options are there? How does one go about installing DLL's to the
Windows\System folder when downloading channel content on the Win32
(M-Business) client.

Thanks!
Jan

> Robert Craill wrote:
>> This still does not answer my question about why I need to load SQL
>> Anywhere on Win32 client and not on WinCE client..
>
> That I cannot completely answer. But if you have installed the ULPod CAB
> file to CE, then the UL libraries will have been installed for your device
> whereas there is no such CAB for win32 (thus you need to install the UL
> files yourself, for which there are a few options).
>
>> When I add the start line to my connection parameter, the connection
>> failes.
>
> What is the error code after a failed attempt?
>
>> What I thought to do was to launch dbuleng9.exe everytime I make a
>> connection but I don't know how to run an external exe from C++.
>
> This is what the START parameter will do for you automatically. When UL
> cannot find a running engine to connect to, it uses the START line to
> automatically launch the server and then attempts to connect to that.
>
>> I would then use dbulstop.exe when I disconnect.
>
> May not be necessary. You could use "AUTOSTOP=YES" in which case the
> server will shut down after the last connection to the database is closed
> (if the server was started automatically via a START).
>
> However, if you just plan on starting, manipulating, stopping...then why
> bother using dbuleng at all? Why not simply use UL directly (ulrt9.dll
> instead of ulrtc9.dll and dbuleng9.exe)?
>
>> That would mean having to distribute the exes and the dlls of SQL
>> Anywhere to the client.
>
> No matter what, you need to distribute the DLLs. You can set up the DLLs
> as part of a channel to have them automatically downloaded to the MBA
> client.
>
>> Here is code for initdatabasemanager
>> void initDatabaseManager( DatabaseManager **dm )
>> {
>> *dm = ULInitDatabaseManager( Sqlca );
>> //MessageBox( NULL, L"Init datbase manager.", L"Info", MB_OK );
>> return;
>> }
>
> I'm confused. How do you know that the failure is with the above code?
> Can you show us the sqlcaInit() function too?
>
> Did you get this code from a sample somewhere, or is this you building the
> code from the ground up?
>
> Have you considered writing a stand-alone UL application first, and then
> POD-ifying it once you have the functionality down that you are after?
> Writing and debugging a POD with UL functionality in it is a much more
> difficult task as there are many more layers involved.
>
>> UL dll (ulrt9.dll)??????
>> the win32 client uses ulrtcw9.dll. If this is not loaded on client's
>> Windows System32 directory, my pod failes to load with an error "dll not
>> found"
>>
>
> In the SQLAnywhere 9.x online docs, see:
>
> UltraLite C/C++ User's Guide
> Developing Applications Using the UltraLite C++ Component
> - Compiling and linking your application
>
> for a description of each of the DLLs and LIBs. Which you choose depends
> on what it is you are trying to do exactly.
>
>
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/


Greg Fenton Posted on 2006-03-31 16:00:31.0Z
From: Greg Fenton <greg.fenton_NOSPAM_@ianywhere.com>
Organization: iAnywhere Solutions Inc.
User-Agent: Mozilla Thunderbird 1.6.3.2f (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Win 32 Client
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub> <44285909$1@forums-1-dub> <4428e183@forums-2-dub> <44295a8a@forums-2-dub> <442d1006@forums-2-dub>
In-Reply-To: <442d1006@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: gfenton-t30.sybase.com
Message-ID: <442d41ee$1@forums-2-dub>
X-Original-Trace: 31 Mar 2006 06:51:26 -0800, gfenton-t30.sybase.com
Lines: 22
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2006 06:51:29 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2006 08:00:31 -0800
X-Trace: forums-1-dub 1143820831 10.22.108.75 (31 Mar 2006 08:00:31 -0800)
X-Original-Trace: 31 Mar 2006 08:00:31 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:770
Article PK: 9063


Jan wrote:
>
> What options are there? How does one go about installing DLL's to the
> Windows\System folder when downloading channel content on the Win32
> (M-Business) client.
>

They don't need to be in the Windows\System folder. They need to be
somewhere in the PATH of the process trying to use them. I believe that
for MBA that the PODS directory is in there.

You can add the DLLs to a channel to be downloaded, in which case they
will be downloaded to the PODS directory.

greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Robert Craill Posted on 2006-04-04 17:14:31.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <4427f208@forums-2-dub> <44281f30$1@forums-2-dub> <442847f1@forums-1-dub> <44285909$1@forums-1-dub> <4428e183@forums-2-dub> <44295a8a@forums-2-dub> <442d1006@forums-2-dub> <442d41ee$1@forums-2-dub>
Subject: Re: Win 32 Client
Lines: 36
Organization: USP Designs
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: dsl-165-173-18.telkomadsl.co.za
Message-ID: <44328b20@forums-2-dub>
X-Original-Trace: 4 Apr 2006 08:05:04 -0800, dsl-165-173-18.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 Apr 2006 08:05:05 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 Apr 2006 09:14:31 -0800
X-Trace: forums-1-dub 1144167271 10.22.108.75 (4 Apr 2006 09:14:31 -0800)
X-Original-Trace: 4 Apr 2006 09:14:31 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:771
Article PK: 17787

Hi All,
Tried downloading the ulrtw9.dll into the pods directory but my pod fails to
load "Dll not found"
Copy the ulrtw.dll to system32 directory and all works fine.

My problem was I was using the ulrtcw9.dll which relies on the dbuleng9.exe
to run
Changed to ulrtw9.dll and recompiled. Works

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:442d41ee$1@forums-2-dub...
> Jan wrote:
>>
>> What options are there? How does one go about installing DLL's to the
>> Windows\System folder when downloading channel content on the Win32
>> (M-Business) client.
>>
>
> They don't need to be in the Windows\System folder. They need to be
> somewhere in the PATH of the process trying to use them. I believe that
> for MBA that the PODS directory is in there.
>
> You can add the DLLs to a channel to be downloaded, in which case they
> will be downloaded to the PODS directory.
>
> greg.fenton
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/