Help using AEWsetunsol() with PowerBuilder 7 on Nt4

I am trying to use AEWsetunsol() with Powerbuilder 7 on WinNT 4 (sp6a) or Win2000.
Can anyone help with regards to what we have to do in PB to get this to work?
Please be explicit.
Thanks in advance.
..Lyall

Got it working but had to write a tpinit() wrapper in a DLL in order to get it
to work.
The wrapper function allocated the TPINIT buffer and populated the structure with
appropriate usernames/passwords (none in my case) but we set the 'flags' field
to 1 (notify by signal). [Powerbuilder does not handle structures terribly well
I am led to understand]
If we did not do this, the AEWsetunsol() did not work.
The code window open is as follows :-
// pb_SetLoginInfo() is custom written DLL function - simply
// allocates the TPINIT buffer and populates it.
// fields in same order as TPINIT buffer
If (pb_SetLoginInfo("", "", "", "", 1, 0, "") < 0) Then //flag set to 1 - TPU_SIG
indicating unsolicited notification selected by signals
     messagebox("Error", "Fail pb_SetLoginInfo()")
     return
End If     
// pb_tpinit() is custom written DLL function - simply calls tpinit() with the
structure populated by pb_SetLoginInfo()
IF ( pb_tpinit() < 0) Then //call tp_init from user defined external dll
     messagebox("Error", "Fail tpinit()")
     tpterm()
     return
End If
We wanted to be notified by PBM_CUSTOM68 (Powerbuilder custom event 68)
Then, we called the AEWsetunsol as follows :-
//start subscribing to event
il_windowHandle = Handle(THIS)
//set event to trigger when receive unsolicited message
IF (AEWsetunsol(il_windowHandle, (1023+68)) < 0) Then //the (1023+68) indicates
the event id for pbm_custom68
     messagebox("Error", "Fail AEWsetunsol()")
     tpterm()
     return
End If
We then setup a custom pb event to receive these events, subscribed to an event
and off we went.
Now, if we could only convince the Tuxedo 8 WS DLL to work with Powerbuilder (rather
than crashing on APP exit)
Hope this helps someone.
..Lyall

Similar Messages

  • Need help using LR with a 2nd Computer/Laptop

    I just installed LR on to my laptop last night. I currently have all my photos saved to my desktop in e:\photos. I belived the sidecars are in that same folder, and the other stuff is in the default c:\docandsettings (or whatever it is).
    The laptop is on a wireless network and my desktop's e: drive is accessible.
    So last night I wanted to try lightroom on the laptop with the files I have on my desktop. Am I correct in that what I need to do is import files from current location so that I'll only have one version of the photos? If I make changes on the laptop, will the sidecar be changed so I'll see the change when I use the desktop? Or is there a different/better way to do this?
    The other thing I want to do is be able to teather my camera (Canon 30D) to the laptop and shoot that way. I was able to do it using Canon's DPP and EOS Utilities software where the photo is writen directly to the hard drive. But when I plug my camera in, Lightroom opens as well. Is there a way to shoot directly into Lightroom? Or shoot to the card so LR opens the file from the camera without having to do a separate import?

    Yes it will delete everything.
    I'm a little confused at what you are asking at the end.
    Does this help at all...
    Using iPod With Multiple Computers
    Or do you want to move everything to the new computer?
    Use Your iPod To Move Songs To A New Computer
    How to copy music between authorized computers
    btabz

  • Help using -replace with wildcard characters, specifically braces

    Hello all,
    Needing help in using -replace with literal wildcard characters, specifically the braces characters. From reading old posts online this seems to have been a notorious shortcoming of PowerShell, but not sure if it's been resolved or not. My simple
    code tries to remove the braces as follows (would like to keep the foreach loop and everything as is if possible):
    $string = "test[]"
    $braces = @("``[","``]")
    Foreach($brace in $braces){
    If($string -like "*$brace*"){
    $string = $string -replace ($brace,"")
    write-host $string
    This code gives an error at the -replace line, saying "The regular expression pattern `] is not valid." I'm not sure how to pass the literal brace characters to the -replace parameter? Can this be done?

    -like is a wildcard operator (it recognized wildcard patterns like * ,? and [a-z].
    For a regular expression you use the -match operator.  
    Wildcard patterns and regular expressions are not interchangeable.
    See:
    get-help about_wildcards
    get-help about_regular_expressions
    for an explanation and examples of each one, and 
    get-help about_comparison_operators
    for examples of using -like and -match.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • HELP :  using UPPER with LIKE in CMP finder??

    Hi,
    am trying to do a case insensitive wildcard search but am having little luck, if I run the sql query
    select * from my_view where UPPER(name) like '%SMI%'; then I get the right results back but when i try to use it in my CMP bean I get nothing unless the case matches.
    my xml entry is as below:
    <finder-method partial="False" query="SELECT * FROM MY_VIEW WHERE UPPER(name) LIKE ?1">
    <method>
    <ejb-name>View</ejb-name>
    <method-name>findByName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>
    can anyone help please ?? can I not use UPPER in one of these queries ??
    Regards
    Rosie

    Rosie,
    I was able to get this example to work and it is nearly identical to yours. I passed "C%" into the bean and received all the records where the USR_MSG_CTGR_ID field started with "C". Is the problem a data issue? (Does the connection used by the bean use the same database and user ID that you used when you executed the query manually? If not, are they looking at the same table?)
    Good luck!
    <finder-method partial="False" query="select * from my_usr_msg where upper(usr_msg_ctgr_id) like ?1">
    <method>
    <ejb-name>My_usr_msg</ejb-name>
    <method-name>findByUpperValue</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>

  • Help using countifs with pop-up menus please

    made a spreadsheet and am using pop-up menus as the cell format to list several shifts when making a schedule for my job, so far so good.
    now i would like to total across the rows for each type of shift in 3 categories so for instance, i would like to create a formula that will tally the number of times i selected either the drop down for 9a-6p or 10a-7pm...i can get it to count one occurance by using =COUNTIF(B5:H5, "=9A-6P")...so i was trying something like =COUNTIFS(B5:H5,"=9A-6P",B5:H5,"=10A-7P") to get it to total the number of times i chose both of those text entires for the drop down, but that seems to be missing something...any help would be appreciated....

    Hi Steph,
    What you're missing is this (From the iWork Formulas and Functions User Guide):
    COUNTIFS(test-values, condition, test-values..., condition...)
    test-values:   A collection containing values to be tested. test-values is a collection containing any type of value.
    condition:   An expression that results in a logical TRUE or FALSE. condition is an expression that can contain anything as long as the result from comparing condition to a value in test-values can be expressed as a Boolean value of TRUE or FALSE.
    test-values...:  Optionally include one or more additional collections containing values to be tested. Each test-values collection must be followed immediately with a condition expression. This pattern of test-values, condition can be repeated as many times as needed.
    condition...:  If an optional collection of test-values is included, an expression that results in a logical TRUE or FALSE. There must be one condition following each test-values collection; therefore, this function will always have an odd number of arguments.
    Usage Notes
    Each value in test-values is compared to the corresponding condition. If the
    corresponding values in each collection meet the corresponding conditional tests,
    the count is increased by 1.
    The test-values, condition pairs may be thought of as a series of tests connected by AND(s)—the whole set is TRUE only if ALL parts are TRUE.
    Your formula should be returning a zero count and you are testing the same set of values for two exclusive conditions—any pop-up set to "9A - 6P" cannot be also set to "10A - 7P"—at least one of the conditions will be false in every case.
    For the results you want, you'll need a formula that counts each value/condition set separately, and adds the results:
    =COUNTIF(B5:H5,"=9A-6P")+COUNTIF(B5:H5,"=10A-7P")
    OR
    =SUM(COUNTIF(B5:H5,"=9A-6P"),COUNTIF(B5:H5,"=10A-7P")
    Regards,
    Barry

  • Help: Using templates with Library items

    Hey there dreamweaver users
    Just a quick question it might sound dumb but im new to the dreamweaver world and would be greatful if you could answer this question i have.
    I have made a template for my site and i wish to update all the child pages with a library item i have inserted into the main template,
    ive put it into the main template as a footer navigation links and then left dreamweaver to update all my other child pages with this library item.
    the thing is it never works am i doing something wrong ? really could do with some help.
    Thank you :]

    I only have one Template and this is it
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Caribe Travel Services</title>
    <!-- TemplateEndEditable -->
    <link href="../caribe_styles.css" rel="stylesheet" type="text/css" />
    <link href="../print.css" rel="stylesheet" type="text/css" media="print" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <div id="container">
      <div id="header"><a href="../starter.html"><img src="../assets/images/logo.jpg" alt="Caribe Travel Services" name="logo" width="213" height="144" id="logo" /></a></div>
      <div id="sidebar">
        <ul class="nav">
          <li><a href="../packages/air.htm">Air Packages</a></li>
          <li><a href="../packages/cruises.htm">Cruises</a></li>
          <li><a href="../packages/inclusive.htm">All Inclusive</a></li>
          <li><a href="../packages/resorts.htm">Resorts</a></li>
          <li><a href="../packages/index.htm">Contact Us</a></li>
        </ul>
        <div class="sideContent"><!-- TemplateBeginEditable name="sideContent" -->
          <h3>Heading 3 here</h3>
          <p>side content here</p>
        <!-- TemplateEndEditable --></div>
      </div>
      <div id="mainContent"><!-- TemplateBeginEditable name="mainContent" -->
        <h1>Heading 1 Here</h1>
        <p>main content here</p>
        <h2>Heading 2 </h2>
      <!-- TemplateEndEditable --></div>
      <div id="footer"><!-- TemplateBeginEditable name="navLinks" --><!-- #BeginLibraryItem "/Library/altNav.lbi" -->
        <ul>
          <li><a href="../index.htm">Home</a></li>
          <li><a href="../packages/index.htm">Packages</a></li>
          <li><a href="../specials/index.htm"> Specials</a></li>
          <li><a href="../galleries/index.htm">Galleries</a></li>
          <li><a href="../testimonials/index.htm">Maps</a></li>
          <li><a href="../testimonials/index.htm">Testimonials</a></li>
          <li><a href="../newsletter/index.htm">Newsletter</a></li>
          <li><a href="../contact.htm">Contact</a></li>
        </ul>
      <!-- #EndLibraryItem --><!-- TemplateEndEditable --></div>
      <!-- end .footer -->
      <!-- end .container -->
    </div>
    </body>
    </html>

  • Help using FlexUnit with Nant

    Hi,
    I created some tests which run perfectly if I use my IDE (FlashDevelop) to run them. I've been trying to create a Nant script to automate my tests and have the results written into an xml file. The entire build system where I work uses Nant instead of Ant, so I can't really follow the Ant examples.
    I am able to compile my main and my test classes into a swf like this:
        <target name="compile" depends="cleanup">
            <!-- mkdir dir="${executable.dir}" / -->
            <exec program="mxmlc.exe" workingdir="." verbose="true">
                <arg value="-compiler.strict" />
                <arg value="-compiler.source-path" />
                <arg value="..\engineunittests\src" />
                <arg value="-static-link-runtime-shared-libraries" />
                <arg value="-output" />
                <arg value="${executable.dir}\EngineUnitTests.swf" />
                <arg value="-compiler.include-libraries" />
                <arg value="${flexunit.dir}\flexunit-4.1.0-8-as3_4.1.0.16076.swc" />
                <arg value="${flexunit.dir}\flexunit-uilistener-4.1.0-8-4.1.0.16076.swc" />
                <arg value="--" />
                <arg value="${source.dir}\com\playbrains\metagame\test\Main.as" />
            </exec>
        </target>
    That works fine, then I try to run it like this:
        <target name="runtest" depends="setup">
            <mkdir dir="${output.dir}" />
            <exec program="adl.exe" workingdir="${executable.dir}" verbose="true">
                <arg value="application.xml" />
                <arg value="--" />
                <arg value="${output.dir}" />
            </exec>
        </target>
    This runs the swf and the tests but the problem is that it opens the air debug window and it never closes, and the results are never written on any xml file.
    How can I configure my swf so that it stops the adl window when it is done and also write down the results on an xml file?
    Thanks,
    Franco

    Since you are using AIR. If you wanted to, the other thing you could do is copy the AIRCIListener, and instead of having it send over the file system, you could use the AIR File API to write it directly to disk.
    These tools were developed to work with Flash Player or AIR and Flash Player does not have that ability.
    Take a look at:
    https://github.com/flexunit/flexunit/blob/master/FlexUnit4AirCIListener/src/org/flexunit/l isteners/AirCIListener.as
    and
    https://github.com/flexunit/flexunit/blob/master/FlexUnit4CIListener/src/org/flexunit/list eners/CIListener.as
    Mike

  • Help, using Mic with runtime to record on flash

    So ya I posted something earlier and I made it to open, what
    I meant was I need help recording on flsh with the runtime, with my
    mic, sorry for the confusion

    Hi Chris,
    It seems that the Fusion is one of those that can be OS 10.4.9 (USB Video Classs) compliant or not depending on serial number.
    See here http://en.wikipedia.org/wiki/Listof_USB_video_classdevices
    Now this would mean that it may work if the iChatUSBCam utility is disabled.
    This also means deleting com.apple.ichat.plist as this stores the Camera/Utility info.
    The same is true of the ioxperts drivers
    5:10 PM Wednesday; May 30, 2007

  • [HELP]Using AX with xbox

    Sorry, another post on this argument but i did not find any answer to my trouble.
    I have
    1)router wifi netgear
    2)imac'tel c2c
    3)airport express
    4)xbox
    Well, is there any configuration that make me able to play with xbox live WITHOUT buying the wifi adapter for xbox 360?
    I'm trying to connect my xbox360 to the ax and then to the home network wirelessly but i can't manage to do it. I supposte that's because the ax eth port is only wan but i'm not so sure. Is there any suggestion please?
    Thanks a lot!

    The Ethernet port on the AirPort Express (AX) is active only when the AX uses WDS to connect to a wireless network. Since Netgear doesn't support Apple's WDS, you can't use the AX's Ethernet port.

  • Need help Using iphone5 with Bluetooth in 2006 Volvo xc90. I have paired my phone and can make calls. I want to play music on my iPhone using the car's sounds system.

    I have just purchased a 2006 Volvo with Bluetooth. I have paired my phone with the car to make phone calls. I don't have a way to play my iTunes music through the cars audio system. Is there a special auxiliary adapter that I need to buy?

    Nobody have notice this problem or have a tip for that?

  • Help using iDVD with iMovie '11

    I bought the new iMovie '11 from the Mac App Store, and have made a movie successfully on my iMac with OSX 10.6.8.
    However, it doesn't seem to be able to talk to my version of iDVD 6 which looks pretty out of date, but I can't seem to
    find the new version on the App Store.
    There is nothing new for me to download via Software Update.
    Could anyone advise me how I can update my iDVD?
    Thanks!

    Thanks for the fast responses everyone! It does indeed work as AppleMan1958 says, by sharing as large movie. I had to manually drag it to iDVD from a Finder window as it doesn't appear in the media browser, but apart from that it works fine!
    I am just a bit puzzled as to why I can buy certain elements of new iLife in the App Store, but others are not available to download....

  • Help using jCOM with a WLS6.1 server talking to a COM server instead of an VB/COM client

    Hi all,
    I successfully ran the BEA's EarlyBound example that has a VB Client talking to
    WLS6.1 Server via JIntegra. However, I been unsuccessful in trying to find an
    example that has WLS talking to the jCOM bridge to the Wrapper to a COM Server.
    How can I use the jCOM/jIntegra tools to reverse the EarlyBound example, if possible,
    and have an EJB talk to a "Wrapped" COM Server?

    To use GPO multitimbrally, first you create a new multi instrument and cable it directly into the audio instrument into which you've loaded GPO. Let's say it's audio instrument #1. The crucial next step is to set audio instrument 1's MIDI channel to ALL (done via the parameters section on the LH side of the screen).
    Next, name the multi something like GPO ( LOL ) and click on channels 1 - 8 on that multi-instrument in order to activate them. From this point on, instead of selecting Audio Instrument #1 in your arrange window, you select "GPO" (on whatever channel you want, in this case, 1 - 8).
    Message was edited by: iSchwartz

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

Maybe you are looking for

  • Search and replace, with pattern matching using a table

    I need to inspect a data stream and standardise a set of codes. I need to 1. Match any patterns with a dash character and remove the dash and any following characters, eg BN-S -> BN, BN-SH -> BN, ARG-22 -> ARG, etc. 2. Make a few specific word for wo

  • How to find the parallelism degree of a query that has been finished?(10.2)

    We use Resource Manager, developers think that they can not get the parallelism they need for their queries because of the Resource Manager settings. I need to show them how many degree of parallelism each of their query have used, so I need a dictio

  • Lightroom 3's "edit in photoshop CS4" does not preserve "detail" values

    Hi all, I am giving lightroom 3 a try (finally...), but noticed that when I have an image to which I have applied "detail" adjustments to reduce luminescence and color noise, using "edit in Photoshop CS4" opens the image without the detail adjustment

  • How to lock the rows in a transaction so others cant modify the rows

    Hi, I want few suggestion in the following scenario . I have a few records ( say 100 ) in a table which Im sending to the client over a network and are populated in a swing GUI...Now the client selects few of them ( say 3 ) and submits to the server.

  • Update materials automatically in formulation?

    Dear Sir/Madam, When the nutrition or compliance data of materials change, it should be updated in the formulation one by one manually. then the changed nutrition data or compliance data can roll up into the formulation output. Can we click once in t