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.

Pods on Visual Studio 2003

15 posts in General Discussion Last posting was on 2006-12-26 09:07:55.0Z
Robert Craill Posted on 2006-02-20 20:53:57.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Pods on Visual Studio 2003
Lines: 22
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: <43fa2c65@forums-1-dub>
Date: 20 Feb 2006 12:53:57 -0800
X-Trace: forums-1-dub 1140468837 196.207.45.254 (20 Feb 2006 12:53:57 -0800)
X-Original-Trace: 20 Feb 2006 12:53:57 -0800, 196.207.45.254
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:713
Article PK: 17770

Hi all,

I wrote a pod using embedded Visual C for the device and windows CE
environment.
I tried to convert the pod into VS 2003 for Win32 application but keep
getting errors
Any suggestions wouold be helpful and please use english terms as I am not a
C++ programmer but rather VFP
I get errors like

error LNK2019: unresolved external symbol "public: bool __thiscall
ULSqlcaBase::Initialize(void)"


ULSqlcaBase is found in the uliface.h file and I have included it into the
.cpp and the .h of my main program Sendfile
Regards
--
--------------------------------------------------------------------------------
Robert Craill


Robert Posted on 2006-02-20 21:59:56.0Z
Sender: 3f8b.43fa3b6a.1804289383@sybase.com
From: Robert
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: Re: Pods on Visual Studio 2003
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <43fa3bdc.3f90.1681692777@sybase.com>
References: <43fa2c65@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 20 Feb 2006 13:59:56 -0800
X-Trace: forums-1-dub 1140472796 10.22.241.41 (20 Feb 2006 13:59:56 -0800)
X-Original-Trace: 20 Feb 2006 13:59:56 -0800, 10.22.241.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:716
Article PK: 9026

Anyone ????

> Hi all,
>
> I wrote a pod using embedded Visual C for the device and
> windows CE environment.
> I tried to convert the pod into VS 2003 for Win32
> application but keep getting errors
> Any suggestions wouold be helpful and please use english
> terms as I am not a C++ programmer but rather VFP
> I get errors like
>
> error LNK2019: unresolved external symbol "public: bool
> __thiscall ULSqlcaBase::Initialize(void)"
>
>
> ULSqlcaBase is found in the uliface.h file and I have
> included it into the ..cpp and the .h of my main program
> Sendfile Regards
> --
> ----------------------------------------------------------
> ---------------------- Robert Craill
>
>


Greg Fenton Posted on 2006-02-20 22:42:03.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fa3bdc.3f90.1681692777@sybase.com>
In-Reply-To: <43fa3bdc.3f90.1681692777@sybase.com>
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: <43fa45bb$1@forums-1-dub>
Date: 20 Feb 2006 14:42:03 -0800
X-Trace: forums-1-dub 1140475323 10.25.98.144 (20 Feb 2006 14:42:03 -0800)
X-Original-Trace: 20 Feb 2006 14:42:03 -0800, gfenton-t30.sybase.com
Lines: 29
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:717
Article PK: 17771


Robert wrote:
> Anyone ????
>

If you need a quick reply, then you should contact iAnywhere/AvantGo
technical support:

http://www.ianywhere.com/support/contact/contact_support.html

These newsgroups work on a voluntary basis and as such are not official
forums. We recommend that posters expect a minimum of a 48 hour
response time before reposting [though some of us do attempt to answer
more frequently...to the dismay of our spouses :-) ]

The MBA client is compiled with MSVC 6.0 on win32. You need to build
your DLLs to be compatible with that. I understand that there are some
form of "compatibility" options in newer version of VS to make its
output work with older format softwares, but I do not have any of those
technical details. You might try on a MS forum, or compile with MSVC 6.

Hope this helps,
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-02-22 08:58:38.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 45
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
NNTP-Posting-Host: dsl-165-190-166.telkomadsl.co.za
X-Original-NNTP-Posting-Host: dsl-165-190-166.telkomadsl.co.za
Message-ID: <43fc27be@forums-1-dub>
Date: 22 Feb 2006 00:58:38 -0800
X-Trace: forums-1-dub 1140598718 165.165.190.166 (22 Feb 2006 00:58:38 -0800)
X-Original-Trace: 22 Feb 2006 00:58:38 -0800, dsl-165-190-166.telkomadsl.co.za
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:721
Article PK: 9032

Sorry I thought you and Enrico were online, since there were new postings at
that time.

I have managed to sort out the unresolved issue. It was the ulimp.lib file
that was not linking.

The dll now compiles and links but when I load it into Mbusiness client, the
dll does not show under "About"

Using debugger, the dll loads but with "No Symbols"

Any idea how to fix it

Regards

Robert

South Africa

"Robert Craill" <robert@cyberprop.com> wrote in message
news:43fa2c65@forums-1-dub...
> Hi all,
>
> I wrote a pod using embedded Visual C for the device and windows CE
> environment.
> I tried to convert the pod into VS 2003 for Win32 application but keep
> getting errors
> Any suggestions wouold be helpful and please use english terms as I am not
> a C++ programmer but rather VFP
> I get errors like
>
> error LNK2019: unresolved external symbol "public: bool __thiscall
> ULSqlcaBase::Initialize(void)"
>
>
> ULSqlcaBase is found in the uliface.h file and I have included it into the
> .cpp and the .h of my main program Sendfile
> Regards
> --
> --------------------------------------------------------------------------------
> Robert Craill
>
>


Robert Craill Posted on 2006-02-22 13:39:12.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 78
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-165-190-166.telkomadsl.co.za
Message-ID: <43fc5a28@forums-2-dub>
X-Original-Trace: 22 Feb 2006 04:33:44 -0800, dsl-165-190-166.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 22 Feb 2006 04:33:45 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 22 Feb 2006 05:39:12 -0800
X-Trace: forums-1-dub 1140615552 10.22.108.75 (22 Feb 2006 05:39:12 -0800)
X-Original-Trace: 22 Feb 2006 05:39:12 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:722
Article PK: 17772

Got it to compile.

http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/ulcpen9/00000042.htm

says

· ulrtcw9.dll A Unicode character set dynamic link library for
use with the UltraLite engine for multi-process access to an UltraLite
database. To use this library, link your application against the import
library, UltraLite\win32\386\ulimpcw.lib. Databases created using this
library require distribution of the UltraLite engine, as well as the DLL.

When linking against this library, be sure to specify the following
compilation options:

/DUNICODE /DUL_USE_DLL



BUT now the Mbusiness Client does not pick up the dll.

What else am I missing.

Thanks

Robert

"Robert Craill" <robert@cyberprop.com> wrote in message
news:43fc27be@forums-1-dub...
> Sorry I thought you and Enrico were online, since there were new postings
> at that time.
>
> I have managed to sort out the unresolved issue. It was the ulimp.lib file
> that was not linking.
>
> The dll now compiles and links but when I load it into Mbusiness client,
> the dll does not show under "About"
>
> Using debugger, the dll loads but with "No Symbols"
>
> Any idea how to fix it
>
> Regards
>
> Robert
>
> South Africa
>
> "Robert Craill" <robert@cyberprop.com> wrote in message
> news:43fa2c65@forums-1-dub...
>> Hi all,
>>
>> I wrote a pod using embedded Visual C for the device and windows CE
>> environment.
>> I tried to convert the pod into VS 2003 for Win32 application but keep
>> getting errors
>> Any suggestions wouold be helpful and please use english terms as I am
>> not a C++ programmer but rather VFP
>> I get errors like
>>
>> error LNK2019: unresolved external symbol "public: bool __thiscall
>> ULSqlcaBase::Initialize(void)"
>>
>>
>> ULSqlcaBase is found in the uliface.h file and I have included it into
>> the .cpp and the .h of my main program Sendfile
>> Regards
>> --
>> --------------------------------------------------------------------------------
>> Robert Craill
>>
>>
>
>


Greg Fenton Posted on 2006-02-22 16:08:21.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub>
In-Reply-To: <43fc5a28@forums-2-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: <43fc8c75$3@forums-1-dub>
Date: 22 Feb 2006 08:08:21 -0800
X-Trace: forums-1-dub 1140624501 10.25.98.144 (22 Feb 2006 08:08:21 -0800)
X-Original-Trace: 22 Feb 2006 08:08:21 -0800, gfenton-t30.sybase.com
Lines: 19
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:723
Article PK: 17773


Robert Craill wrote:
>
> ulrtcw9.dll A Unicode character set dynamic link library for

Are you trying to use UltraLite with MBA?
If so, *no compiling necessary*.

You simply use Javascript to interact with the ULPod API:

http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/ulagen9/ulagen9.htm

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-02-23 09:09:53.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 61
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-165-161-111.telkomadsl.co.za
Message-ID: <43fd6c87@forums-2-dub>
X-Original-Trace: 23 Feb 2006 00:04:23 -0800, dsl-165-161-111.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Feb 2006 00:04:26 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Feb 2006 01:09:53 -0800
X-Trace: forums-1-dub 1140685793 10.22.108.75 (23 Feb 2006 01:09:53 -0800)
X-Original-Trace: 23 Feb 2006 01:09:53 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:725
Article PK: 9033

Hi
Javascript does not do what I want it to do ie get a picture off the
device( pc) and send it up.
Mbusiness client does not support getfile()
That is why the pod was written.
To take a picture file and convert to binary, then save it to the ultralite
database and sync to main server database. From there, the picture is
extracted and converted to image for downloading back to the device's cache.
Javascript does not allow for this. If it did, I have just waste 3 months of
my time.The pod is a image pod.
Sybase SA and this newsgroup advised me that image upload is not possible
with javascript and MBusiness, that a pod was needed for this functionality.
Sybase SA helped start the pod by writting the first 3 functions ( connect,
getfile and disconnect). I added functions and compiled.
The pod works fine on HandHeld devices and on OS Windows CE, it was written
and compiled with Embedded Visual C++.
But I need the Win 32 client aswell. Embedded VC++ does not support win32
(XP)
So again, under advise I tried to compile using VS 2003. Understand I am a
FoxPro programmer trying to get Sybase products to work as I need them to
work.
After frustration, I finally get the damn thing to compile without errors.
Copy to my Mbusiness client and run Mbusiness.
Under debug (VS 2003) I see the dll load (with NO SYMBOLS) but under the
Tools->About my dll does not show up. All calls to this dll return "NULL
Object reference"

Sorry about the rant, I feel better now.
Any advise would be appriciated.
Pods are difficult to understand how it works. I cannot see a entry point or
a main function.( no Dllmain or DllmainCRTstartup).
The embedded c has the entry point as _DllMainCRTStartup but where is it.
And How does the Win32 VS 2003 find this.
I think that is why mbusiness does not find it, it has no entry point
defined.

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:43fc8c75$3@forums-1-dub...
> Robert Craill wrote:
>>
>> ulrtcw9.dll A Unicode character set dynamic link library for
>
> Are you trying to use UltraLite with MBA?
> If so, *no compiling necessary*.
>
> You simply use Javascript to interact with the ULPod API:
>
> http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/ulagen9/ulagen9.htm
>
> 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-02-23 15:56:44.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub>
In-Reply-To: <43fd6c87@forums-2-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: <43fddb3c$1@forums-1-dub>
Date: 23 Feb 2006 07:56:44 -0800
X-Trace: forums-1-dub 1140710204 10.25.98.144 (23 Feb 2006 07:56:44 -0800)
X-Original-Trace: 23 Feb 2006 07:56:44 -0800, gfenton-t30.sybase.com
Lines: 38
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:726
Article PK: 9035


Robert Craill wrote:
> To take a picture file and convert to binary, then save it to the ultralite
> database and sync to main server database. From there, the picture is
> extracted and converted to image for downloading back to the device's cache.

Ah, okay now we have context.


> But I need the Win 32 client aswell. Embedded VC++ does not support win32
> (XP)

Right. Well the simplest thing would be to try compiling under VC 6
instead of VS 2003. But I know I've seen people post somewhere about
getting VS 2003 to compile in "compatible" mode for VC 6 binaries (which
the mBA client is).

> Pods are difficult to understand how it works. I cannot see a entry point or
> a main function.( no Dllmain or DllmainCRTstartup).

PODS are different, not difficult. Any DLL in the "pods" directory is
opened by the mBA client and it calls the PODSPodNew() function. That
function must return a pointer to an object that implements the PODSPod
interface (all this is on page 56 of the mBA Developer Reference document.

If the DLL is not compiled as a library compatible with a VC6
executable, then when the mBA client goes to open the DLL there's a good
chance the OS will fail to load it properly, so mBA will skip that DLL
and move onto the next.

Hope this helps,
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-02-23 16:13:26.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub>
In-Reply-To: <43fddb3c$1@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: <43fddf26$1@forums-1-dub>
Date: 23 Feb 2006 08:13:26 -0800
X-Trace: forums-1-dub 1140711206 10.25.98.144 (23 Feb 2006 08:13:26 -0800)
X-Original-Trace: 23 Feb 2006 08:13:26 -0800, gfenton-t30.sybase.com
Lines: 24
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:727
Article PK: 17774


Greg Fenton wrote:
>
> Right. Well the simplest thing would be to try compiling under VC 6
> instead of VS 2003. But I know I've seen people post somewhere about
> getting VS 2003 to compile in "compatible" mode for VC 6 binaries (which
> the mBA client is).
>

I *knew* I had seen it somewhere. This may not be a 100% fix, but it
should be a pointer in the direction I'd be taking in your situation
(assuming you don't go to using VC6):

http://tinyurl.com/e4vlq [shortcut to Google Groups]

That's a link to a thread in the UltraLite newsgroup.

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-10 11:36:12.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 91
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-79-50.telkomadsl.co.za
Message-ID: <441154fb@forums-2-dub>
X-Original-Trace: 10 Mar 2006 02:29:15 -0800, dsl-146-79-50.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Mar 2006 02:29:17 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Mar 2006 03:36:12 -0800
X-Trace: forums-1-dub 1141990572 10.22.108.75 (10 Mar 2006 03:36:12 -0800)
X-Original-Trace: 10 Mar 2006 03:36:12 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:746
Article PK: 9046

Thanks Greg.
I got the pods to compile and work.
I was missing the entry points.
There is a c program called podsstartupwin.c that defines the entry points.
All working as expected except for garbage returned in my array
Perhaps you can advise how to stop funny charaters appearing in the returned
array


static PODSArray *SendFileObjectGetDir(PODSObject *podsObj)
{
SendFileObject *self = (SendFileObject *)podsObj;
HANDLE fileHandle;
WIN32_FIND_DATA FindFileData;
PODSArray *newArray;
PODSVariant *element;
element = (PODSVariant *) malloc(sizeof(PODSVariant));
element->vt = PODS_STRING;
TCHAR Buff1[BUFSIZE];
TCHAR Buff2[BUFSIZE];
TCHAR filename[BUFSIZE];
INT loop = 0;
LONG fileCount = 0;
LONG fileno = 0;
PODSString PicFilePath;
SHGetFolderPath(NULL,CSIDL_MYPICTURES,NULL,SHGFP_TYPE_CURRENT,Buff2);
int length = wcslen(Buff2)+1;
char *result = new char[length];
_strnset(result, 0x0, length);
wcstombs(result, Buff2, length-1);
PicFilePath = (PODSString)result;
wsprintf(Buff1, L"%s\\*.", Buff2);
fileHandle = FindFirstFile(Buff1,&FindFileData);
loop = (fileHandle != INVALID_HANDLE_VALUE);
while (loop)
{
fileCount++;
loop = FindNextFile(fileHandle, &FindFileData);
}
FindClose(fileHandle);
if (fileCount == 0)
{newArray = PODScreateStdArray(self->m_avantgo, 1);
element->vt = PODS_STRING;
element->u.strVal = PicFilePath;
|PODSsetElement(newArray, 0, element);
}else{
TCHAR * list;
INT listSize = 65535;
list = (TCHAR *)calloc(1, listSize);
wcstok(L"", L"");
fileHandle = FindFirstFile(Buff1,&FindFileData);
loop = (fileHandle != INVALID_HANDLE_VALUE);
while (loop)
{
wsprintf(filename, L"%s\\", Buff2);
wcsncat(list, filename, wcslen(filename));
wcsncat(list, FindFileData.cFileName, wcslen(FindFileData.cFileName));
wcsncat(list, L"\t", 1);
loop = FindNextFile(fileHandle, &FindFileData);
}
FindClose(fileHandle);
INT pos = 0;
PODSString MyFile;
wcstok(L"", L"");
newArray = PODScreateStdArray(self->m_avantgo, fileCount+1);
element->u.strVal = PicFilePath;
PODSsetElement(newArray, 0, element);
pos++;
TCHAR *file = wcstok(list, L"\t");
while (file != NULL)
{
element->vt = PODS_STRING;
MyFile = "";
int length = wcslen(file)+1;
char *result = new char[length];
_strnset(result, 0x0, length);
wcstombs(result, file, length-1);
MyFile = (PODSString)result;
element->u.strVal = MyFile;
PODSsetElement(newArray, pos, element);
file = wcstok(NULL, L"\t");
pos++;
}
wcstok(L"", L"");
free(list);
}
free(element);
return newArray;
}


Greg Fenton Posted on 2006-03-16 16:10:10.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub> <441154fb@forums-2-dub>
In-Reply-To: <441154fb@forums-2-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: <44198de2$1@forums-1-dub>
Date: 16 Mar 2006 08:10:10 -0800
X-Trace: forums-1-dub 1142525410 10.25.98.144 (16 Mar 2006 08:10:10 -0800)
X-Original-Trace: 16 Mar 2006 08:10:10 -0800, gfenton-t30.sybase.com
Lines: 17
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:753
Article PK: 9052


Robert Craill wrote:
> All working as expected except for garbage returned in my array
> Perhaps you can advise how to stop funny charaters appearing in the returned
> array

Can you define "garbage"?
Are you sure that garbage is coming back or is it the code you are using
to display/manipulate the data?

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-17 09:54:56.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub> <441154fb@forums-2-dub> <44198de2$1@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 82
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-69-214.telkomadsl.co.za
Message-ID: <441a7796@forums-2-dub>
X-Original-Trace: 17 Mar 2006 00:47:18 -0800, dsl-146-69-214.telkomadsl.co.za
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Mar 2006 00:47:19 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Mar 2006 01:54:56 -0800
X-Trace: forums-1-dub 1142589296 10.22.108.75 (17 Mar 2006 01:54:56 -0800)
X-Original-Trace: 17 Mar 2006 01:54:56 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:757
Article PK: 9056

The garbage looks like it is returned from the pod.
I have displayed the array items as they are returned and the extra
charaters appear there.

I have tried to release the array before writing to it but to no avail.
I think it is when I write to MyFile from the string created from the array
FindFirstFile and FindNextFile into a tab delimeted string.
Then get tokens from this string and write to PodsString MyFile and set
element of return array to this podsstring MyFile
I hate working with memory pointers as it you get the length wrong garbage
is returned

fileHandle = FindFirstFile(Buff1,&FindFileData);
loop = (fileHandle != INVALID_HANDLE_VALUE);
while (loop)
{
wsprintf(filename, L"%s\\", Buff2);
wcsncat(list, filename, wcslen(filename));
wcsncat(list, FindFileData.cFileName, wcslen(FindFileData.cFileName));
wcsncat(list, L"\t", 1);
loop = FindNextFile(fileHandle, &FindFileData);
}
FindClose(fileHandle);
INT pos = 0;
PODSString MyFile;
wcstok(L"", L"");
newArray = PODScreateStdArray(self->m_avantgo, fileCount+1);
element->u.strVal = PicFilePath;
PODSsetElement(newArray, 0, element);
pos++;
TCHAR *file = wcstok(list, L"\t");
while (file != NULL)
{
element->vt = PODS_STRING;

************************************************************** this bit here
I am unsure of

MyFile = "";
int length = wcslen(file)+1;
char *result = new char[length];
_strnset(result, 0x0, length);
************************************Initialize characters of a string to a
given format.
wcstombs(result, file, length-1);
************** Converts a sequence of wide characters to a corresponding
sequence of multibyte characters
MyFile = (PODSString)result;
element->u.strVal = MyFile;
**************************************************************
PODSsetElement(newArray, pos, element);
file = wcstok(NULL, L"\t");
pos++;
}
wcstok(L"", L"");
free(list);
}
free(element);
return newArray;

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:44198de2$1@forums-1-dub...
> Robert Craill wrote:
>> All working as expected except for garbage returned in my array
>> Perhaps you can advise how to stop funny charaters appearing in the
>> returned array
>
> Can you define "garbage"?
> Are you sure that garbage is coming back or is it the code you are using
> to display/manipulate the data?
>
> 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-23 15:50:44.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: Pods on Visual Studio 2003
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub> <441154fb@forums-2-dub> <44198de2$1@forums-1-dub> <441a7796@forums-2-dub>
In-Reply-To: <441a7796@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: cpe00096b10fe8a-cm000f212f9e50.cpe.net.cable.rogers.com
Message-ID: <4422b3d4$1@forums-2-dub>
X-Original-Trace: 23 Mar 2006 06:42:28 -0800, cpe00096b10fe8a-cm000f212f9e50.cpe.net.cable.rogers.com
Lines: 24
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Mar 2006 06:42:31 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Mar 2006 07:50:44 -0800
X-Trace: forums-1-dub 1143129044 10.22.108.75 (23 Mar 2006 07:50:44 -0800)
X-Original-Trace: 23 Mar 2006 07:50:44 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:759
Article PK: 9058


Robert Craill wrote:
> The garbage looks like it is returned from the pod.
> I have displayed the array items as they are returned and the extra
> charaters appear there.
>

I'm not seeing anyone following up. Unfortunately I don't have the time
currently to look into this further.

I recommend you start a new thread outlining the problem you are having
(complete details) to see if anyone else wants to jump in.

I'm going to guess that the problem has to do with char vs. wide-char,
but I don't have the time to experiment.

Sorry,
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 15:06:26.0Z
Reply-To: "Robert Craill" <robert@cyberprop.com>
From: "Robert Craill" <robert@cyberprop.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub> <441154fb@forums-2-dub> <44198de2$1@forums-1-dub> <441a7796@forums-2-dub> <4422b3d4$1@forums-2-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 30
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
NNTP-Posting-Host: dsl-146-114-101.telkomadsl.co.za
X-Original-NNTP-Posting-Host: dsl-146-114-101.telkomadsl.co.za
Message-ID: <4427ff72@forums-1-dub>
Date: 27 Mar 2006 07:06:26 -0800
X-Trace: forums-1-dub 1143471986 165.146.114.101 (27 Mar 2006 07:06:26 -0800)
X-Original-Trace: 27 Mar 2006 07:06:26 -0800, dsl-146-114-101.telkomadsl.co.za
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:760
Article PK: 17782

Thanks anyway.

"Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
news:4422b3d4$1@forums-2-dub...
> Robert Craill wrote:
>> The garbage looks like it is returned from the pod.
>> I have displayed the array items as they are returned and the extra
>> charaters appear there.
>>
>
> I'm not seeing anyone following up. Unfortunately I don't have the time
> currently to look into this further.
>
> I recommend you start a new thread outlining the problem you are having
> (complete details) to see if anyone else wants to jump in.
>
> I'm going to guess that the problem has to do with char vs. wide-char, but
> I don't have the time to experiment.
>
> Sorry,
> greg.fenton
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/


Shin Ling Lee Posted on 2006-12-26 09:07:55.0Z
Reply-To: "Shin Ling Lee" <shin.ling.lee@sybase.com>
From: "Shin Ling Lee" <shin.ling.lee@sybase.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <43fa2c65@forums-1-dub> <43fc27be@forums-1-dub> <43fc5a28@forums-2-dub> <43fc8c75$3@forums-1-dub> <43fd6c87@forums-2-dub> <43fddb3c$1@forums-1-dub> <43fddf26$1@forums-1-dub> <441154fb@forums-2-dub> <44198de2$1@forums-1-dub> <441a7796@forums-2-dub> <4422b3d4$1@forums-2-dub> <4427ff72@forums-1-dub>
Subject: Re: Pods on Visual Studio 2003
Lines: 51
Organization: Sybase Singapore
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: bb220-255-156-71.singnet.com.sg
X-Original-NNTP-Posting-Host: bb220-255-156-71.singnet.com.sg
Message-ID: <4590f47b$1@forums-1-dub>
Date: 26 Dec 2006 02:07:55 -0700
X-Trace: forums-1-dub 1167127675 220.255.156.71 (26 Dec 2006 02:07:55 -0700)
X-Original-Trace: 26 Dec 2006 02:07:55 -0700, bb220-255-156-71.singnet.com.sg
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:1018
Article PK: 17861

Hi Robert,

Would like to find out if you can share your knowledge on how to write a POD
that has its own logic, and at the same time accesses the Ultralite
database.

What I am puzzled is that do you refer to the ulpod9.dll POD for Ultralite
database that comes with M-Business Anywhere/Ultralite in the POD you wrote?
Or do you straight away use the native C to access the Ultralite database?

Please kindly advise.

Thanks,
SL

"Robert Craill" <robert@cyberprop.com> wrote in message
news:4427ff72@forums-1-dub...
> Thanks anyway.
>
> "Greg Fenton" <greg.fenton_NOSPAM_@ianywhere.com> wrote in message
> news:4422b3d4$1@forums-2-dub...
>> Robert Craill wrote:
>>> The garbage looks like it is returned from the pod.
>>> I have displayed the array items as they are returned and the extra
>>> charaters appear there.
>>>
>>
>> I'm not seeing anyone following up. Unfortunately I don't have the time
>> currently to look into this further.
>>
>> I recommend you start a new thread outlining the problem you are having
>> (complete details) to see if anyone else wants to jump in.
>>
>> I'm going to guess that the problem has to do with char vs. wide-char,
>> but I don't have the time to experiment.
>>
>> Sorry,
>> greg.fenton
>> --
>> Greg Fenton
>> Consultant, Solution Services, iAnywhere Solutions
>> --------
>> Visit the iAnywhere Solutions Developer Community
>> Whitepapers, TechDocs, Downloads
>> http://www.ianywhere.com/developer/
>
>