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.

PostMessage/SendMessage from COM does not work

8 posts in Appeon (partner product) Last posting was on 2011-08-26 16:44:50.0Z
Hannah Posted on 2011-08-19 19:04:38.0Z
Sender: 50e6.4e491dfd.1804289383@sybase.com
From: Hannah
Newsgroups: sybase.public.appeon
Subject: PostMessage/SendMessage from COM does not work
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4e4eb3c6.90b.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Aug 2011 12:04:38 -0700
X-Trace: forums-1-dub 1313780678 10.22.241.41 (19 Aug 2011 12:04:38 -0700)
X-Original-Trace: 19 Aug 2011 12:04:38 -0700, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2763
Article PK: 21862

I have dll that I created in VB.net that works fine in C/S
but does not work in Appeon.
I have registered the dll and uploaded through Appeon
configuration window. Through Appeon I can call the
functions in dll fine. But sending message to PB app through
dll does not work.
PostMessage(hwnd:=hParent, wMsg:=pbm_custom05,
wParam:=lwParm, lParam:=llParm)
The event mapped to pbm_custom05 is triggered fine in C/S
app but not in Appeon.

My application is PB12 without EA Server.
I know multiple threads are not supported in Appeon but is
there other way I can make this work?


Steven Posted on 2011-08-22 07:08:20.0Z
Sender: 3cf8.4e48e512.1804289383@sybase.com
From: steven
Newsgroups: sybase.public.appeon
Subject: Re: PostMessage/SendMessage from COM does not work
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4e520064.5381.1681692777@sybase.com>
References: <4e4eb3c6.90b.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-=_forums-1-dub4e520064"
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Aug 2011 00:08:20 -0700
X-Trace: forums-1-dub 1313996900 10.22.241.41 (22 Aug 2011 00:08:20 -0700)
X-Original-Trace: 22 Aug 2011 00:08:20 -0700, 10.22.241.41
Lines: 777
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2766
Article PK: 21864

Hi Hannah,

The PBSample.zip of attached is PowerBuilder 9 sample code.
The PBComm.zip of attached is the dll source code, you can
open it by the Microsoft Visual C++ 6.0.
First of all please try to configure to deploy the dll file
from Appeon Developer Configuration.
1. Go to Additional Files tab page in Application Profile
Configuration Window
2. Configure to deploy the dll file from Deploy DLL/OCX
Files frame.
3. Deploy this application using the Appeon Developer.
Using this dll, your two application can communicate each
other.

Regards,
Steven


Hannah Posted on 2011-08-23 12:16:14.0Z
Sender: 63cc.4e524c2b.1804289383@sybase.com
From: Hannah
Newsgroups: sybase.public.appeon
Subject: Re: PostMessage/SendMessage from COM does not work
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4e539a0e.53db.1681692777@sybase.com>
References: <4e520064.5381.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 23 Aug 2011 05:16:14 -0700
X-Trace: forums-1-dub 1314101774 10.22.241.41 (23 Aug 2011 05:16:14 -0700)
X-Original-Trace: 23 Aug 2011 05:16:14 -0700, 10.22.241.41
Lines: 39
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2768
Article PK: 21865

As I said before registering dll is not the issue. I can
call functions in dll fine. The real problem is dll is not
calling the PB event that I mapped with pbm_custom05 in my
w_frame window.
I have put msgbox in the dll just before calling PostMessage
and I can see the message box from dll fine. But nothing
comes to PB window.
Regarding your example that's how we had before Appeon
migration. The only difference being timer was on separate
thread. Our application gets messages constantly and we
cannot keep main thread busy all the time through timer
event. Since Appeon does not support multiple threads
(SharedObjectRegister) we moved our code to dll and dll
should trigger callback event in PB but does not work. Can
you check with your engineering team if PostMessage should
post to which window? Does it go to IE frame?

> Hi Hannah,
>
> The PBSample.zip of attached is PowerBuilder 9 sample
> code. The PBComm.zip of attached is the dll source code,
> you can open it by the Microsoft Visual C++ 6.0.
> First of all please try to configure to deploy the dll
> file from Appeon Developer Configuration.
> 1. Go to Additional Files tab page in Application Profile
> Configuration Window
> 2. Configure to deploy the dll file from Deploy DLL/OCX
> Files frame.
> 3. Deploy this application using the Appeon Developer.
> Using this dll, your two application can communicate each
> other.
>
> Regards,
> Steven
>
>
>
> [Attachment: PBSample.zip]
> [Attachment: PBComm.zip]