Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C# and PowerBuilder application

117 views
Skip to first unread message

Eugene

unread,
Jun 2, 2004, 4:52:40 PM6/2/04
to
I would like to find out if it's possible to pass arguments
from C# application into PowerBuilder application and open
window which will accept those arguments for datawindow
retrieve. If it's possible to do, maybe somebody has a small
example.

Terry Dykstra

unread,
Jun 2, 2004, 4:57:03 PM6/2/04
to
You can use the commandparm() to get a list of command line arguments passed
to the program.

--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com
product enhancement requests:
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement


<Eugene> wrote in message news:40be3e5a.65...@sybase.com...

Eugene

unread,
Jun 2, 2004, 5:24:05 PM6/2/04
to
Ok, but if PowerBuilder application is already running and I
just want to open window from external application and pass
parameters to PB window, what I supposed to do in this case.

Roy Kiesler [TeamSybase]

unread,
Jun 3, 2004, 11:49:27 AM6/3/04
to
What version of PowerBuilder?

With PB9 and PBNI, you can write a Managed C++ component that will
handle traffic between the two applications.

Earlier versions of PB can use standard windows messaging (e.g., use the
SendMessage Win32 API) for the C# application to invoke custom user
events in the PB app.

--
Roy

Eugene

unread,
Jun 3, 2004, 1:35:57 PM6/3/04
to
We are using PowerBuilder 9.
If you can give me any examples of C++ component, I will
appreciate it.

Roy Kiesler [TeamSybase]

unread,
Jun 3, 2004, 2:52:28 PM6/3/04
to
CodeXchange has a sample I wrote to call a .NET component (J# for that
matter) from PB via a Managed C++ wrapper.

In addition, there is also the Java2PB example, that shows you how to
load the PBVM from a C++ (JNI) client and invoke methods on a PB object.

Combined, these two should get you on the right path.

--
Roy

Eugene

unread,
Jun 4, 2004, 10:26:21 AM6/4/04
to
Roy,
I already have code to communicate from PB to C#, I just
need to find out how to do this from C# to PB. Example that
you mention Java2PB, I didn't find. Could you point me to it
location?
Thank you

Roy Kiesler [TeamSybase]

unread,
Jun 4, 2004, 10:49:14 AM6/4/04
to

Eugene

unread,
Jun 10, 2004, 2:21:21 PM6/10/04
to
Roy,
Could you tell me where I can get
mport com.sybase.powerbuilder.runtime.*;
What I need to install to have it

Roy Kiesler [TeamSybase]

unread,
Jun 10, 2004, 4:25:44 PM6/10/04
to
Look at the PBVMProxy.java file that's in the .ZIP file

Eugene

unread,
Jun 15, 2004, 10:39:17 AM6/15/04
to
Thank you
0 new messages