Interfacing to C code - Handle?

I need to create a LabView Interface to the following  'C' Call ....
Have you guys ever worked with passing Windows Handlers? 
extern "C" bool WINAPI ConnectDevice(HANDLE  hnd, USHORT VendorID, USHORT ProductID);
I'm using Labview 6.1

A handle is a U32. Windows API functions require the stdcall calling convention, but I'm assuming it will work in your C case as well. Look here for more details (and note the links at the top of the page).
Try to take over the world!

Similar Messages

  • JAEHYLEE  (R11i AP)   Payables Open Interface Import  REJECT CODE:NO TERMS

    Purpose
    Payables Open Interface Import REJECT CODE:NO TERMS
    Symptoms
    'EDI' Source로 invoice를 import할때 Payables Open Interface Import program 이 error로 종료된다
    정상적인 에러 No Terms로 출력이 되나 , 데이타 상에는 아무 이상이 없으며
    debug log file 의 reject code는 NO TERMS INFO라고 출력된다
    REJECT CODE:NO TERMS INFO
    CauseThe import program in procedure v_check_invalid_terms does not have exception handling. So, when ever it has exceptions like no_data_found or too_many_rows control was returning to the final exception block and the procedure was returning false to the calling procedure. Hence the error instead of Reject reason.
    Bug 4704918 - APXIIMPT DOESN'T REJECT INVOICES WITH INCONSISTENT TERMS.
    Solution
    AP.N이상에서 patch 4755024를 적용
    Please apply Patch 4755024 - 1OFF:4704918:AP.N:FP.G:11.5.10:APXIIMPT DOESN'T REJECT INVOICES
    Reference
    Note 359089.1

    Have you customized/setup the Project Accounting Workflow builder. You need to do some setup for this workflow builder so that the project accounts can be derived properly.

  • Adobe Form called from SAP Portal, not executing interface global init code

    Hello!
    I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
    The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
    The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
    Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
    Thanks a lot!!
    Regards,
    Diana.

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • GL Interface Journal import code

    Hi,
    Any one have GL Interface Journal import code, Please send that code to below mail id.
    It is very Urgent.
    Mail ID: [email protected]
    Thanks in Advance
    Varma.

    See http://oracleappstechnique.blogspot.com/

  • Which Event Listener interface is used to handle the events

    Hi!
    which Event Listener interface is used to handle events that occur when an attribute is added or removed from the Application Servlet context?
    1.Servlet context Listener
    2.HTTP Session Activation Listener
    3.HTTP Session Listener
    4.Servlet Context Attribute Listener
    Thanx

    I guess you can find that out using google.... it would be fast and easy...

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • SRKIM: Payables Open Interface를 통해 distribution의 tax code 를 활성화

    PURPOSE
    Payables Open interface 를 통해 invoice 생성 시 distribution level 의 tax code 활성화 방법에 대해 알아 보도록 한다.
    Explanation
    1. Profile Option 에서 "Tax:Allow Override of Tax Code" 를 Yes 로 지정한다.
    2.     AP_Invoice_Lines_Interface table에 tax_code 를 update 한다.
    3.     AP_Invoice_Lines_Interface table 의 Tax_Code_Override_Flag 를 'Y' 로 update 한다.
    4.     Payables Open interface program 을 수행 한다.
    Example
    N/A
    Reference Documents
    Note. 232955.1 How to Import Tax_Code from AP_INVOICE_LINES_INTERFACE ?

  • Interface using PLSQL code

    Hii...Experts
    I ve written a plsql anonymous block code in database . That code is selecting 2 columns from source and want to implement that code in ODI interface in such a way that the values of two columns should be loaded into target.
    How to do the such interface??
    Please Help..
    Thanks
    Edited by: soumya.rn on Mar 23, 2012 3:54 AM

    If yoru PLSQL code is in a "oracle package" object, you can call this object in an ODI interface
    example :
    your oracle package is called "my_PL_proc" and the parameter requires the source column "ID_PRODUCT"
    in your ODI mapping, you can call it :
    <%=odiRef.getObjectName("L", "my_PL_proc", "D") %>(source_table.ID_PRODUCT)

  • Intel Trusted Execution Engine Interface has a Code 10 error.

    When I open Device Manager I get a yellow triangle on the Intel Trusted Execution Engine Interface. I open it and it says 
    This device cannot start. (Code 10) STATUS_DEVICE_POWER_FAILURE. I have tried uninstalling it and updated all drivers. I don't know what else to do so it will be awesome if anyone can help me out here.

    You're very welcome.
    OK...
    Let's try manually installing the driver.
    First, go to the Intel TXE driver folder you unzipped and open that folder.
    Inside that folder there is another zipped driver folder (KMDF whatever).  Unzip that one. Let it extract inside the other folder.
    Go to the device manager and click on the problem TXE device.
    Then click on the driver tab.
    Click on Update Driver.
    Select the browse my computer for driver software option and then at the bottom of that window, select the Let me pick from a list of device drivers on my computer.
    Select Have Disk and browse to:  unzipped Intel TXE driver folder\unzipped inner folder\KMDF_NO_RTD3_DRIVER\KMDF_NO_RTD3_DRIVER\NO_RTD3_DRIVER\release\x64\TXEI, and select the Intel(R) Trusted Execution Engine Interface device from the list and see if the driver installs that way.

  • Class/Interface creation by code..

    Hi all,
    I am trying to automate the creation of interface turned
    to SDN Forum and got help and was able to create interface thro code using SEO_INTERFACE_CREATE. But I was challenged by a problem. Every time the interface is created i have to click "Local Object" in
    "Create Object Directory Entry" dialog box.
    I was helped by SDN Forum once again and was asked to use
    SET PARAMETER ID 'DVC' to set it to '$TMP'.
    It worked fine. But when i try to add components/methods
    to the interface, it pops up that dialog box again!!!!
    I want to completely automated the creation of interface
    and the addition of methods without being bugged by a
    "Create Object Directory Entry" dialog box.
    Is it possible? Pls help.
    Thanks in advance.
    Regards,
    Anand.

    Try to use thf fm SEO_INTERFACE_CREATE_COMPLETE instead.
    It has a dev class parameter as import option.
    Regards,
    Ravi

  • Missing wdGet UsedComponentName Interface in generated code

    Hi experts,
    In one of my DCs, I am adding a used component, which is an interface component (it has a component interface defined inside).  After adding this, the wdGet<UsedComponentName>ComponentUsage() method is generated but not the wdGet<UsedComponentName>Interface() method.  I am not sure what am I missing here.
    I am using the 7.11 version.

    Never Mind.  I found the problem.
    You need to go into the component controller editor and add the interface controller as another required controller.  Not sure why the component usage is added automatically but you have to add the interface controller manually.

  • JNI to interface with fortran code

    So suppose my fortan program has (6 functions)
    and I use Java JNI method to make use of existing fortran code
    here is my ?,
    should i declare prototypes of all 5 fortran functions in c or
    should i declare only the topmost entry method(main) of fortran?
    my inclination is that if my fortran main method has access to all variables in program, then i only need the topmost fortran main prototype funciton to be declared in c.
    is this correct?

    how does one pass primitive data types such as char, int, single & multiple dim arrays from C to fortran?
    what about passing them from fortran to C?
    I had previously posted this
    ? in another forum not knowing about this JNI forum, so thanks for your patience.

  • Model interface toolkit (MIT) code generation failes in simulink

    Hello,
    I'm running into an odd Simulink Coder failure and I can't tell if this is due to an NI/MIT but or a general Simulink Coder issue.
    System:
    Windows 7
    Matlab/Simulink R2013b w/ Simulink Coder
    MIT 2013 SP1
    System target file = "NIVeriStand_VxWorks.tlc"
    Not that we even get to this point but... my "WindRiver GNU Toolchain Setup Path" is properly configured to: c:\gccdist\supplemental\setup-gcc.bat
    The attached image shows the error I'm getting:
              "Error: Invalid character in: 'SMA_model/SMA Driven Arm/wire/Heat Transfer Model/ ', exiting code generation. The name cannot end with / character".
    In the image you can see that the "Heat Transfer Model" subsystem in fact does not have a "/" in the name. 
    Has anyone else ever run into this code generation problem before? If so, any suggestions on how to get around it?
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    SimulinkCoderError.png ‏92 KB

    That error is actually being reported by Simulink® before the build process begins. I'm guessing you would see it regardless of the TLC file you choose. Interestingly, in my tests here Simulink® doesn't allow me to leave a subsystem with a "/" at the end of the name. It automatically changes the name back to what it was before I tried to add the "/." That same error you see in the compilation window is displayed in the command line output when I attempt it. It looks like I'm running a different version than you though. 
    The screen shot doesn't really confirm the subsystem block name itself, at least the hierarchy at the top of the window appears to have parsed out all backlashes. Could you provide a screenshot of the heat transfer model subsystem block? 
    MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc.  All other trademarks are the property of their respective owners.
    Applications Engineer
    National Instruments
    CLD Certified

  • Excel Error Code Handling

    Hi all,
    I am writing a program that interacts with Excel. For debugging purposes I want to display messages that correspond to the error codes. Has someone already written a function that does this? I ask, because I imagine there are too many error codes to quickly write this up.
    Thanks in advance,
    Turbo
    Solved!
    Go to Solution.

    Does a function like this answer your question?
    // ReportAppAutomationError
    void ReportAppAutomationError (HRESULT hr, int line)
        char errorBuf[512];
        if (hr < 0) {
            CA_GetAutomationErrorString (hr, errorBuf, sizeof (errorBuf));
            sprintf (errorBuf, "%s (line %d)", errorBuf, line);
            MessagePopup ("Severe error", errorBuf);
        return;
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • HI it is related to file interface ,any one please send related code to me.

    now am sending total object ...
    1.1.     Related Business Process Information
    Vendor invoices enter DISCO System electronically and then either go through the 2 -way match or 3-way match process. Since DISCO System does not handle the actual payment processing, the invoices with successful match will be ready to transfer to Enterprise SAP to generate payments.
    The purpose of this interface is to detail the requirements of sending vendor open invoices to Enterprise SAP.  Payments are then processed based on the approved invoices that transfer over from DISCO.
    1.2.     General Description of Functionality
    All Disco approved vendor invoices will be mapped into this interfaceIFIC1001 (Interface  Vendor Invoices to Enterprise SAP) (FI001 Incoming AP Invoices to TLand). This outbound file is a flat file and the format is in TXT. The file name will be load_payable_1516.yyymmddhhmmss.txt (replacing yyyymmddhhmmss with date and time).  This is a nightly interface from DISCO to Enterprise SAP via FTP shuttle.
    Business Requirements:
    Enterprise SAP specific fields for interface purposes:
    •     Company Code
    •     Business Area
    •     GL Account
    •     Profit Center
    •     Cost Center
    •     WBS
    •     MPM Issue
    •     Destination Geography
    •     Distribution Channel
    •     COPA customer
    •     Tax Code
    2.     Functional Specification Details
    2.1.     Detailed Functional Requirements
    2.1.1.     Functional Step 1
    •     Read data in table BSIK
    o     If data in table then go to 2.1.3 Functional Step 3
    o     If no data in table then proceed to 2.1.2 Functional Step 2
    2.1.2     Functional Step 2
    Notification message send to IT Support and AP Account when BSIK is empty. Then end the program.
    Error Message
    Empty File no FTP Transfer
    2.1.3    Functional Step 3
    Create Control Header record when BSIK has data.
    •     The Control Header Record is the first record in the interface file. 
    •     Only one Control Record is required in each file. 
    •     Maximum number of 8000 lines per interface file. 
    •     Several interface files will be created if there are more than 8000 lines, however, no document should ever be split between 2 files, only whole document processing.
    2.1.4   Functional Step 4 
    Create Pay Header
    •     Use the following fields from BSIK to map the Pay Header data in the interface file.
                        Company code               BSIK-BUKRS
                        Vendor                     BSIK-LIFNR
                        Fiscal year                            BSIK-GJAHR
                        Document #               BSIK-BELNR
                        Document Date               BSIK-BLDAT
                        Currency                            BSIK-WAERS
                        Amount in LC (local currency)     BSIK-DMBTR
                        Payment Terms               BSIK-ZTERM
                        Reference                                         BSIK-XBLNR
                Debit/Credit Indicator                  BSIK-SHKZG
                Business Area               BSIK-GSBER
    •     No more than 950 lines per header, if lines exceed 950 then need to create a new header, ensuring that the document is fully balanced (Debits = Credits)
    o     If the value of BSIK- SHKZG = ‘H’ then
    &#61607;     Map ‘-’ to the subfield SIGN of the Amount_ Document _T field
    &#61607;     Assign ‘C’ to the subfield DRCR of the Amount_ Document _T field
    o     If the value of BSIK- SHKZG = ‘S’ then
    &#61607;     Map ‘+’ to the subfield SIGN of the Amount_ Document _T field
    &#61607;     Assign ‘D’ to the subfield DRCR of the Amount_ Document _T field
    o     Save the total amount of each invoice in credit and debit separately.  This data will need to map into the Control Trailer Record (see 5.5)
    Create Pay Line Record
    •     Read following fields from BSIK and use as input fields for table BSEG
    Company code               BSIK-BUKRS
    Document #               BSIK-BELNR
    Fiscal year                       BSIK-GJAHR
    •     When BSEG-LIFNR &#8800; BSIK-LIFNR; Group details by  Document number (BSEG-BELNR), Company code (BSEG-BUKRS), Business Area (BSEG-GSBER), Profit Center (BSEG-PRCTR), Cost Center(BSEG-KOSTL), G/L Account (BSEG-HKONT), Destination Geography (BSEG-ZZDESTGEO), Distribution Channel(BSEG-ZZDIST), MPM (BSEG-ZZISSUE), and COPA Customer (ZZSOLDTO), WBS Element BSEG-PROJK***, Internal Order BSEG-AUFNR, Dr Cr Indicator BSEG- SHKZG
    WBS Element logic – In BSEG-PROJK the WBS Element is stored as 8 digit #, we need to take this number and convert it to the 24 char # (PRPS_POSID), as follows:-
    BSEG-PROJK = PRPS-PSPNR = PRPS-POSID
    e.g.
    BSEG-PROJK = 00000124
    PRPS-PSPNR = 00000124 = PRPS-POSID = HE-000001.04.00001
    In DISCO we are using WBS Elements starting with an Alpha char (HE = Home Entertainment, DI = DIS, AS = ASAP), and in TLand they are using all numeric id’s.
    For the summarization:-
    o     If the WBS element is an Alpha (i.e. DISCO) then get the cost center (PRPS-FKSTL) from the wbs element and summarize by the cost center.
    o     If the WBS element is numeric (TLand) then summarize by the WBS Element.
    •     The fields in BSEG are mapped in the interface as follows:
              MPM Issue                                                 BSEG-ZZISSUE
             Distribution Channel                                     BSEG-ZZDIST
             Sold To Customer (COPA Customer)        BSEG-ZZSOLDTO
              Destination Geography                               BSEG-ZZDEST
              Cost Center                                                 BSEG-KOSTL
              Profit Center                                                BSEG- PRCTR
              Business Area                                             BSEG-GSBER
              G/L Account                                                BSEG-HKONT
              Amount in Local Currency (Summarized)   BSEG-DMBTR     
              Dr/Cr indicator                      BSEG-SHKZG
    o      If the value of BSEG-SHKZG = ‘S’ then
    &#61607;     Map ‘+‘ to the subfield SIGN of the Amount_Extended_T field
    &#61607;     Assign ‘D’ to the subfield DRCR of the Amount_Extended_T field
    o     If the value of BSEG- SHKZG = ‘H’ then
    &#61607;     Map ‘-‘ to the subfield SIGN of the Amount_Extended_T field
    &#61607;     Assign ‘C’ to the subfield DRCR of the Amount_Extended_T field
    •     Process all documents from table BSIK
    2.1.5      Functional Step 5
    Create the Control Trailer Record that contains the total credit, total debit, and total line processed as the last record of the interface.
    2.1.6    Functional Step 6
    Send acknowledgment message to IT Support and AP Accountant for successful transmission and save the interface file on the UNIX server.
    Successful FTP Transfer for FI001
    Remote file is load_payable_1516.yyyymmddhhss.txt
    2.1.7   Functional Step 7
    Clearing Transaction – this is to clear table BSIK, document by document. One transaction will be created by each Document number by Vendor. We must only clear the documents which are included in the interface.
    So, in BSIK take the first document (BSIK-BELNR) and use transaction code F-44 in order to clear this document from table BSIK and transfer it to table BSAK. Process all the documents in BSIK, until BSIK is empty.
    SAP Transaction code     F-44 – Clear Vendor
    Screen     Clear Vendor: Header Data
    Sample document(s)     
    SAP system/Client for sample docs     DR1 (030)
    Step 1 – using document # (BSIK_BELNR) as the key, find the following date for the selection screen
    Input Field description     Map from field     Default value (if applicable)     Sample value
    Account     BSIK-LIFNR          100000
    Clearing date     SY_DATUM          10/06/07
    Period          Default from date     1
    Company Code     BSIK-BUKRS          1119
    Currency     BSIK-WAERS          USD
    Under ‘Additional Selection’ select the ‘radio’ button for the Document number.
    Press Enter.
    Step 2 – input following data
    Input Field description     Map from field     Default value (if applicable)     Sample value
    Document Number From     BSIK-BELNR          400000010
    On menu bar select ‘Go to’ and select ‘G/L Item Fast Entry’
    Step 3 – input following data
    Input Field description     Map from field     Default value (if applicable)     Sample value
    PK (Posting key)     BSIK-SHKZG          50
    Account          APCLEARING     APCLEARING
    Amount     BSIK-DMBTR          500.00
    Business Area     BSIK-GSBER          135
    Company Code     BSIK-BUKRS          1119
    Rules for Posting Key
    If BSIK-SHKZG = H then value to enter = 50
    If BSIK-SHKZG = S then value to enter = 40
    Then click ‘Process Open Items’
    Clear any value in field DF05B-PSSKT (Cash Discnt) = make blank
    Amount Entered (RF05A-BETRG) = Assigned (RF05A-NETT)
    SAVE document and new ‘cleared document’ will be assigned.
    Step 4 – This transaction should be repeated until all entries in the interface file are cleared.
    4.1.5.     Interface File Layout mapping
    The interface file contains four types of records:
    •     Control Record: This is the first record on every transmission file.
    o     Only one Control Record is required in each file. 
    o     Maximum number of 8000 lines per interface file. 
    o     Several interface files will be created if there are more than 8000 lines
    •     Pay Header: This equates to BSIK-BUZEI line 001 of each document.
    o     A new header line should be created whenever 950 lines of Pay Line are written
    o     The records of file are broken into several headers if lines are exceeded 950.
    •     Pay Line: Detailed line containing the summarized data (see 2.1.4).
    •     Control Trailer: This contains totals of the whole file. Add this record at the end of file.
    Message was edited by:
            Naveesh surapureddy

    Hi,
    You can use this FM to get the list of all files
    TMP_GUI_DIRECTORY_LIST_FILES
      DATA: TBL_FILES LIKE SDOKPATH OCCURS 10 WITH HEADER LINE,
            TBL_DIRS LIKE SDOKPATH OCCURS 10 WITH HEADER LINE.
      CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
           EXPORTING
                DIRECTORY  = P_DIRECTORY
                FILTER         = 'Test*.Txt'   "<< restricts to only TEXT files begining with Test
           TABLES
                FILE_TABLE = TBL_FILES
                DIR_TABLE  = TBL_DIRS.
    After getting the files in the TBL_FILES... loop the table and read the files with GUI_UPLOAD FM
    Thanks,
    Sankar M

Maybe you are looking for

  • I have a hp deskjet 932c and i can't get it to print in color.

    Test page colors are fine.  Ink levels are fine.  I calibrated, cleaned, and aligned.  There is no setting for color copies that I can find.

  • Cant work out how to convert iMovie DV into ProRes

    Hi, I have a load of DV footage captured with iMovie. It does not play properly so I was advised to convert to proses. I selected the clips and went into Media Manager and selected Prores 422 (LT) PAL 48Mhz. It seemed to simply copy not reincode the

  • How do I fade in/out a single track?

    I thought this would be pretty basic: to fade in and then fade out a single track, but I can't seem to find a way? Is this possible in Garageband? Or should I be looking at Logic Pro 9?

  • Report of Stolen Software

    Hello, I have been a long-time user of Photoshop, purchased CS when I took Photoshop training after attending one of Scott Kelby's seminars in San Francisco.  I also purchased a copy of Photoshop Elements and used ito tutor and teach Spanish-speaking

  • Bandwidth between server and client

    HI What is the minimum bandwidth can be allocated between server and client?