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.

GetFolder

7 posts in Appeon (partner product) Last posting was on 2005-05-11 10:05:44.0Z
angelo_anolin@yahoo.com Posted on 2005-05-06 06:38:09.0Z
Sender: 6797.4279734e.1804289383@sybase.com
From: angelo (angelo_anolin@yahoo.com)
Newsgroups: sybase.public.appeon
Subject: GetFolder
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <427b10d1.330.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 May 2005 23:38:09 -0700
X-Trace: forums-1-dub 1115361489 10.22.241.41 (5 May 2005 23:38:09 -0700)
X-Original-Trace: 5 May 2005 23:38:09 -0700, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:823
Article PK: 20910

I am trying to do a workaround for the GetFolder function.

I declared a dll function SHBrowseForFolder and
GetPathFromIDList which are native to shell32.dll.

running the application in PB, i was able to get the
complete path for the selected folder in the dialog box.
But when i tried to deploy the application in Appeon, the
folder selection dialog box does not appear.

Please advise. Any other workaround for this unsupported
feature would be very much appreciated.

Thanks.


angelo_anolin@yahoo.com Posted on 2005-05-09 02:35:50.0Z
Sender: 7126.427ecc1a.1804289383@sybase.com
From: angelo (angelo_anolin@yahoo.com)
Newsgroups: sybase.public.appeon
Subject: Re: GetFolder
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <427ecc80.7129.1681692777@sybase.com>
References: <427b10d1.330.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 8 May 2005 19:35:44 -0700, 10.22.241.42
Lines: 17
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 May 2005 19:35:47 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 May 2005 19:35:50 -0700
X-Trace: forums-1-dub 1115606150 10.22.108.75 (8 May 2005 19:35:50 -0700)
X-Original-Trace: 8 May 2005 19:35:50 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:825
Article PK: 12705

so has anyone tried to do a workaround for the GetFolder
function to be implemented through appeon..?? thanks.

> I am trying to do a workaround for the GetFolder function.
>
> I declared a dll function SHBrowseForFolder and
> GetPathFromIDList which are native to shell32.dll.
>
> running the application in PB, i was able to get the
> complete path for the selected folder in the dialog box.
> But when i tried to deploy the application in Appeon, the
> folder selection dialog box does not appear.
>
> Please advise. Any other workaround for this unsupported
> feature would be very much appreciated.
>
> Thanks.


Julie Jiang Posted on 2005-05-09 10:06:13.0Z
From: "Julie Jiang" <julie.jiang@appeon.net>
Newsgroups: sybase.public.appeon
Organization: 218.18.114.119
References: <427b10d1.330.1681692777@sybase.com> <427ecc80.7129.1681692777@sybase.com>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: GetFolder
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: web110.discountasp.net
Message-ID: <427f3612@forums-2-dub>
X-Original-Trace: 9 May 2005 03:06:10 -0700, web110.discountasp.net
Lines: 34
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 9 May 2005 03:06:10 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 9 May 2005 03:06:13 -0700
X-Trace: forums-1-dub 1115633173 10.22.108.75 (9 May 2005 03:06:13 -0700)
X-Original-Trace: 9 May 2005 03:06:13 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:827
Article PK: 12708

The reason for the failure can be, the dll file used by the application is not
in "C:\WINNT\system32", so the Web application cannot find the DLL file. As
stated in the Appeon Help, "When your application calls an external function, it
must be able to find the DLL (Dynamic link library) or the shared library in
which that function resides. To ensure this, you must update the library path
environment variable on the client machine to include the directory where that
DLL or shared library is stored".

Please verify it and let me know whether it works.

Regards,
Julie


On 8 May 2005 19:35:50 -0700,
in sybase.public.appeon

angelo_anolin@yahoo.com <angelo> wrote:
>so has anyone tried to do a workaround for the GetFolder
>function to be implemented through appeon..?? thanks.
>
>> I am trying to do a workaround for the GetFolder function.
>>
>> I declared a dll function SHBrowseForFolder and
>> GetPathFromIDList which are native to shell32.dll.
>>
>> running the application in PB, i was able to get the
>> complete path for the selected folder in the dialog box.
>> But when i tried to deploy the application in Appeon, the
>> folder selection dialog box does not appear.
>>
>> Please advise. Any other workaround for this unsupported
>> feature would be very much appreciated.
>>
>> Thanks.


angelo_anolin@yahoo.com Posted on 2005-05-10 02:39:52.0Z
Sender: 4ad2.42801d79.1804289383@sybase.com
From: angelo (angelo_anolin@yahoo.com)
Newsgroups: sybase.public.appeon
Subject: Re: GetFolder
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42801ef8.4ae7.1681692777@sybase.com>
References: <427f3612@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 9 May 2005 19:39:52 -0700
X-Trace: forums-1-dub 1115692792 10.22.241.41 (9 May 2005 19:39:52 -0700)
X-Original-Trace: 9 May 2005 19:39:52 -0700, 10.22.241.41
Lines: 70
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:833
Article PK: 20916

Dear Julie,

thanks for the earnest reply.

this is how i basically coded for the GetFolder function
workaround.

1. Declared external functions and subroutines.
Function Long SHBrowseForFolder(str_browseinfo str_browse)
library "shell32.dll"
SubRoutine CoTaskMemFree(Long memory) library "ole32.dll"

2. Created a structure str_browseinfo which is used by the
SHBrowseForFolder() function. The structure consists of 8
variables having long as datatype.

3. In a clicked event of a command button (say
cb_getfolder), the following codes were written.

str_browseinfo lstr_bi
Long ll_idlist
String ls_path

ll_idlist = SHBrowseForFolder(lstr_bi)

ls_path = Space(260)
SHGetPathFromIdList(ll_idlist, ls_path)

CoTaskMemFree(ll_idlist)

Messagebox("ls_path", ls_path) // this messagebox is to
show the complete path in the app.

4. The above codes work well in PB but the deployed
application in the appeon does not show the browse for
folder dialog box.

As you have mentioned, the DLLs for this application which
is in windows\system32, i also copied it to 2 folders - one
the application folder and the other is in the
winnt\system32 folder. Still tried to deploy, the web page
runs but still does not show the folder selection dialog
box. I am using windows xp thus the system32 folder is in
windows folder, not in winnt, but nevertheless, i still took
the initiative to create a winnt\system32 folder and put
copies of the dll files there.

for your information.

Regards,

Angelo

> The reason for the failure can be, the dll file used by
> the application is not in "C:\WINNT\system32", so the Web
> application cannot find the DLL file. As stated in the
> Appeon Help, "When your application calls an external
> function, it must be able to find the DLL (Dynamic link
> library) or the shared library in which that function
> resides. To ensure this, you must update the library path
> environment variable on the client machine to include the
> directory where that DLL or shared library is stored".
>
> Please verify it and let me know whether it works.
>
> Regards,
> Julie


Julie Jiang Posted on 2005-05-10 11:05:34.0Z
From: "Julie Jiang" <julie.jiang@appeon.net>
Newsgroups: sybase.public.appeon
Organization: 218.18.114.119
References: <427f3612@forums-2-dub> <42801ef8.4ae7.1681692777@sybase.com>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: GetFolder
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: web110.discountasp.net
Message-ID: <42809578$1@forums-2-dub>
X-Original-Trace: 10 May 2005 04:05:28 -0700, web110.discountasp.net
Lines: 81
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 May 2005 04:05:31 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 May 2005 04:05:34 -0700
X-Trace: forums-1-dub 1115723134 10.22.108.75 (10 May 2005 04:05:34 -0700)
X-Original-Trace: 10 May 2005 04:05:34 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:839
Article PK: 12712

Hi Angelo,

OK now we are studying the code you provided. I will give you an update by
tomorrow.

Regards,
Julie

On 9 May 2005 19:39:52 -0700,
in sybase.public.appeon

angelo_anolin@yahoo.com <angelo> wrote:
>Dear Julie,
>
>thanks for the earnest reply.
>
>this is how i basically coded for the GetFolder function
>workaround.
>
>1. Declared external functions and subroutines.
> Function Long SHBrowseForFolder(str_browseinfo str_browse)
>library "shell32.dll"
> SubRoutine CoTaskMemFree(Long memory) library "ole32.dll"
>
>2. Created a structure str_browseinfo which is used by the
>SHBrowseForFolder() function. The structure consists of 8
>variables having long as datatype.
>
>3. In a clicked event of a command button (say
>cb_getfolder), the following codes were written.
>
> str_browseinfo lstr_bi
> Long ll_idlist
> String ls_path
>
> ll_idlist = SHBrowseForFolder(lstr_bi)
>
> ls_path = Space(260)
> SHGetPathFromIdList(ll_idlist, ls_path)
>
> CoTaskMemFree(ll_idlist)
>
> Messagebox("ls_path", ls_path) // this messagebox is to
>show the complete path in the app.
>
>4. The above codes work well in PB but the deployed
>application in the appeon does not show the browse for
>folder dialog box.
>
>As you have mentioned, the DLLs for this application which
>is in windows\system32, i also copied it to 2 folders - one
>the application folder and the other is in the
>winnt\system32 folder. Still tried to deploy, the web page
>runs but still does not show the folder selection dialog
>box. I am using windows xp thus the system32 folder is in
>windows folder, not in winnt, but nevertheless, i still took
>the initiative to create a winnt\system32 folder and put
>copies of the dll files there.
>
>for your information.
>
>Regards,
>
>Angelo
>
>
>
>
>> The reason for the failure can be, the dll file used by
>> the application is not in "C:\WINNT\system32", so the Web
>> application cannot find the DLL file. As stated in the
>> Appeon Help, "When your application calls an external
>> function, it must be able to find the DLL (Dynamic link
>> library) or the shared library in which that function
>> resides. To ensure this, you must update the library path
>> environment variable on the client machine to include the
>> directory where that DLL or shared library is stored".
>>
>> Please verify it and let me know whether it works.
>>
>> Regards,
>> Julie


angelo_anolin@yahoo.com Posted on 2005-05-11 01:34:24.0Z
Sender: 4f2e.42807d44.1804289383@sybase.com
From: angelo (angelo_anolin@yahoo.com)
Newsgroups: sybase.public.appeon
Subject: Re: GetFolder
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42816120.587b.1681692777@sybase.com>
References: <42809578$1@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 10 May 2005 18:34:24 -0700
X-Trace: forums-1-dub 1115775264 10.22.241.41 (10 May 2005 18:34:24 -0700)
X-Original-Trace: 10 May 2005 18:34:24 -0700, 10.22.241.41
Lines: 90
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:842
Article PK: 12713

Dear Julie,

thanks again. Would wait for your advice regarding this
matter.

by the way, may i ask your email address. thanks.

angeLo

> Hi Angelo,
>
> OK now we are studying the code you provided. I will give
> you an update by tomorrow.
>
> Regards,
> Julie
>
> On 9 May 2005 19:39:52 -0700,
> in sybase.public.appeon
> angelo_anolin@yahoo.com <angelo> wrote:
> >Dear Julie,
> >
> >thanks for the earnest reply.
> >
> >this is how i basically coded for the GetFolder function
> >workaround.
> >
> >1. Declared external functions and subroutines.
> > Function Long SHBrowseForFolder(str_browseinfo
> str_browse) >library "shell32.dll"
> > SubRoutine CoTaskMemFree(Long memory) library
> "ole32.dll" >
> >2. Created a structure str_browseinfo which is used by
> the >SHBrowseForFolder() function. The structure consists
> of 8 >variables having long as datatype.
> >
> >3. In a clicked event of a command button (say
> >cb_getfolder), the following codes were written.
> >
> > str_browseinfo lstr_bi
> > Long ll_idlist
> > String ls_path
> >
> > ll_idlist = SHBrowseForFolder(lstr_bi)
> >
> > ls_path = Space(260)
> > SHGetPathFromIdList(ll_idlist, ls_path)
> >
> > CoTaskMemFree(ll_idlist)
> >
> > Messagebox("ls_path", ls_path) // this messagebox
> is to >show the complete path in the app.
> >
> >4. The above codes work well in PB but the deployed
> >application in the appeon does not show the browse for
> >folder dialog box.
> >
> >As you have mentioned, the DLLs for this application
> which >is in windows\system32, i also copied it to 2
> folders - one >the application folder and the other is in
> the >winnt\system32 folder. Still tried to deploy, the
> web page >runs but still does not show the folder
> selection dialog >box. I am using windows xp thus the
> system32 folder is in >windows folder, not in winnt, but
> nevertheless, i still took >the initiative to create a
> winnt\system32 folder and put >copies of the dll files
> there. >
> >for your information.
> >
> >Regards,
> >
> >Angelo
> >
> >
> >
> >
> >> The reason for the failure can be, the dll file used by
> >> the application is not in "C:\WINNT\system32", so the
> Web >> application cannot find the DLL file. As stated in
> the >> Appeon Help, "When your application calls an
> external >> function, it must be able to find the DLL
> (Dynamic link >> library) or the shared library in which
> that function >> resides. To ensure this, you must update
> the library path >> environment variable on the client
> machine to include the >> directory where that DLL or
> shared library is stored". >>
> >> Please verify it and let me know whether it works.
> >>
> >> Regards,
> >> Julie


Julie Jiang Posted on 2005-05-11 10:05:44.0Z
From: "Julie Jiang" <julie.jiang@appeon.net>
Newsgroups: sybase.public.appeon
References: <427f3612@forums-2-dub> <42801ef8.4ae7.1681692777@sybase.com>
Subject: Re: GetFolder
Lines: 265
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C55653.93C961D0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: 210.21.221.178
Message-ID: <4281d8f3@forums-2-dub>
X-Original-Trace: 11 May 2005 03:05:39 -0700, 210.21.221.178
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 May 2005 03:05:41 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 May 2005 03:05:44 -0700
X-Trace: forums-1-dub 1115805944 10.22.108.75 (11 May 2005 03:05:44 -0700)
X-Original-Trace: 11 May 2005 03:05:44 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:844
Article PK: 12716

Hi Angelo,
 
The reason for the failure is that you are using structure arguments in the external function, and such argument data types are unsupported in Appeon yet.  You can refer to Appeon Help | Application Techniques | Program access techniques for details on what types of arguments are supported for external functions, and also on what other features are supported and unsupported for external functions.  I copied some information from the page for your convenience:
 
Data types of external function arguments (both reference and non-reference arguments) can be the following: Unsigned char, char, unsigned short, short, unsigned long, long, float, string, and Boolean
Data types of external function return values can be the following: Unsigned short, short, unsigned long, and long  
 
Please try to rewrite the external function so it does not use structure arguments. 
 
You should see my email address (julie.jiang@appeon.net) in this newsgroup.  Welcome to write to me emails on Appeon tech issues!
 
Regards,
Julie
 
 
"angelo" <angelo_anolin@yahoo.com> wrote in message news:42801ef8.4ae7.1681692777@sybase.com...
> Dear Julie,
>
> thanks for the earnest reply.
>
> this is how i basically coded for the GetFolder function
> workaround.
>
> 1. Declared external functions and subroutines.
> Function Long SHBrowseForFolder(str_browseinfo str_browse)
> library "shell32.dll"
> SubRoutine CoTaskMemFree(Long memory) library "ole32.dll"
>
> 2. Created a structure str_browseinfo which is used by the
> SHBrowseForFolder() function.  The structure consists of 8
> variables having long as datatype.
>
> 3. In a clicked event of a command button (say
> cb_getfolder), the following codes were written.
>
> str_browseinfo lstr_bi
> Long ll_idlist
> String ls_path
>
> ll_idlist = SHBrowseForFolder(lstr_bi)
>
> ls_path = Space(260)
> SHGetPathFromIdList(ll_idlist, ls_path)
>
> CoTaskMemFree(ll_idlist)
>
> Messagebox("ls_path", ls_path) // this messagebox is to
> show the complete path in the app.
>
> 4. The above codes work well in PB but the deployed
> application in the appeon does not show the browse for
> folder dialog box.
>
> As you have mentioned, the DLLs for this application which
> is in windows\system32, i also copied it to 2 folders - one
> the application folder and the other is in the
> winnt\system32 folder.  Still tried to deploy, the web page
> runs but still does not show the folder selection dialog
> box.  I am using windows xp thus the system32 folder is in
> windows folder, not in winnt, but nevertheless, i still took
> the initiative to create a winnt\system32 folder and put
> copies of the dll files there.
>
> for your information.
>
> Regards,
>
> Angelo
>
>
>
>
> > The reason for the failure can be, the dll file used by
> > the application is not in "C:\WINNT\system32", so the Web
> > application cannot find the DLL file.  As stated in the
> > Appeon Help, "When your application calls an external
> > function, it must be able to find the DLL (Dynamic link
> > library) or the shared library in which that function
> > resides.  To ensure this, you must update the library path
> > environment variable on the client machine to include the
> > directory where that DLL or shared library is stored".
> >
> > Please verify it and let me know whether it works.
> >
> > Regards,
> > Julie