How to get event from message?

Hi,All:
I write a run-time interface by CVI, I use TS_EngineRegisterUIMessageCallback to register my callback function, but when message passed to the callback function, as the type is struct IDispatch but not CAObjHandle, I don't know how to read event from message.
Can you help me to solve it? Thanks
Chang Zhang

Hello Chang-
If your question is simply how to obtain an object handle from an object of type IDispatch, have you investigated the function "CA_CreateObjHandleFromIDispatch"? I would recommend you look over the testexec.prj that is installed along with the TestStand engine (the CVI Operator Interface) and inspect how we handle our callbacks, this may help you understand how to go about emulating the behavior in your own project. To see this particular function in use it may be most helpful to look in the file 'engine.c' and inside the function UIMessageDeferredCallback here you will see the IDispatch pointer being handled and decoded for use by the TS engine.
Regards,
Elaine R.
Applications Engineering
National Instruments
http://www.ni.com/ask

Similar Messages

  • How to get events from Jtextpane editable with graphic drawn on it ??

    HI,
    I have a Texpane with some string drawn on it at some interval according to scale.
    How do I get the event of click on it and make that particular character editable.

    Try adding a mouselistener to the pane
    appu

  • How to get event from selected JTable row

    Whenever a JTable row is selected, i want to get an event to get the row index of the selected row and read the row data. Which listenere do i have to implement and where is the correspoinding addXXXListener() method in JTable?

    here ya go...
    <table>.getSelectionModel().addListSelectionListener(...);Josh Castagno
    http://www.jdc-software.com

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How to get the XML messages from JMS Queue in BPM

    I have one requirement in my application.we are sending XML messages to the JMS Queue.How to get the XML messages from JMS Queue and how to Extract the details from XMl.
    can you please send me the code to get the XML messages from the JMS Queue.
    Thank you,

    Hi,
    Sure others will have some other ideas, but here's what I typically do to get the XML from a JMS queue. Inside the Global Automatic that pops the messages off the queue you'd have logic similar to this:
    artifactInfoNodes as Any[]
    xmlObject as Fuego.Xml.XMLObject = XMLObject()
    load xmlObject using xmlText = message.textValue
    . . . Once you have this, it's a matter of deciding what you want to do with the message. Most times you'll parse the XML (using XPATH statemens), set argument variables and create a work item instance.
    Hope this helps,
    Dan

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • IOS - Create Event from Messages in Calendar doesn't observe default Alert settings

    I have discovered a bug in the iOS Calendar app. If one gets a text message with a time and uses the underlined link (in Messages) to "Create Event," the newly created calendar item (Event) does not set the alert as defined in Calendar settings.
    For example, my alerts are set (in Settings) to 1 hour, but when using "Create Event" from Messages, the alert is pre-set to none. When creating a new event strictly in Calendar however, the 1 hour alert is set properly for the new event.
    Is this just me, or can others confirm this?
    And does anyone have suggestion for a fix?

    You can send Apple Feedback here: http://www.apple.com/feedback/

  • How to get HttpSession from sessionID

              Hi,
              Can anyone tell me how to get HttpSession from a session ID?
              There used to be a HttpSessionContext class able to get the HttpSession, but it
              is depreciated.
              Thanks in advance
              

    You'll have to track the sessions yourself; search this newsgroup for the
              session binding listener interface.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "Eric Wang" <[email protected]> wrote in message
              news:3e56ffa0$[email protected]..
              >
              > Hi,
              >
              > Can anyone tell me how to get HttpSession from a session ID?
              > There used to be a HttpSessionContext class able to get the HttpSession,
              but it
              > is depreciated.
              >
              > Thanks in advance
              >
              

  • How to get photos from pc to iphone ?

    how to get photos from pc to iphone?

    1. Connect your iDevice to your computer with the USB connector. Open iTunes and select your device from the left sidebar. Then, select the photos tab from the top menu.
    2. Organize and sync.
    First choose where you’d like to sync your photos from. I use iPhoto, but you can use any photo management system.
    Check the box next to each album &/or event you’d like to sync.
    Alternatively, you could put all the photos you want to transfer into a separate folder on your computer, and choose to sync just that folder from the drop down menu.
    Notice that I’ve checked the box “Include videos” so any included videos will also sync.
    When your selections are made, click “Apply” and the photos will sync to the photo library on your device.

  • How to get coordinates from Google Map

    I wonder how to get coordinates from Google Map to JavaFX application when click has occured. Here is an example of code:
    public class JavaFXApplication extends Application {
    public void showCoordinates(String coords)
            System.out.println("Coordinates: " + coords);
        @Override public void start(Stage stage)
            final WebView webView = new WebView();
            final WebEngine webEngine = webView.getEngine();
            webEngine.load(getClass().getResource("googlemap.html").toString());
            webEngine.getLoadWorker().stateProperty().addListener(
                    new ChangeListener<State>() {
                        @Override
                        public void changed(ObservableValue<? extends State> ov, State oldState, State newState) {
                            if (newState == State.SUCCEEDED) {
                                JSObject window = (JSObject) webEngine.executeScript("window");
                                window.setMember("java", new JavaFXApplication());
            BorderPane root = new BorderPane();
            root.setCenter(webView);
            stage.setTitle("Google maps");
            Scene scene = new Scene(root,1000,700, Color.web("#666970"));
            stage.setScene(scene);
            stage.show();
       public static void main(String[] args){
            Application.launch(args);
    // googlemap.html file
    <!DOCTYPE html>
    <html>
        <head>
            <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
            <style type="text/css">
                html { height: 100% }
                body { height: 100%; margin: 0px; padding: 0px }
                #map_canvas { height: 100%; background-color: #666970; }
            </style>       
            <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
            </script>
            <script type="text/javascript">           
                function initialize() {
                    var latlng = new google.maps.LatLng(40.75089, -73.93804);
                    var myOptions = {
                        zoom: 10,
                        center: latlng,
                        mapTypeId: google.maps.MapTypeId.ROADMAP,
                        mapTypeControl: false,
                        panControl: true,
                        navigationControl: true,
                        streetViewControl: false,
                        backgroundColor: "#666970"
                    var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);    
                    document.map = map;
            google.maps.event.addListener(map, 'click', function(event) {
                //java.showCoordinates(event.latLng); ???
            map.setCenter(location);
            </script>
        </head>
        <body onload="initialize()">
            <div id="map_canvas" style="width:100%; height:100%"></div>
        </body>
    </html>Edited by: krbltik on 03.10.2012 22:59

    Hi, welcome!
    You may also have a look at GPS Info Qt, available for free at Ovi Store: http://store.ovi.com/content/165671
    GPS Info Qt is a nice Qt app. I have it on my C6-01 and I like it.
    Regards.

  • Question re-posted: Way to get events from outside application

    Hello,
    FatCo asked this question but has not got a reply. I have the same question, so I re-post it, hoping someone could give us help. How can we write JNI code to do it on a Windows OS? Assume appliction 2 is a Internet Explorer.
    Thank you!
    --Bin
    Author: FaTCo Sep 24, 2002 1:17 PM
    Hello,
    is there a way to get events from other applications, either native or java applications?
    For example application 1 (Java or not) is getting minimized, is there a way to notice application 2 (Java) about that?

    I am not really a Windows programmer so I cannot say how you can get the event notification in C(++) but if you can get it there then there should be no particular problem communicating that information to Java.
    This might take the form of creating a thread (all threads are native threads on Windows) which blocks on receiving this event and then notifies the rest of the application somehow, maybe by setting a global flag, using Object.notify() to wake up some other thread to do the processing, or simply by calling a Java method to do all the necessary handling before returning. But there is nothing special about this part.
    It all depends on how you can receive the event notification in C++.

  • Acrobat SDK: How to get events and write event handlers in c#

    I am trying out to get events from a pdf doc and handle it in my c# code with the samples that come with Acrobat-SDK. 
    I am yet to understand how I can do it. I am yet to discover the class that provides me the events. All the classes currently expose methods only. It might be that I am missing something for sure.
    Can somebody help?
    My use case is:
    the user will open a pdf doc and my application (or my app can trigger opening the pdf doc)
    when the user selects some text from the pdf doc, my app should get the event
    My event can handle the selection and get the selected text.
    Put a bookmark on the selection in the pdf doc (with additional attributes)
    the pdf doc retains such bookmarks when the pdf is saved.
    bookmarks in the pdf should be available for edit.
    A different app/code should be able to parse and retrieve these bookmarks along with the additional attributes of the bookmark.
    I hope, I have not asked too much.

    There are no “event handlers” for C# in the Acrobat SDK.  You will have to “poll” for things such as selected text.
    Also, I don’t know what sort of “additional attributes” you are thinking about, but that may or may not be possible from C#.

  • How to get event when app is minimized.

    How to get event when app is minimized in only windows app, not phone version.

    Hi,
    Suspending Event will be called when a windows store app is minimized. It will not hit the Suspending Event when minimised while debugging, So you need to trigger it manually from the VisualStudio Toolbar.
    Also Read
    Application Lifecycle for windows apps
    Pradeep AJ

  • How to get event when any library object added to indesign doc?

    I want to do some operation when any library object is added to doc. So please tell me how to get event when any library object is added to the doc. better provide some code snippet.

    Daves61,
    I need to clarify what kind of event you're interested in.
    1. When you click once on page/spead widget in the Pages panel and only widget becomes selected. The layout window remains unchanged. OR
    2. When you doubleclick on page/spread widget the selected master spread appears in the layout window.
    In the first case you work with Pages panel.
    Have a look to file PageTransitionsPanelObserver.cpp from SDK. 
    PageTransitionsPanelObserver::LazyUpdate()
    In the second case you work with Layout window.

Maybe you are looking for

  • Never ever ever ever change my appointment times in iCal!

    I have read dozens of posts.  I have played with the settings and my behaviour until I am sick. In >30 years of using both paper and electronic diaries, I HAVE NEVER ONCE SET A TIME FOR ANY OTHER TIME ZONE APART FROM THE RELEVANT ONE FOR MY MEETING!!

  • Very slow to start mac os after instaling Windows thru bootcamp

    Hello. After installing Windows 7 using bootcamp, my mac became a lot slower to start mac os lion. I have filevault enabled, and it is taking a lot of seconds to display the filevault login screen. It is also taking a lot of time to detect my magic m

  • TV Tunner OS 9

    Is there a PCI TV tunner with RCA? Thanks

  • Report for moving average price

    Hi guys Is there any report in MM which shows me different Moving average prices for a material (scenario is price changes very often for the material in PO) Thanks Samuel

  • Create item hierarchies

    I want to create item hierarchies Example : I have 3 folders -JOBS(id,job_title,hour) -SEX(id,id_sex_job,code_sex) -STAT(id,id_stat_jobs,code_stat) JOBS and SEX are joined (JOBS.id = SEX.id_sex_job) JOBS and STAT are joined (JOBS.id = STAT.id_age_job