How Do I Use the TCallback parameter in ibnotify for Delphi in dpib32.pas​?

I'm having some troubles. I've been using the dpib32.pas library for at least 2 years now with no troubles. Now I need to handle some oddball stuff using Async Callbacks. I've referred to App Note 100 and am 98% there... I just can't figure out how to properly use the TCallback function in ibnotify. Any clues?
First thought was to add a function matching the TCallBack function...
function TfrmMain.IBCallBack(ud : integer;LocalIbsta : integer;LocalIberr : integer;LocalIbcntl : Longint;var RefData): integer; stdcall;
then use it as a the parameter in ibnotify...
ibnotify(Dev,RQS,@IBCallback,NULL);
All this gives me is a 'variable required' message on compilation.

Never mind. I dug around in my code archives and found the proper methid for implementing the callback.

Similar Messages

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • How can i use the amp designer or pedalboard for software instruments in garageband 10

    how can i use the amp designer or pedalboard for software instruments in garageband 10?
    and how can i customize the effects for the master track? in different factory presets are different effects, but how can i choose them manually?

    hongconga wrote:
    I want to record a podcast using my Mackie mixer and have the mix sent to Garageband through the USB I/0, but it doesn't seem to give me the option.
    i think the first thing to do would be to check with Mackie support. two things noted on Mackie's website:
    DRIVERS::
    No Driver Required for Supported Windows (PC) or OS X (Mac) Versions
    (note "supported")
    and
    For the Mac::
    Mac OS X 10.4.11 – 10.7.1
    ask if their firmware currently supports OS X 10.9.x

  • How can I use the same parameter to use elsewhere by Manage Variables ?

    Hello,
    I have a little problem that I need to know. I want to use the same parameter to use elsewhere.
    Example,
    I have a parameter on page 1 and I wish to use this parameter in the other page by Manage Variables.
    How can I do this ?
    Thank you.

    ..just open ManageVariables (right click on the a page and select Manage Variables)...
    then you select the parameter on the page where you want to insert your previous value (your variable)...use the dropdown list to select the variable that contains your value...and it should work
    /m

  • How do I use the UHRY_ACTIVE_ROWS parameter?

    We want to create a button to display the rows as a hierarchy (as available in query properties). To do this I realise I need to use the UHRY_ACTIVE_ROWS parameter in the template properties so to change the properties dynamically (as we require this functionality in a button) we started with the javascript command
    newurl = "&CMD=LDOC&TEMPLATE_ID=YTEST_TEMPLATE&UHRY_ACTIVE_ROWS=X";
    SAPBWOpenURL(SAP_BW_URL_Get()+newurl);
    This successfully sets the flag in the query properties but as we have mandatory variables the variable screen is shown which we don't want to see as the users have already entered the variables previously.
    Is it possible therefore to
    1) Avoid the Variables screen showing as they are already populated?
    or
    2) Set UHRY_ACTIVE_ROWS in another method?

    Hi Neal,
    Not sure if this would help..
    You can try using an additional parameter in your URL
    VARIABLE_SCREEN=%20 or VARIABLE_SCREEN=' '
    This should supress the Variable screen.
    Cheers,
    Praveen.

  • How do I use the z parameter instead of component's stack order for layout?

    Hi,
    In my current project I am already using the cool new 3D properties (z/rotationX/rotationY/rotationZ) of the Flex 4 SDK. It really makes fun playing
    around with them, but it is actually pretty annoying that elements that ought to be postioned on top of each other with different z-values are displayed according to their stack order (the positon with respect to to their DisplayObject-siblings). This leads to the non-realistic appearance of objects that should be positioned in the back of the scene right on top of everything else.
    The only solution for this problem is to manually set the z-order in which I want the objects to appear on the screen by using the removeChild()/addChild() methods of the parent-container. This is not only annoying but quite expensive and additionally non-dynamic.
    Is there any means to make a container use its children's position in space for layout instead of its "z-stack"? If not, I would consider this as a bug, at least when it comes to 3D placement of objects.
    Thank's for any hints and best regards,
    Manuel Fittko

    If you are running the broker as a Window's service then
    jmqsvcadmin install -jrehome (or -javahome) is the correct
    way to specify an alternate JRE. If you are running the broker
    directly on the command line then you can use -jrehome directly
    with the jmqbroker command.

  • How can I use the F14 and F15 key for a shortcut?

    Hi folks,
    I've been trying to assign custom shortcuts to the F14 and F15 keys of my keyboard (wired, full sized type) on my Mac Pro 2008 running Mac OS X Lion 10.7.2 however every time I try to assign those keys to an app's "Record a shortcut" function I get the same error dialog from the OS:
    The key combination F15 can't be used!
    The key combination "F15" can't be used because it's already used by a system-wide keyboard shortcut. (If you really want to use this key combination, most shortcuts can be changed in the Keyboard & Mouse panel in System Preferences.)
    (note: the same happens with F14, F13 and lower as well as F16+ work fine however)
    I have looked into my system settings as the dialog suggests however there isn't a single shortcut that uses F14 or F15 anywhere in any of the shortcut groups.
    If any of you have an idea of how I could "clear" or even just find out what these keys are currently being used for/by that would be super… they don't seem to do or trigger anything when I press them.
    Here is another screenshot of the issue:
    Note: This is not app specific, I've tried this in various apps and every time I get the same Mac OS popup.
    Thanks for reading,
    I look forward to your ideas and insights!

    Hi,
    Use the step reference to get a PropertyObject reference using the Step.AsPropertyObject. With this PropertyObject reference you can then get the values of Limits.High and Limits.Low using the PropertyObject.GetValNumber() method.
    Limits.High and Limits.Low will be the lookup string for the PropertyObject.GetValNumber() method.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I use the MPEG-2 DVD format for video rendering?

    I have been trying to make a DVD out of my brother's wedding footage, but I've run into a wall. I would like to render out my footage in the .M2V format (MPEG-2 DVD), but I'm not given the option to use it. The only MPEG format I'm given is the .H264, and that doesn't work as well. How can I install the .M2V codec?

    You should either:
    Render to a suitable production codec and then compress for DVD in your authoring application.Use the Render Cue to render a PhotoJpg at NTSC or PAL file using default frame sizes for your AE rendering composition, then drop in Encore for authoring.
    Open your AE project in Adobe Media Encoder, pick the composition you want to render from the list and pick the MPEG 2 for DVD preset.
    Open Adobe Encore, select File>Dynamic Link>Import After Effects Composition and then set up your timelines and menu's as you like and select Build DVD.
    All DVD authoring programs will compress standard def video in just about any format for DVD. After Effects, however, will not do multi-pass rendering which is required for high quality MPEG compression.

  • How do I use the location bar to search for phrases that do not contain spaces?

    When I type phrases that contain spaces into the search bar, it brings up a google search as specified by my about:config under keyword.URL
    However, when I type anything that *does not* contain a space (e.g. potatoes), firefox tries to connect to http://potatoes/, returning a "cannot establish connection to server at potatoes"
    my keyword.URL is set to: http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=
    browser.fixup.alternate.enabled is *false*
    browser.urlbar.autocomplete.enabled is *true* (though I don't think this has anything to do with it)

    hello jywang74, please update to firefox version 33.0.2 - there you'll see a different behaviour (keyword.url is no longer used btw, the address bar uses the same search provider as set in the searchbar).
    http://msujaws.wordpress.com/2014/08/01/faster-and-snappier-searches-now-in-firefox-aurora/

  • How can I use the same thread pool implementation for different tasks?

    Dear java programmers,
    I have written a class which submits Callable tasks to a thread pool while illustrating the progress of the overall procedure in a JFrame with a progress bar and text area. I want to use this class for several applications in which the process and consequently the Callable object varies. I simplified my code and looks like this:
            threadPoolSize = 4;
            String[] chainArray = predock.PrepareDockEnvironment();
            int chainArrayLength = chainArray.length;
            String score = "null";
            ExecutorService executor = Executors.newFixedThreadPool(threadPoolSize);
            CompletionService<String> referee = new ExecutorCompletionService<String>(executor);
            for (int i = 0; i < threadPoolSize - 1; i++) {
                System.out.println("Submiting new thread for chain " + chainArray);
    referee.submit(new Parser(chainArray[i]));
    for (int chainIndex = threadPoolSize; chainIndex < chainArrayLength; chainIndex++) {
    try {
    System.out.println("Submiting new thread for chain " + chainArray[chainIndex]);
    referee.submit(new Parser(chainArray[i]));
    score = referee.poll(10, TimeUnit.MINUTES).get();
    System.out.println("The next score is " + score);
    executor.shutdown();
    int index = chainArrayLength - threadPoolSize;
    score = "null";
    while (!executor.isTerminated()) {
    score = referee.poll(10, TimeUnit.MINUTES).get();
    System.out.println("The next score is " + score);
    index++;
    My question is how can I replace Parser object with something changeable, so that I can set it accordingly whenever I call this method to conduct a different task?
    thanks,
    Tom                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    OK lets's start from the beginning with more details. I have that class called ProgressGUI which opens a small window with 2 buttons ("start" and "stop"), a progress bar and a text area. It also implements a thread pool to conducts the analysis of multiple files.
    My main GUI, which is much bigger that the latter, is in a class named GUI. There are 3 types of operations which implement the thread pool, each one encapsulated in a different class (SMAP, Dock, EP). The user can set the necessary parameters and when clicking on a button, opens the ProgressGUI window which depicts the progress of the respective operation at each time step.
    The code I posted is taken from ProgressGui.class and at the moment, in order to conduct one of the supported operations, I replace "new Parser(chainArray)" with either "new SMAP(chainArray[i])", "new Dock(chainArray[i])", "new EP(chainArray[i])". It would be redundant to have exactly the same thread pool implementation (shown in my first post) written 3 different times, when the only thing that needs to be changed is "new Parser(chainArray[i])".
    What I though at first was defining an abstract method named MainOperation and replace "new Parser(chainArray[i])" with:
    new Callable() {
      public void call() {
        MainOperation();
    });For instance when one wants to use SMAP.class, he would initialize MainOperation as:
    public abstract String MainOperation(){
        return new SMAP(chainArray));
    That's the most reasonable explanation I can give, but apparently an abstract method cannot be called anywhere else in the abstract class (ProgressGUI.class in my case).
    Firstly it should be Callable not Runnable.Can you explain why? You are just running a method and ignoring any result or exception. However, it makes little difference.ExecutorCompletionService takes Future objects as input, that's why it should be Callable and not Runnable. The returned value is a score (String).
    Secondly how can I change that runMyNewMethod() on demand, can I do it by defining it as abstract?How do you want to determine which method to run?The user will click on the appropriate button and the GUI will initialize (perhaps implicitly) the body of the abstract method MainOperation accordingly. Don't worry about that, this is not the point.
    Edited by: tevang2 on Dec 28, 2008 7:18 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do you use the 100$ student app discount for the app store?

    I recently bought a new Macbook Pro with the 100$ discount from the student aid pack though it also stated that I would have 100$ in app-money. How do I recieve this money on the app store account?

    How to get your gift card here >  http://store.apple.com/us/browse/campaigns/back_to_school

  • How to use the region parameter of main report for subreport chart titles?

    I am using Crystal Reports 11.
    I create 1 main report with 10 sub-reports that contain cross-tabs & charts. The main report has a parameter regarding 3 different areas: region1, region2, and region3.
    I use the method of adding the u2018regionu2019 parameter of main report to the selection formula of the sub-reports. So, I can select 'region' from main report to controll outputs in sub-reports by region.
    I use formulas for chart titles, e.g.:
    Select {Product Code}
    Case 'a111':
      u2018Region1 u2013 a111 Counts'
    Case u2018b222u2019:
      u2018Region1 u2013 b222 Counts'
    u2026
    u2026
    Default:
    u2026
    Since I pass the u2018regionu2019 parameter of main report to sub-reports, I have to change chart titles dynamically based on the region I select.
    How can I use the region parameter from main report in the formulas to get chart titles dynamically?
    Thank you in advance.

    Thank you.
    I am not using Chart Title with "Chart Expert".
    I am using a formula for chart titles, e.g.:
    Select {Product Code}
    Case 'a111':
      u2018Region1 u2013 a111 Counts'
    Case u2018b222u2019:
      u2018Region1 u2013 b222 Counts'
    u2026
    u2026
    Default:
    u2026
    I drag this formula above the charts and it looks like a dynamic title. So, for product a111, the chart title would be "Region1 u2013 a111 Counts"; for product b222, the chart title would be "Region1 u2013 b222" Counts; and so on ...
    Because I pass the region parameter from master report to subreport, I want to change the region part of the chart titles dynamically.
    For example,
    when select Region1, the chart titles should be: "Region1 u2013 a111 Counts"; "Region1 u2013 b222"; ...
    when select Region2, the chart titles should be: "Region2 u2013 a111 Counts"; "Region2 u2013 b222"; ...
    I want to add the region parameter into the tiltle formula.
    How should I do?

  • Moving a PageItem using the "by" parameter (JavaScript)

    Hi,
    So I want to move some page items. I went through the Reference and found that PageItems have the method "move"
    That method wants either to (The new location of the PageItem,in the format (x, y). Can accept: Array of 2 Units, Spread, Page or Layer. (Optional)) or by (The amount (in measurement units) to move the PageItem relative to its current position, in the format (x, y). (Optional))
    So I want to use the by parameter because moves based on the PageItem's current position.
    This is what I've been trying:
    myPage.allPageItems[i].move({by:[0, someVar]});
    But when I try to do this, it says "Invalid value for parameter 'to' of method 'move'..."
    How can I use the by parameter instead of to?

    Hi Jongware,
    I'm afraid your memory was a bit to vague there (I think)
    The second option doesn't work but one can use:
    myPage.allPageItems[i].move([],[0, someVar]);
    Trevor
    Alex, You should mark Jongware's answer as correct
    n.b. you might want to use
    myPage.pageItems.itemByRange (0,1).move([], [0, someVar]);
    Changing the range rather than looping through the items.

  • How to use the "out" parameter in idl

    hello.idl:
    module HelloApp
    interface Hello
    string sayHello();
    void getPass(in string name,out string pass);
    HelloServer:
    public class HelloServer
    class HelloServant extends _HelloImplBase
    public void getPass(String name,org.omg.CORBA.StringHolder pass)
    System.out.println("Server pass = " + pass);
    if (name.equals("lxh"))
    pass = new org.omg.CORBA.StringHolder("1234");
    if (name.equals("cbj"))
    pass = new org.omg.CORBA.StringHolder("5678");
    HelloClient:
    public class HelloClient
    public static void main(String args[])
    try{
    org.omg.CORBA.StringHolder Pass = null;
    if (args.length == 1)
    System.out.println("Client pass = " + args[0]);
    helloRef.getPass(args[0],Pass);
    System.out.println(Pass);
    } catch(Exception e) {
    When I run client main method with parameter "lxh",I will get a error says the getPass() parameter which has given is wrong.
    How to use the out parameter in client?

    Does this error only occurs if you pass "lxh" or always?
    Did you try passing a StringHolder Object rather than a NULL Object?
    Perhaps you can post the error message!?

  • How to use the out parameter of a transformation

    Hi All,
    I have a requirement where I need to move all the transformations from process flows to map.SO for each transformation I need to have 1 map which calls this transformation.I have 1 transformation which has both input and output parameter.If I use this transformation in mapping then how to use the out parameter of thsi transformation.This out parameter needs to beused in other mappings.Can soemone please help me.
    Thansk in advance

    Hi,
    I'm not quite sure what you are trying to do.
    What works: Connect the outgroup of a pre- or post-mapping process operator to the mapping output parameter operator..
    What does not work: Connect the outgroup of an operator that can return more than one row (e.g. table operator, filter, joiner ,...) to the mapping output parameter operator. The mapping output parameter just returns "one row", like a pl/sql function call.
    You cannot pass a "data stream" from one mapping to another. Maybe the pluggable mappings is what you are looking for.
    Regards,
    Carsten.

Maybe you are looking for