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.

Needed help for PB 10.5 "SEND" function

2 posts in Help with NNTP newsgroups Last posting was on 2006-11-14 04:58:58.0Z
Kenth Posted on 2006-11-14 04:27:00.0Z
From: "Kenth" <kpcnetadd@gmail.com>
Newsgroups: news.help
Subject: Needed help for PB 10.5 "SEND" function
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 203.115.187.179
X-Original-NNTP-Posting-Host: 203.115.187.179
Message-ID: <455953a4@forums-1-dub>
Date: 13 Nov 2006 21:27:00 -0700
X-Trace: forums-1-dub 1163482020 203.115.187.179 (13 Nov 2006 21:27:00 -0700)
X-Original-Trace: 13 Nov 2006 21:27:00 -0700, 203.115.187.179
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub news.help:478
Article PK: 19525

Hi, Im developing an application on PB 10.5. I was using the function "Send"
to send a message to another application. From there, i could manipulate to
close the other application. While debugging, an event in the receiving
application will eventually trigger. But working on a build exe, does not
trgigger it.

This is my code:

////////////////////////////////////////////////////////
// Declared global external function
////////////////////////////////////////////////////////
Public FUNCTION long FindWindowA (long classname, string windowname)
LIBRARY "user32.dll" alias for "FindWindowA;Ansi"

////////////////////////////////////////////////////////////////
// from the first application's close function
////////////////////////////////////////////////////////////////
Long ll_val

//Check whether application is already running then close it
ll_val = FindWindowA(0,"Window 2")

IF ll_val > 0 THEN
// send message for shut down.
Send ( ll_val, 1024, 0, 0 )
End If

/////////////////////////////////////////////////////////////////////
// From the other application's customed event ue_terminate bound to event
pbm_custom01
//////////////////////////////////////////////////////////////////////
Close(This)



Please help me on this. I need it badly on my application.

You can reply to me at kpcnetadd@gmail.com
Thank you in advance.


Bruce Armstrong [TeamSybase] Posted on 2006-11-14 04:58:58.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAMbruce.armstrong@teamsybase.com>
Newsgroups: news.help
Subject: Re: Needed help for PB 10.5 "SEND" function
Organization: TeamSybase
Reply-To: NOCANSPAMbruce.armstrong@teamsybase.com
Message-ID: <qbmil29rb8jslicprbd9b0p7p605k354ct@4ax.com>
References: <455953a4@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
X-Original-NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
Date: 13 Nov 2006 21:58:58 -0700
X-Trace: forums-1-dub 1163483938 68.190.226.38 (13 Nov 2006 21:58:58 -0700)
X-Original-Trace: 13 Nov 2006 21:58:58 -0700, 68-190-226-38.static.lsan.ca.charter.com
Lines: 48
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub news.help:479
Article PK: 11382

You really want to post this in one of the sybase.public.powerbuilder
sections. This particular section is for help with the newsgroups in
general, not specific products.

On 13 Nov 2006 21:27:00 -0700, "Kenth" <kpcnetadd@gmail.com> wrote:

>Hi, Im developing an application on PB 10.5. I was using the function "Send"
>to send a message to another application. From there, i could manipulate to
>close the other application. While debugging, an event in the receiving
>application will eventually trigger. But working on a build exe, does not
>trgigger it.
>
>This is my code:
>
>////////////////////////////////////////////////////////
>// Declared global external function
>////////////////////////////////////////////////////////
>Public FUNCTION long FindWindowA (long classname, string windowname)
>LIBRARY "user32.dll" alias for "FindWindowA;Ansi"
>
>////////////////////////////////////////////////////////////////
>// from the first application's close function
>////////////////////////////////////////////////////////////////
>Long ll_val
>
>//Check whether application is already running then close it
>ll_val = FindWindowA(0,"Window 2")
>
>IF ll_val > 0 THEN
> // send message for shut down.
> Send ( ll_val, 1024, 0, 0 )
>End If
>
>/////////////////////////////////////////////////////////////////////
>// From the other application's customed event ue_terminate bound to event
>pbm_custom01
>//////////////////////////////////////////////////////////////////////
>Close(This)
>
>
>
>Please help me on this. I need it badly on my application.
>
>You can reply to me at kpcnetadd@gmail.com
>Thank you in advance.
>