Call mysql C API function

Hi all,
       I just have one question, how can I use mysql C API function for my labview program? I program it use dll call, but I use command "show processlist;"in mysql database,can see this process yet.So ,anybody can help me to solve this?
      Thanks,
      also , anyone have example,show...I am very appreciate...

Do you really want to use a C API to do that? 
I don't see the need for a C API or a call to a DLL.  I find it more logical to connect to your MySQL DB Server and run "show processlist" as an SQL Statement.
but if you insist on using a DLL, I am guessing this link will help you:  Using Existing C Code or a DLL in LabVIEW

Similar Messages

  • How to call api functions

    Hi
    I have a problem in form6i.i wrote a c++ program calling forms bjects and changing properties .The code gets complied(let file name be some.cpp file).now how can i use this file .where should i use this file .please replay
    from
    Pradeep

    gang lee (guest) wrote:
    : sir:
    : For some reasons,I want to call the windows api functions
    : from developer/2000 2.1,I want to know how to do that?
    : thanks for your help!
    There are two ways to invoke windows api functions: First, and I
    believe the simplest of the two is the Forms package ORA_FFI,
    which stands for Foreign Function Interface. This allows you to
    load the dll and call any function in that dll as long as its
    arguments uses standard data type (e.g. int, floats, chars), but
    it does not support complex datatype such as structures and
    pointers to structures.
    Thoe other alternative is writing your own C function in a dll
    and calling the windows api from the user exit. This is more
    flexible as it can call functions that pass complex data types.
    Either approach will require time and tinkering to get it to
    work. A good knowledge of C would be helpful.
    null

  • Pointers in Labview calls to Win32 API

    I want to  show a browse for folder dialog on the screen with the help of a call to shell32.dll
    function :
    LPITEMIDLIST SHBrowseForFolder(      
        LPBROWSEINFO lpbi
    browseinfo looks like this:
    typedef struct _browseinfo {
        HWND hwndOwner;
        LPCITEMIDLIST pidlRoot;
        LPTSTR pszDisplayName;
        LPCTSTR lpszTitle;
        UINT ulFlags;
        BFFCALLBACK lpfn;
        LPARAM lParam;
        int iImage;
    } BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO;
    Following the instructions in the help file of labview, every variable should be converted to a string and concatenated to obtain a binary structure comparable with the wanted structure  Problem  is that there are pointers inside this structure. Pointers to string should first be resolved. How can I get pointers to strings etc.?
    Or even a solution for passing such a structure.

    vlipje wrote:
    I want to  show a browse for folder dialog on the screen with the help of a call to shell32.dll function :   LPITEMIDLIST SHBrowseForFolder(      
        LPBROWSEINFO lpbi
    );   browseinfo looks like this:   typedef struct _browseinfo {
        HWND hwndOwner;
        LPCITEMIDLIST pidlRoot;
        LPTSTR pszDisplayName;
        LPCTSTR lpszTitle;
        UINT ulFlags;
        BFFCALLBACK lpfn;
        LPARAM lParam;
        int iImage;
    } BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO;   Following
    the instructions in the help file of labview, every variable should be
    converted to a string and concatenated to obtain a binary
    structure comparable with the wanted structure  Problem  is
    that there are pointers inside this structure. Pointers to string
    should first be resolved. How can I get pointers to strings etc.? Or even a solution for passing such a structure.
    Unless
    you are a total C crack (and then you wouldn't have asked here I
    think), forget about doing this in LabVIEW alone. There are several
    things here why it really will be difficult or even impossible to get
    away here without a wrapper DLL.
    1) LPCITEMIDLIST is a dynamically allocated
    special structure used by shell32 to represent paths. To create such
    PIDLs you have to call at least one more shell32 API and afterwards one
    to dispose of it. The structure of a PIDL is not really documented so
    even if you wanted you couldn't create it on your own in LabVIEW.
    2) BFFCALLBACK is a callback function, that
    means a function pointer. While with lots of magic and all kinds of
    very involved tricks you could create and manage all kinds of pointers
    in LabVIEW by calling numerous extra API functions through the Call
    Library Node, this is something you can't really create in LabVIEW
    without creating an extra VI that is placed into a DLL and some very
    special code. Unless you know function pointers in C to a very intimate
    level this simply is not possible and I'm not going to try to explain
    how it could be done anyhow since writing that would give an essay of
    many pages and still be not understandable unless you really know a lot
    about C.
    3) LPARAM is a
    pointer you use to pass context specific user data to the function
    which is then passed back to your callback function as one of the
    parameters.
    So simply said if you can't or don't want to create a wrapper DLL then
    you simply don't want to deal with these difficulties on a LabVIEW
    diagram level and if you know how to create a wrapper DLL you will
    certainly choose for that solution as it is a lot simpler now and
    especially in the long run.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • CProjects API Functions

    Hi All,
    Is anyone aware of API functions for the cProjects suite? (i.e. cFolders have CFX_API_* function set).
    I'm working with SAP cProject Suite 3.10 (based on 640) and need to be able to read project info such project type, status, description, etc... from a remote system.
    Thanks!
    Roman D.

    Try CFX_BI_RI_CF_SELECT_FOLDER 
    CFX_BI_RI_UTIL                 cFolders: Rel. Ind. Util. Functions                         
    CFX_BI_RI_UTIL_AFTER_RFC       Check for errors after call of cFolders API function        
    CFX_BI_RI_UTIL_CF_DOC_SET_DEST Set R/3 destination document for cFolders document given    
    CFX_BI_RI_UTIL_CF_DOC_SET_PATH Set path (col., area, path) for cFolders document given     
    CFX_BI_RI_UTIL_CF_DOC_TO_R3    Select R/3 documents for cFolders documents given           
    CFX_BI_RI_UTIL_CHECK_RFC_DEST  Check RFC destination to cFolders system                    
    CFX_BI_RI_UTIL_CREATE_DMS_DOC  Create DMS document, copy obj. links from template          
    CFX_BI_RI_UTIL_DEL_TRAIL_BLANK Delete all blanks ' ' at the end of a string                
    CFX_BI_RI_UTIL_DOC_2_ORIGINALS create list of original files out of documents list         
    CFX_BI_RI_UTIL_FILE_FROM_CF    Copy one file from cFolders system                          
    CFX_BI_RI_UTIL_FILE_TO_CF      Copy one file to cFolders system                            
    CFX_BI_RI_UTIL_GET_AL_VALUES   Get alias values                                            
    CFX_BI_RI_UTIL_GET_AREA_LIST   Get list of areas within one competition                    
    CFX_BI_RI_UTIL_GET_COL_LIST    Get list of collaborations within one folder                
    CFX_BI_RI_UTIL_GET_DOC_LIST    Get list of documents within one folder                     
    CFX_BI_RI_UTIL_GET_FOL_LIST    Get list of folders within one folder                       
    CFX_BI_RI_UTIL_GET_ICON_F_TYPE Determine Icon for cFolders object type given               
    CFX_BI_RI_UTIL_GET_SEARCH_LIST Get search list from cFolders system                        
    CFX_BI_RI_UTIL_REDLINE_FROM_CF Redline layer from cFolders to the backend system           
    CFX_BI_RI_UTIL_REDLINE_TO_CF   Redline layer from the backend system  to cFolders          
    CFX_BI_RI_UTIL_SET_B_AL_VALUES Set alias values for Backend System                         
    Thanks
    Message was edited by: Saquib Khan

  • Labview and Mysql C API

    Have someone been able to use Labview's Call Library Function to call Linux Mysql C API successfully?
    Thanks

    I have a mysql tookit which works well under linux.
    if intrest it ,I can mail you a copy .

  • Internal Error occurred while calling the ProcessDPCommands API

    We have installed Business Objects XI  with MySQL. We are getting following error when we click on view query on the WEBI Reports
    " Internal Error occurred while calling the ProcessDPCommands API  Error WIS 30270".
    When we change the CMS database to ORACLE everything works fine it looks like some issues when CMS database is MYSQL
    Please hep to fix this problem
    Installation is on Solaris 10
    Edited by: AshishDatar on Nov 6, 2009 3:00 PM
    Installation is on Solaris 10

    did you check whether universe connection is pointing to the correct db?The following url might be helpful:
    [http://www.forumtopics.com/busobj/viewtopic.php?t=52355&view=previous]

  • How to refresh the text which is display by windows API function 'findwindow' 'getdc' 'textout'!

    i use the windows api function to dynamelly display text on the frontpanel ,it successed ,but when you move the scrollbar to the left ,right ,top ,bottom,the text will be disappear!! i think it is a very difficulteed problem .in my around ,no one can do! who can help me!
    Attachments:
    textrefresh.vi ‏21 KB
    auto_appear_scroll.vi ‏126 KB

    Very cool!
    It looks like you are using the same functions that LV uses to refresh the screen. Thos functions only let you update within the window you specify. This is why your updates stop at teh edge of the window.
    Normally LV will watch the scroll bar position and re-paint the screen to reflect an scroll bar postion changes. Since you are by-passing LV, you can not rely on LV to refresh your screen when the scroll bars move.
    At this point I can offer two suggestions.
    1) Continue with the approach you started and start adding all of the code required to watch the scroll bars and re-paint as indicated.
    or
    2) Look into the LV Picture control. Based on what you have done using dll calls I would guess that you could probably figure how to do the
    same thing using a picture control. The Picture (being a LV native object) is fully supported by LV so the scrolling work is already done and working. The picture control will let you draw lines, insert text, etc. Take a look at the "Robot Arm" example. It should get you started.
    Finally, the Picture control is pure "G" so it should be platform independent.
    Otherwise let me commend you on your example. You say no one else where you are can do what you have done. After looking at your example, I am not suprised. There are few people in the world that can do what you have done.
    Great work!
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • JDBC Adapter Call a Table-Valued Function

    Hello to all,
    we're using the JDBC adapter to access a MS SQL-Server 2008.
    I have to call a "Table-Valued Function" via JDBC.
    Has anybody done this?
    I've tried to call it like a stored procedure with the following:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyz.de/pi/mav/kantine">
         <fLGBuchungenSAP>
              <Tablename action="execute">
                   <table>dbo.fLGBuchungenSAP</table>
              </Tablename>
         </fLGBuchungenSAP>
    </ns1:LGBuchungSAP_REQ>
    but I get following error:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser:
    Error when executing statement for table/stored proc. 'dbo.fLGBuchungenSAP' (structure 'fLGBuchungenSAP'): com.microsoft.sqlserver.jdbc.SQLServerException:
    Fehler bei der Anforderung für 'fLGBuchungenSAP' (Prozedur), weil 'fLGBuchungenSAP' ein Tabellenwertfunktion-Objekt ist.
    Calling with a select-statement also fails:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyz.de/pi/mav/kantine">
         <STATEMENT_NAME>
              <Tablename action="SELECT">
                   <table>dbo.fLGBuchungenSAP(&apos;20101101 00:00:00&apos;, &apos;20110101 00:00:00&apos;)</table>
              </Tablename>
         </STATEMENT_NAME>
    </ns1:LGBuchungSAP_REQ>
    with error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!-- Eingangs-Message -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
         <SAP:Category>XIAdapterFramework</SAP:Category>
         <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
         <SAP:P1></SAP:P1>
         <SAP:P2></SAP:P2>
         <SAP:P3></SAP:P3>
         <SAP:P4></SAP:P4>
         <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'dbo.fLGBuchungenSAP('20101101 00:00:00', '20110101 00:00:00')' (structure 'STATEMENT_NAME'): java.lang.IndexOutOfBoundsException: Index: 4, Size: 4</SAP:AdditionalText>
         <SAP:Stack></SAP:Stack>
         <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Please advice
    Regards
    Christian

    Hello to all,
    I solved the problem.
    You have to call it this way:
    <ns1:LGBuchungSAP_REQ xmlns:ns1="http://xyzde/pi/mav/kantine">
         <STATEMENT>
              <LGBuchungSAP action="SQL_DML">
                   <access>select * from dbo.fLGBuchungenSAP(&apos;$DatumVon$&apos;, &apos;$DatumBis$&apos;)</access>
                   <key>
                        <DatumVon>20101101 00:00:00</DatumVon>
                        <DatumBis>20110101 00:00:00</DatumBis>
                   </key>
              </LGBuchungSAP>
         </STATEMENT>
    </ns1:LGBuchungSAP_REQ>
    But I get the next error: "A result set was generated for the update task"
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
         <SAP:Category>XIAdapterFramework</SAP:Category>
         <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
         <SAP:P1></SAP:P1>
         <SAP:P2></SAP:P2>
         <SAP:P3></SAP:P3>
         <SAP:P4></SAP:P4>
         <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LGBuchungSAP' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Es wurde ein Resultset für den Aktualisierungsvorgang generiert.</SAP:AdditionalText>
         <SAP:Stack></SAP:Stack>
         <SAP:Retry>M</SAP:Retry>
    </SAP:Error>

  • How to call the C/C++ functions in Java

    Hi,
    We have well written business API functions in C/C++.We have to use the functions in our Java programme using JNI.We do not have the rights to change or modifiy the already existing C/C++ functions,but we can create any kind of proxy implementation for the existing functions and call the programme from Java.Is it possible to do that using JNI ?? .Then how we will do that??
    Kindly suggest me (examples or best tutorial links).
    Thanks and Regards
    LAL

    1. I suggest you do a google search for "wrapper jni generator".
    (If you search back through this forum you will see that lots of people have asked how to get wrappers for existing libraries. )
    2. If you have a small number of functions you want to call, then you can write a wrapper dll by hand, matching the JNI inreface requirements. The Sun website has a tutorial on JNI, including creating wrappers.

  • Call pl/sql API from jsp portlets

    HI ALL!
    I need to ask from java developers for portal application,How can i call pl/sql API from my jsp portlets,What enhancements in code should i have to follow in addition to use JDBC,I read in FAQ abt portal some thing abt pl/sql wrapper but that was for complex scenarios ,what if my requirement is to call only API functions for contentareas,items,previleges etc.I really need help.
    thx
    Alizeh

    Hi
    thanks for ur reply but where were u a month ago,i really started to think that my question was enough stupid not to be answered.At present i have done with jdbc and pl/sql calls ,current concern is for sessions as i see that session id remains same when one user logs out and another logs in(if browser is not closed), same sessionid persists in my java portlet for both users.Is this an expected behaviour?? but yes new session id appears if browser is closed.
    .session clear for both application and sso after logout is checked
    .broser is set to check for new version each visit for the page
    portal version is 3.0.9.8.0 ,we r planning patch to 3.0.9.8.3 soon
    once again thx
    Alizeh

  • Call to WPG_SESSION API fails with ORA-28231

    Hello,
    9ias 1.0.2.2.1 on SusSE 7.2 with 9.0.1 server.
    When executing http://<server>:<port>/pls/portal30/portal30.home apache logs the error:
    [warn] mod_plsql:Stale connection due to Oracle error 28231
    [error] mod_plsql: /pls/portal30/portal30.home HTTP-503 ORA-28231 <B> Call to WPG_SESSION API failed.</B>
    What is it that I can check here?
    Note:173529.1 says:
    Error: ORA-28231 (ORA-28231)
    Text: no data passed to obfuscation toolkit
    Cause: A NULL value was passed to a function or procedure.
    Action: Make sure that the data passed is not empty.
    Any pointers are greatly appreciated.
    Anatoliy

    At what point do you see this error?
    e.g., On initial page request, or after login, etc.
    Is there any more information in the error_log?
    It looks like there's no data in the cookie when trying to decrypt it.

  • Is there api function to change access mode and set a passcode to recording in meeting?

    Is there api function to change access mode and set a passcode to recording in meeting?
    When I'm trying to use "action=acl-field-update&acl-id=SCO_ID_RECORDING&field-id=meeting-passcode&value=MY_PASSC ODE" it just clean the password and do not set it or change.
    And "action=permissions-update&acl-id=SCO_ID_RECORDING&principal-id=public-access&permission- id=view-hidden" do not work too.

    There is not a specific API for doing this. This was discussed in the other Connect forum here, Adobe Connect User Community.
    For you call I would make the second part differently. Instead of 'field-id=meeting-passcode&value=MY_PASSCODE' I would call 'meeting-passcode=MY_PASSCODE' and see if that worked better.

  • Looking for Logoff API functionality from NWA

    Hi ,
    I have one web application which is deployed on NW 720 system . I have applied security contraint in this web application so when i try access the url pattern it ask user for credentials . But if i close this browser and open a new session then it never ask for user credentials . I guess it takes the user cookie information to re login .
    The requirement from my side is to find the API from nwa which can be called during the _jspDestroy functionality so that current user can log off before the broswer is closed . Can you help me here to find that API ?
    Best Regards,
    Mitul

    Hi,
    Refer below link if it helps:
    http://help.sap.com/saphelp_nw70/Helpdata/en/44/aada5230be5e77e10000000a155369/frameset.htm
    Best Regards,
    Rupali

  • Call front-end API from WD ABAP

    Hi experts,
      I'm trying to call font-end API (Destination: SAP_SSFATGUI) from webdynpro. It giving me communication_error but if i call it from ABAP its working. Pls help.

    Hi,
      I try to call API namely ssfrfc which is provided by SAP and located in SAPGUI dir in my desktop. You also will have this API program if you installed SAPGUI. When calling this API using call function....destination 'SAP_SSFATGUI'  via WebDynpro ABAP it giving me communication_error . However no problem when using normal ABAP. Below are the coding.
    METHOD onactionact_exe .
    DATA:   ostr_output_data   TYPE  ssfparms-outtext,
            ostr_output_data_l TYPE  ssfparms-outtextlen,
            crc                TYPE  ssfparms-ssfcrc,
            lv_sysubrc         type sysubrc.
    call C function 'SSFVERSION'
      CALL FUNCTION 'SSFVERSION' DESTINATION 'SAP_SSFATGUI'
        IMPORTING
          ostroutputdata        = ostr_output_data
          ostroutputdatal       = ostr_output_data_l
          crc                   = crc
        EXCEPTIONS
          communication_failure = 1
          system_failure        = 2.
      lv_sysubrc = sy-subrc.
        write:/ OSTR_OUTPUT_DATA,
              / OSTR_OUTPUT_DATA_L,
              / CRC.

  • How to call this dll point function by labview

    Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))
    Sets up callback function for getting component status.
    Parameters:
    * CompStatusCallback – entry point for callback function.
    Return Value:
             None.

    left wrote:
    Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))
    Sets up callback function for getting component status.
    Parameters:
    * CompStatusCallback – entry point for callback function.
    Return Value:
             None.
    You don't. This is the callback protoype that would be passed as parameter to another API and as such never will be called by the caller of that API but instead be provided by that caller!
    And LabVIEW does not support function pointers at all, so you really can't do this.
    The only solution is to write a wrapper function in your DLL or in a separate DLL that translates between this interface and some more event oriented LabVIEW functionality such as user events, but unless you do know C to a fairly good level, you should probably leave that to someone else.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-26-2007 04:21 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Xf86-video-ati: system freezes after changing power profile to low?

    I am running multihead with awesome-wm and the latest xf86-video-ati drivers (not from testing). when i change the power method to profile and change the power profile to low, the screen flashes, my temps start to go down and everything seems normal.

  • Rounding off PR quantity in Po

    hi to all can any one tell how the rounding of quantity field takes place while converting a purcahse requisition to purcahse order it is through a badi or  user exit please provide me a badi or userexit where the rounding takes place. thanks & regar

  • JDeveloper Integration With CollabNet Team Forge

    Dears I would like to integrate Jdeveloper with Collabnet Team forge platform. Is this integration currently supported. If yes are there any materials to support in configuring the integration Best regards Mohamed Chargui

  • A Swing GUI problem.

    There are a JTextfield for entering an integer, a JButton that can be used to square the integer, and another Textfield to show the result. Two questions: 1) After typing the integer, I want to enter Enter-key to get the result, instead of pressing t

  • Advanced overlay problem with white

    I'm trying to create an advanced overlay using all four grayscale shades. All of the color mapping is working correctly except that bringing up the white opacity maps the color over areas that are transparent in the .psd file. In other words in the o