HELP!!! ... need to get Window Handle using PDA module

I am trying to find a way to get the current window handle using the PDA module.  I need this handle to call other function via Win dll's.  Has anyone done this before?  Any help would be greatly appreciated (using windows mobile 6.1 and Labview PDA 8.5)  Thanks
Greycat

Thanks Mike ...
I understand that this function does exist, but somehow I am not writing my wrapper properly or calling the function properly because everytime I build my labview app I get a "GetForegroundWindow is a missing VI or C file." - I cannot for the life of me figure this out ... what I was really asking is if anyone has succeeded calling this function and getting the Window Handle.  What I really want to do is run my Labview program on the PDA in full screen mode with no title bar and no SIP button visible or accessible, but to my knowledge, that will take a function call to the aygshell.dll (namely the SHFullScreen function) and that function requires a window handle to work properly ... any more help would be appreciated ... Thanks again
Greycat

Similar Messages

  • Help needed to debug Communication Channel using Seeburger modules

    Hi ALL
    Can you please, help debug the following communication channel using File adapter & seeBurger module.
    Adapter Framework caught exception: I/O operation failed : java.lang.ClassNotFoundException: com.sap.engine.messaging.impl.spi.transport.PasswordCredentialImpl -
    Loader Info -
    ClassLoader name: [sap.com/com.sap.aii.af.app] Living status: alive Direct parent loaders:   [system:Frame]   [service:servlet_jsp]   [service:ejb]   [library:com.sap.xi.util.misc]   [service:com.sap.aii.adapter.xi.svc] Resources:   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/EJBContainer/applicationjars/com.sap.aii.af.ejb.jar   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/servlet_jsp/AdapterFramework/root/WEB-INF/classes   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/servlet_jsp/AdapterFramework/root/WEB-INF/lib/com.sap.aii.af_api.jar -
    Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.rmi_p4.exception.P4BaseRuntimeException: I/O operation failed : java.lang.ClassNotFoundException: com.sap.engine.messaging.impl.spi.transport.PasswordCredentialImpl -
    Loader Info -
    ClassLoader name: [sap.com/com.sap.aii.af.app] Living status: alive Direct parent loaders:   [system:Frame]   [service:servlet_jsp]   [service:ejb]   [library:com.sap.xi.util.misc]   [service:com.sap.aii.adapter.xi.svc] Resources:   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/EJBContainer/applicationjars/com.sap.aii.af.ejb.jar   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/servlet_jsp/AdapterFramework/root/WEB-INF/classes   /usr/sap/KPX/DVEBMGS00/j2ee/cluster/apps/sap.com/com.sap.aii.af.app/servlet_jsp/AdapterFramework/root/WEB-INF/lib/com.sap.aii.af_api.jar
    Your help is greatly appreciated!
    Thank you,
    Patrick

    Hi Patrick,
    It seems that your seeburger instalation was not successfull.
    Try installing it again and make all the libraries are there.
    Regards,
    Luismier
    Edited by: Luismier on Aug 26, 2009 10:57 PM
    Edited by: Luismier on Aug 26, 2009 11:16 PM

  • Unable to get Window Handle for the 'AxCrystalActivXViewer' control.

    Hi,
    I have Operating System : Windows 7 and Application developed in VS 2005 and I am using Crystal Report XI licenced version.
    But when I am trying to use TTX(Field Defination) based reports it gives me "Unable to get Window Handle for the 'AxCrystalActivXViewer' control. Windowless ActivX Controls are not supported."
    Please provide me solution for this ASAP as I am stucked on this from long lomg time.
    -Regards
    Swapnil

    Appears you are installing an upgrade version.
    Use these links:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE

  • Need to get IRole object using Roles Display Name

    Hi,
    I need to get IRole object using Roles Display Name. I had the below code in EP 2004 SP12 and it works. But the same code dont work in EP 2004s SP13
    user = request.getUser();
    profile = request.getComponentContext().getProfile();     
    String strRoles = profile.getProperty("Roles");
    String strRole[] = strRoles.split(",");
    IRoleFactory roleFactory = UMFactory.getRoleFactory();
    String roleUniqueId = null;
    int i = 0;
    boolean flagRedirect = false;
    for(i = 0; i < strRole.length; i++){
         try
              com.sap.security.api.IRole role = roleFactory.getRoleByUniqueName(strRole<i>);
              roleUniqueId = role.getUniqueID();
              if(!user.isMemberOfRole(roleUniqueId, true))
                   continue;
              flagRedirect = true;                    
              break;
         catch(UMException ex)
         catch(IOException ex)
    if(!flagRedirect){
    Where property Roles will have comma separated roles display names like "com.ABC.ortho_reports,com.ABC.lawns_ortho_reports,com.ABC.executive_reports"
    Please advise.

    Thanks Mrudula for the response. Sorry for the delay in responding.
    I get UMEException with the message "Role with uniqueName com.ABC.general not found"
    But it works fine if i specify Role unique role (like pcd:portal_content/com.abc.Marketing_Workbench/com.abc.Roles/com.abc.general).
    We are in the process of upgrading Portal environment from EP6.0 SP12 to EP7.0 SP13. Above scenario works fine in the older environment.

  • Problem related USB Virtual COM PORT using PDA module 8.2 on Windows CE

    Hi,
    I am working on tranferring my application developed on LV 8.2 to a Single-board computer(SBC) running Windows CE 5.0. I am using LV PDA module 8.2 to achieve this. My problem lies in finding the port number of the Virtual COM Port on the SBC. I need to connect a USB RF modem from Maxstream to this SBC and to talk to it using VISA. I have installed the required drivers from Maxstream for converting the USB port to a virtual COM PORT. What is a way to figure out the COM PORT number on a Windows CE device? For a PC, I can see the COM PORT in the device manager but I do not know how to find this in Windows CE. . Also, I have tried using "VISA Find resource" function ..it works on a PC but I do not get anything in the Win CE device.
    Any help would be much appreciated.
    -Shruti

    Shruti,
    Is there a way to verify that the Maxstream driver successfully provides you with this virtual COM port? Essentially, what I mean is that if you did not have LabVIEW on this device, how does Maxstream prove that their driver is functional? Does it come with additional software that would be used to configure the USB RF modem? In any case, we would want to try opening any terminal program (like the hyperterminal) to determine what ports are listed for communication. I hope this is useful for you. Please post back when you are able to give this a try. Thanks,
    Mike D.

  • Help needed in getting the previous Quarter Data

    Hello folks,
    I have this procedure where i have to modify the current procedure in the following manner:
    I need to get rid of the variables p_start and p_end so that i cannot see them in the crystal report and include the Frequency in the procedure to get the Data based on the Dates.
    and Main requirement is" If the Frequency is Quarterly " it should get the previous quarter Data, if "Frequency is monthly" it should return the previous month data.Can anyone please let me know where shud i make changes. Am including the procedure for refernce. Any help is appreciated
    Thanks a millioin,
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h(report_record in out cr_return_types.gen_cursor,
    p_start       string,
    p_end         string)
    IS
    v_startdate date;
    v_enddate date;
    BEGIN
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));
    open report_record for
    select --distinct r.recovery_id
    r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    sum(nvl(r.amount, 0)) as amt_received,
    nvl(sum(case
    when r.amount >= 0 then
    rd.fees
    else
    rd.fees * (-1)
    end),
    0) as fees,
    ec.close_date, *001* commented
    (case
    when ec.close_date <= to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS') then
    ec.close_date
    else
    null
    end) as close_date, --*001*  added
    get_case_value(ec.event_id, ec.event_case_id, v_enddate) as case_value,
    nvl(etl.fee_percent_flag, 'N') workmans_comp,
    max(to_char(r.recovery_date, 'FMMonthYYYY')) Year_Month,
    max(to_char(r.recovery_date, 'YYYYMM')) Y_M,
    max(to_date(to_char(r.recovery_date, 'MMYYYY'), 'MM/YYYY')) date_MY
    from recovery r,
    recovery_detail rd,
    event e,
    client c,
    branch_group b,
    employer_group g,
    event_case ec,
    event_type_lookup etl
    where r.event_id = e.event_id
    and r.event_case_id = ec.event_case_id
    and ec.event_id = e.event_id
    and rd.recovery_id(+) = r.recovery_id
    and r.recovery_date between v_startdate and
    to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS')
    and e.client_id = c.client_id
    and g.client_id = c.client_id
    and b.client_id = c.client_id
    and g.employer_group_id(+) = e.employer_group_id
    and b.branch_group_id(+) = g.branch_group_id
    and e.event_type_code = etl.event_type_code -- SST 130852 04/14/09
    group by r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    ec.close_date,
    get_case_value(ec.event_id, ec.event_case_id, v_enddate),
    nvl(etl.fee_percent_flag, 'N')
    having sum(nvl(r.amount, 0)) <> 0
    order by c.client_code,
    b.branch_group_code,
    g.employer_group_code,
    r.event_case_id;
    Edited by: user11961230 on Oct 20, 2009 9:02 AM

    user11961230 wrote:
    1. I want to get rid of the p_start and p_end. So how do i declare the v_startdate and v_enddate in the following part?
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));I'm not sure what you mean by "declare".
    In PL/SQL, "declare" means state (at the beginning of a block) that there will be a certain variable with a certain name (such as v_startdate) and datatype (such as DATE). You're already declaring the variables v_startdate and v_enddate correctly, right before the BEGIN statement.
    Declaring a variable is not the same as initializing it, that is, giving it a value for the first time. Your next question seems to be about initializing..
    2. where exactly shud i include the logic that u have mentioned. sorry a dumb questionIn place of the two assignment statments that reference p_start and p_end.
    3. This time am gonna use frequency instead of report_type so that i will get rid of the p_start and p_end from the procedure.Do you mean you want to pass an argument (called frequency) that tells if you want a quarterly or a mionthly report, just like the variable report_type in my example?
    If so, replace report_type in my example with frequency.
    I think you want something like this:
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h
    (      report_record         in out     cr_return_types.gen_cursor
    ,      frequency         IN           VARCHAR2
    IS
         -- Declare local variables:
         v_startdate     date;
         v_enddate      date;
    BEGIN
         -- Initialize v_startdate and v_enddate, depending on frequency
         IF  frequency = 'QUARTERLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -3)
                                           , 'Q'
              v_enddate := TRUNC (SYSDATE, 'Q');
         ELSIF  frequency = 'MONTHLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -1)
                             , 'MM'
              v_enddate := TRUNC (SYSDATE, 'MM');
         END IF;
         --   Subtract one second from v_enddate
              v_enddate := v_enddate - ( 1
                                            / (24 * 60 * 60)
         open report_record for
         select --distinct r.recovery_id
                r.event_id,
         and     r.recovery_date  BETWEEN  v_startdate     
                         AND       v_enddate
         ...When you post formatted text on this site (and code should always be formatted), type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Oct 20, 2009 2:37 PM
    Changed query to use BETWEEN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help needed in getting file url

    Hi,
    I work in a project where i need to get the url of the specified file. The code for that is as,
    URL fileURL = Thread.currentThread().getContextClassLoader().getResource();
    The required resource is available in the concerned path. But the file url returns null
    Can you please help in solving the problem.
    Thanks and Regards,
    Mclaren

    Where (text area, label, button) do you want it to do it.
    What do you want it do (browse within the local text area, open the default browser...)
    Text area, use above, JButton (or alike) and open default browser, use ActionListener and JDIC.

  • JNI: get Window-Handle of JFrame

    Hello,
    I'm calling a DLL method (written in VC), that needs a Window-handle (HWND) as parameter. How can I get the Handle of my JFrame to pass it into the DLL function?
    All samples are designed for getting the HWND of a Canvas. But obviously it does not work with any kind of Frame.
    Can somebody tell me ?
    Thank you, Lars
    P.S. I'm working with SUN 1.4

    see this one, i was looking for same thing:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=238779

  • Help needed, M getting this message sandbox environment error no test user account, when downloading any application from iTunes, friend told me to sign out and sign in iTunes it might solve the problem but instead I cannot login I to my itune account.

    Help needed,
    I am getting this message sandbox environment error no test user account, when downloading any application from iTunes, friend told me to sign out and sign in iTunes it might solve the problem , and i triyed it but still  I cannot login I to my itune account. Same message keeping. Popping up,  this problem started supricly today.

    Take a look at the instructions here.
    http://www.technogal.net/2012/03/this-is-not-test-user-account-please.html

  • Need to get trail Spacing using BIC Mapping tool

    Hi Experts,
    There is a stranage scenario were i need to get an output in a text file using trail spacing.
    for example here is the input for the BIC Mapping
    <DK03_SEG> ***************                     77700000000463518500000030000000202820100226 *********     </DK03_SEG>
    has at the starting and ending of the message there is a empty space.
    but when i run BIC Mapping i am getting the out put in this fashion
          *********77700000000463518500000030000000202820100226
    only could get the spaces in the start of message at the end BIC is trimming the spaces at the end .
    how this  can be achieved.
    @@ consider * as spaces
    Thanks
    Sampath

    Hi Seven,
    I have tried that option but unable to get the required output. Any other option were it can be achieved.
    Thanks
    Sampath

  • Help needed in Multiple Receivers sceenarios using BPM

    Hi,
    I am new to BPM. As per my requirement, based on a business logic i may split the messages into two at message mapping. If i have spitted the messages into two, it should go to different receivers. Or if my logic hasnt splitted the mesaage means it should go to any one of the receivers. I also expect response from the receiver system once its done successfully.
    Could you help me how to do this using BPM?
    Thanks & Regards,
    Senthil.

    Hi,
    You can do it without BPM also, by using MultiMapping. If only splitting is required then I would suggest not to use BPM since it will consume much memory. Instead you can use multmapping.
    For Multimapping, go to messages tab in message mapping and select your different target structures and map it as per your requirement. In Integration Directory, go to advanced Interface Determination and proceed.
    Br,
    Madan Agrawal
    Edited by: Madan Agrawal on Feb 12, 2009 8:25 AM

  • Help needed on workin with LDBs using call through Function Module LDB_PROC

    Hi All
    I am new to Logical Databases. I found on net that I can use a dynamic call to a Logical Database using Function Module
    "LDB_PROCESS".
    I tried implementing the same using the following logic.
    REPORT  zsa_test2.
    TABLES: pernr.
    SELECT-OPTIONS s_pernr FOR pernr-pernr.
    DATA: callback TYPE TABLE OF ldbcb,
               callback_wa LIKE LINE OF callback.
    callback_wa-ldbnode     = 'PERNR'.
    callback_wa-get            = 'X'.
    callback_wa-cb_prog     = sy-repid.
    callback_wa-cb_form     = 'CALLBACK_PERNR'.
    APPEND callback_wa TO callback.
    START-OF-SELECTION.
      CALL FUNCTION 'LDB_PROCESS'
           EXPORTING
                ldbname                       = 'PNP'
             VARIANT                       = ' '
             EXPRESSIONS              = TEXPR
             FIELD_SELECTION        = FSEL
           TABLES
                callback                         = callback
             SELECTIONS                 = SELTAB
        EXCEPTIONS
             LDB_NOT_REENTRANT      = 1
             LDB_INCORRECT               = 2
             LDB_ALREADY_RUNNING  = 3
             LDB_ERROR                      = 4
             LDB_SELECTIONS_ERROR = 5
             LDB_SELECTIONS_NOT_ACCEPTED = 6
             VARIANT_NOT_EXISTENT      = 7
             VARIANT_OBSOLETE            = 8
             VARIANT_ERROR                  = 9
             FREE_SELECTIONS_ERROR = 10
             CALLBACK_NO_EVENT         = 11
             CALLBACK_NODE_DUPLICATE     = 12
             OTHERS                                       = 13.
      IF sy-subrc <> 0.
       WRITE: 'Exception with SY-SUBRC', sy-subrc.
      ENDIF.
    *&      Form  CALLBACK_SPFLI
          text
         -->NAME       text
         -->WA         text
         -->EVT        text
         -->CHECK      text
    FORM callback_pernr USING name  TYPE ldbn-ldbnode
                                                wa    TYPE pernr
                                                evt   TYPE c
                                                check TYPE c.
      BREAK-POINT.
      WRITE: / wa-pernr.
      ULINE.
    ENDFORM.                    "CALLBACK_SPFLI
    But I am unable to transfer the control to the subroutine. The break-point isn't reached.
    Can someone please guide me? Am I using the wrong node or something??

    look at the below code ..
    pass  sstab  to the selection in the FM
    data cbtab type table of ldbcb.
    data wa_cbtab like line of cbtab.
    data sstab type table of rsparams.
    data wa_sstab like line of sstab.
    wa_cbtab-ldbnode  = 'SPFLI'.
    wa_cbtab-get      = 'X'.
    wa_cbtab-get_late = ' '.
    wa_cbtab-cb_prog  = sy-cprog.
    wa_cbtab-cb_form  = 'CB_SPFLI'.
    append wa_cbtab to cbtab.
    wa_cbtab-ldbnode  = 'SFLIGHT'.
    wa_cbtab-get      = 'X'.
    wa_cbtab-get_late = ' '.
    wa_cbtab-cb_prog  = sy-cprog.
    wa_cbtab-cb_form  = 'CB_SFLIGHT'.
    append wa_cbtab to cbtab.
    wa_sstab-selname  = 'AIRP_FR'.
    wa_sstab-kind     = 'S'.
    wa_sstab-sign     = 'I'.
    wa_sstab-option   = 'EQ'.
    wa_sstab-low      = 'FRA'.
    append wa_sstab to sstab.
    call function 'LDB_PROCESS'
      exporting
        ldbname     = 'F1S'
      tables
        callback    = cbtab
        selections  = sstab .
    form cb_spfli  using  nodename  type ldbn-ldbnode
                          wa_spfli  type spfli
                          mode      type c
                          selected  type c.
       write: / wa_spfli-carrid,
                wa_spfli-connid,
                wa_spfli-airpfrom,
                wa_spfli-airpto.
    endform.
    form cb_sflight  using  nodename   type ldbn-ldbnode
                            wa_sflight type sflight
                            mode       type c
                            selected   type c.
       write: /3 wa_sflight-fldate,
                 wa_sflight-seatsmax,
                 wa_sflight-seatsocc.
    endform.

  • Buffer overflowin​g in PDA using PDA module?

    I am trying to send data from a Rabbit Microcontroller (RCM3600) through the serial point, I am recieving the data correctly, but the buffer is filling up and then the data is shifts one place over, the buffer indicator that I have set only goes up to 8191 for some reason, even if I set the buffer at 1024, I am using the PDA module to do this, I am sending it to a HP5550

    Ben,
    Could you attach a copy of your application so that we can take a look at it. It is fairly difficult to suggest possible remedies based on your description. If you can simplify your VI before posting it to the parts that are causing the problem it would be very helpful.
    Christian L
    NI Consulting Services
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • How to use PDA module to access the database of PDA?

    I want to develop a program which  can access the database of PDA by the pda module. give me some advice!
      thanks!

    It may help you to know how I add JARs
    1. I open my Project (myProject)
    2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
    3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
    3.1 I add the File to my Project
    4. I select File | New -> Classes | Main
    4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
    4.2 I called some of the public methods
    thats it
    Andreas

  • "NormFltH is a missing VI or C file" when using PDA module

    To whom it may concern,
    I developed a VI, which containing some Digital Signal Processing (DSP) functions and digital filters. I want to download it to my PDA via NI LabVIEW PDA module. However, the system always prompted "NormFltH is a missing VI or C file". I don't know what such "NormFltH" file is. If I run this VI on my PC, everything works well unless I try to run it in my PDA device.
    Can anyone offer me some guidance or suggestion? Thanks so much for your valuable help.
    Zhanpeng

    will this helps you? if didn't solved your problem, post back.
    Thanks,
    Mathan

Maybe you are looking for