*.lsb in MSVC++6

I am trying to generate a CIN for the following example C code (mult.c)
* CIN source file
#include "extcode.h"
CIN MgErr CINRun(float32 *A, float32 *B, float32 *AB);
CIN MgErr CINRun(float32 *A, float32 *B, float32 *AB) {
*AB = *A * *B;
return noErr;
C:\Program Files\National Instruments\LabVIEW 6\cintools\
in the Additional include directories
for code generation selected multithreaded DLL and 1 byte
and on custom build typed the following for commands
"C:\Program Files\National Instruments\LabVIEW 6\cintools\lvsbutil" "$(TargetName)" -d "$(WkspDir)\$(outDir)" (all in one line)
and in the output typed
$(OutDir)$(TargetName).lsb
I also made sure that I have settings as All configuration
when i build the dll
the status is
mult.dll error(s)0 ,warnings 0
but there is no mult.lsb file created.
i have followed the steps given in the manual using External Code.july edition .
i am using MSVC++ version6 and my Labview version is 6i.
pls help,
regards
sithara

sithara,
I also follwed the directions on page 3-14 of the Using External Code in LabVIEW manual except not including the Win32 directory instructions since this directory has been removed in LabVIEW 6.0.0 and above. I used the same set of instructions that you did as well. Are you building for the right configuration? Did you set the settings for debug, but are building under release? Also, make sure to include the four files (cin.obj, labview.lib, lvsb.lib, and lvsbmain.def). Without these files, the .lsb file will be created, but it will not work. My guess is that you are building in the wrong configuration because you should see a message that the custom build went successfully and you do not show that message in your post.
Randy Hoskin
Applications Engine
er
national Instruments
http://www.ni.com/ask

Similar Messages

  • Create lsb file

    i have a problem in creating lsb file using MSVC++ version 6.my labview version is 6i.
    pls let me know where i can find the resources.
    xxxx

    Here are a couple of resources that you might find useful:
    How Do I Generate CIN Code in Microsoft Visual C++ 6?
    How to build a CIN code resource (.lsb file)
    - Elton

  • How can I create an application in MSVC 6.0 to access my FieldPoint modules with CVI 5.0 libraries?

    I have an application in CVI 5.0 that works. I am trying to export that so I can develop in MSVC. I need none of the UI provided in CVI, all I need are the simple FieldPoint commands provided in FieldPoint.obj. I have been stumped on this for weeks. I would write my own OPC client but the interface isn't even documented on what commands I would send if I did have an interface. I would prefer just to use the CVI libraries in MSVC 6.0. When I call the FP_Open function the program crashes with an RtlSizeHeap error.
    Thanks,
    Chad

    In theory, creating a dll that encapsulates the FieldPoint functions should work in MSVC. However, National Instruments has not tested MSVC interface, nor have we publicized that this type of setup will work, therefore making support unavailable. The other reason for why we do not offer support of FieldPoint in MSVC is that we have not seen a demand for such an interface. Therefore, I recommend that you create an OPC Client that communicates with the FieldPoint OPC Server. One example of such an OPC Client in MSVC is to use Datasockets, found in ComponentWorks++. You can find this example at the following web site:
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&8FEAB5F73CFB68278625683A000B06ED&cat=7CDA3E51FEFC4AA2862568B80071A1E2
    If you are using the
    serial network module (FP-1000/1001), you can communicate with the FieldPoint modules using the Optomux protocol. For a complete listing of the Optomux commands refer to the FP-1000/1001 Programer Reference Manual located at the following web site:
    http://digital.ni.com/manuals.nsf/caba5d53e9b015a186256793004eebb7/bf97516ca18eee728625665e0063594e?OpenDocument
    Best Regards,
    JohnM

  • Help needed using NiReport in MSVC (using C, not C++/MeasStudio)

    Hi, folks!
    I develop my apps writing in C, using MSVC (not Measurement Studio/C++). I use LabWindows to design the UI and use the external compiler support to generate the UI's object file, which I link into my program. I've had great results doing this; I link to the appropriate .lib and the corresponding .dll is in the apps root folder.
    However, I'm unable to get this to work for using the NiReport library. I'm trying to build the nirsample app which came with my LabWindows installation but the link step fails because it cannot find the exported functions required (NI_Report_xxx).
    There is a utility that comes with the MSVC installation called Depends, which allows one to view the imported and exported fuinctions in a .dll file. When I load up the NiReports.dll, it only exports four functions: DllCanUnloadNow, DllGetClassObject, DllRegisterServer and DllUnregisterServer. Where are all the NI_Report_xxx functions? I think if I can find the proper .dll, I'll be successful in building my app and will be able to go on with my life... 
    Thanks in advance for any help.
    [update]
    I'm almost there! I'm using nirsample.c and nireport.obj in my test compile and it returns a link error saying it it has an unresolved external symbol, _StrDup@4. Ok, I know that StrDup is a function found in the CVI_Toolbox and I've included that in the libraries used to link against. I had a similar problem using the Excel automation functions and was able to get around it by including the source file, excel2000.c. So, if I could just get hold of the source for nireport.obj, I think that would solve my problem. However, unlike most of the other toolbox extras, this one does not include its source.
    [/update ]
    'til next we type...
    HAVE FUN!! -- Jesse 

    Michael,
    Thanks for the quick response. A long time ago I rebuilt Toolbox as a dll; it works fine that way for all my other projects until this one. However, I tried your suggestion and it led to another error:
    --------------------Configuration: NirSample - Win32 Debug--------------------
    Compiling...
    toolbox.c
    c:\program files\microsoft visual studio\vc98\include\windef.h(252) : error C2371: 'HINSTANCE' : redefinition; different basic types
            g:\extlib\include\cvidef.h(144) : see declaration of 'HINSTANCE'
    Error executing cl.exe.
    NirSample.exe - 1 error(s), 0 warning(s)
    My guess is this is because of a conflict in how the various include files are being loaded and I'm not sure how to fix that. (I do not have that problem when using toolbox as a dll for my other projects.)
    For the sake of completeness, I've attached the MSVC project file (nirsample.dsp) so you can see how I've got this set up.  Oh, and I'm using MSVC 6.0 for coding and LabWindows 6.0 for ui design. (I don't have a CVI2009 directory.)
    Jesse
    p.s.: Your website won't let me upload the dsp file (the file extension is not valid), so I've renamed it NirSample.txt 
    Attachments:
    NirSample.txt ‏5 KB

  • How do i resolve this....the program cant start because MSVC.dll is missing from your computer.ive uninstaled and reinstaled i tunes, still getting this message

    how do i resolve this....the program cant start because MSVC.dll is missing from your computer.ive uninstaled and reinstaled i tunes, still getting this message

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components; this won't normally affect its library, but that should be backed up anyway.
    (99150)

  • How to convert VI that calls a CIN to newer LabVIEW without having the LSB

    Hi,
    I'd like to upgrade a VI which calls a CIN from LV 7.1 to LV 8.5 or 9.0, but I have no access to the CIN code (the .lsb file) anymore. That .lsb was not one of the .lsb which came with LV but written by some third party.
    The only chance I see write now is to compile the CIN-using VI into a DLL with LV 7.1 and then use this DLL in the newer LV versions. I wonder if there is simpler way to do it, maybe by extracting the LSB code from the LV7.1 VI? (OTOH the CIN support seems to be discontinued in LV 2009, so that would probably not make much sense...)

    ahlers01 wrote:
    Hi,
    I'd like to upgrade a VI which calls a CIN from LV 7.1 to LV 8.5 or 9.0, but I have no access to the CIN code (the .lsb file) anymore. That .lsb was not one of the .lsb which came with LV but written by some third party.
    The only chance I see write now is to compile the CIN-using VI into a DLL with LV 7.1 and then use this DLL in the newer LV versions. I wonder if there is simpler way to do it, maybe by extracting the LSB code from the LV7.1 VI? (OTOH the CIN support seems to be discontinued in LV 2009, so that would probably not make much sense...)
    Well, as long as you do not change the platform the CIN resource should simply be forward portable by LabVIEW itself (Platform means here OS AND CPU bitness). Of course if what you say is true and LabVIEW 2009 does not support CINs at all anymore then this can't work.
    An LSB is a compiled object file prepared into a special form by the lsbutil tool. But the basic fact of compiled object code remains. So the only way to get back at what this CIN does is to extract the binary object file image from the LSB, something not exactly obvious but doable, and then disassemble that object file into assembly code and translate that back into C code.
    However this is considered illegal in many jurisdications including the US, when you do not hold the copyright on the original code. DMCA anyone?
    Message Edited by rolfk on 11-02-2009 08:31 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can I use MSVC 2013 to develop plug-in for InDesign CC 2014?

    The minimum requirement is MSVC 2012 SP4. I wonder if the latest version will work also. Thanks.

    Right now, we don't have a cross platform answer.
    Most people are writing to the platform native APIs, or using some UI toolkit that works with the platform of choice. Larger plugin developers have their own UI code toolkits.
    ADM was always more problem than solution, and became too big a problem to maintain (you'll notice that our plugins that use ADM went away or became scripts).
    We're working on better solutions now.

  • I get error 998 when calling a LabVIEW buildt DLL from MSVC++

    I created a DLL in LV 6.0.2. This DLL contains 39 VIs and controls. 13 of the VIs are exported, the others are subVIs, which one of them is a dynamic VI.
    I do not have all connectors used by defining the VI prototype in the build file for the application builder.
    Using this DLL I get four effects:
    From LV 6.0.2 FDS all works fine until I quit LV immediatly after the application VI stoppes. Then LV wants to save some of the VIs of the DLL.
    If I do the same but close the VI before I quit LV one want save anything.
    After Building an exe from the application VI and running the exe all works fine. The VI will only stop and if I close or quit noone wants to save something.
    Then I built an application with M
    SVC++ 6.0 using this DLL. There will be no errors or warnings during the build. If I start the application i get an error message dialog with the number 998 stating "system error loading LV Runtime engine. My application needs a Version 6.0 or compatible Runtime-engine". The path to teh Runtime-engine is given in the dialog and the lvrt.dll there has version 6.0.2.
    Does someone run on such a problem?
    Has someone a solution to this?
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    Waldemar,
    I. LabVIEW wanting to save VIs
    The DLL created is just a group of VIs, not actually compiled DLL code. When the subVIs are called, they might be cached from the disk copy, not the one in the DLL. LabVIEW then loads the separate copy of that subVI. It will then ask if you want to save changes because there were value changes when it was run (this makes since) or it is in LabVIEW 6.0 version and has not been mass compiled for LabVIEW 6.0.2. When it is compiled to an exe, the search path for the subVIs goes through the executable and not the LabVIEW development environment. Also, saving VIs is not an option in an executable so the save dialog does not pop up.
    II. MSVC++ error
    This is actually a Microsoft issue. It has something to do with static and
    dynamic linking of the MFC DLL. Our R&D engineers have verified this with projects created with no LabVIEW code at all (that is why we believe it to be solely a Microsoft issue). There are three options at this time:
    1. Link with the DLL form of MFC.
    2. Do not link with the .lib from the LV DLL, instead use LoadLibrary and GetProcAddress to dynamically load the DLL and call the function.
    3. Use the VC delayload feature to make the LV DLL not get loaded until the first call is made into it. See VC help on "delayload" for information on setting this up.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Build .lsb from Visual C++ IDE

    I have used MS Visual C++ IDE to build .lsb file.
    On the Custom Build tab I have filled in:
    Build commands:
    C:\Program Files\National Instruments\LabVIEW 6\cintools\lvsbutil $(TargetName) -d $(WkspDir)\$(OutDir)
    Output files: $(OutDir)$(TargetName).lsb
    When I was trying to build Exampe1.dll. The satus was:
    Linking...
    Creating library Debug/Example1.lib and object Debug/Example1.exp
    Performing Custom Build Step on .\Debug\Example1.dll
    And never stop.
    Could you please tell me the error I have took.
    Best regards,
    [email protected]

    Hiep,
    Just to make sure, you followed all of the steps in the Using External Code with LabVIEW manual (which can be found here). This is the place to start. Also make sure you have the latest Service Pack for Microsoft Visual C++.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Problem in reloading the .lsb file

    Hi All,
    We are using a CIN function to interface an external C code and created the LSB file with required parameters. This was integrated to our LabVIEW code succesfully.
    Later during the progress of the code development, we've created an additional output parameter in this CIN function. Accordingly we've modified the C code and updated the .lsb file.
    We could not reload the latest /lsb file into this CIN funtion because the three options (Relaod code resource, Reload code resource From... and Purge Bad Code Resource) are appearing disabled when we right click on the CIN function.
    Could you pls suggest me where exactly we are going wrong? Will there be any problem in creating additional parameters for the exisiting CIN?
    Thanks in advance.
    -Krishna.

    Krishna,
    It seems like your question is related to the problem mentioned in the following forum:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=242840&requireLogin=False
    At this point I would recommend you to reload all of your CINs by performing a Mass Compile. This KnowledgeBase has more information on how to reload your CINs automatically.
    I hope this helps!
    Mehak D.

  • [SOLVED]Google Earth and LSB

    Good Morning Fellow Archers,
    I've got an up to date x64 Arch install. I wanted to install Google-Earth from the AUR but was not able. I tried both packages, and both of them are failing looking for LSB-3. The current LSB in the repository is rev 4.
    I followed one thread where I manually created a link for a lsb-3 install, and both google-earth packages still fail.
    I do have the multi-libs enabled as I have one app that uses wine32 and it's happy. And the NVidia lib32 stuff is all there too.
    I have X-Plane 9, which is a 32 bit app only, and it runs fine so I know the x32libs are all in place and working.
    I think the long-term solve is for the google-earth AUR maintainers to square away their builds for lsb-4....but I'm not an expert in package builds or I'd jump in and help.....but reality is that I am not an expert.
    In the meantime....how do I make this work without pounding a 'square' peg into a 'round' hole?
    Assistance will be sincerely appreciated!
    Dave
    PS: Yes...I did try to follow the wiki article too.....
    Last edited by dcbdbis (2011-03-03 19:21:36)

    Thank you for the response. I have it installed and it works perfectly. THANK YOU.
    The solve was simple. I was brain-locked on the lsb in the arch repository, and was not taking note of that I needed the lsb from the AUR.
    This was totally my error.
    Again, thank you for the response.
    Dave............

  • Using LSB as on off and remaining 7 bits as power scale

    I am using the FieldPOINT FP-RLY 420 module to write values to a power supply which uses binary hi and lo's to control power.
    What I need to have is the Lowest Significant Bit (Channel 0) to be the on/off control. The remaining 7 channels are the power control. So from channel 2 to 7 it counts up (or down) in a binary sequence. In other words, I need to write to the relay module binary values which are shifted one bit to the left
    channel 7 channel 0
    MSB LSB
    x x x x x x x on/off
    \----------v------------/
    Binary count bits from
    0 to 128
    Could someone give me some help as to how I can
    shift binary numbers one bit and write to the relay module so that channel 0 is on/off and the rest perform the counter job?
    I appreciate any help.
    Will

    Thanks for your reply. This answers the shifting part of the problem. However, I require to have one of the relays in the FP-RLY-420 to be an on/off relay. That is to say that when I begin my application, I turn channel zero on and a light comes on. Then the rest of the channels are used to increase the power in this light.
    When I tried writing a value to channel 0 and try writing the shifted values, to the rest of the relays, there is a chatter on channel 0. This is because I'm writing both a 0 from the shifted bits and a 1 from my on/off function. I am not sure if I am explaining myself correctly. I am sending with this my VI that I've made. It is used for three different lights... but you see how I will be writing a 1 whith the on/off switch
    es and a 0 with the shifted bits.
    Thanks for your input in this. It is much appreciated.
    Will
    Attachments:
    binary_controls_rev3.vi ‏135 KB

  • Digitizer V/LSB ?

    Hello,
    I am using PXI digitizers (5122 and 5152) with LabView 8.0.  I write the data in I16 binary format to save disk space.  How can I extract the Volts per LSB information to reconstruct the voltages afterwards offline ?  I would like this information to go into a setup file that is written before any triggering takes place.  Also, what I am looking for can be reconstructed from the true range, the gain and the number of bits, so extracting these would be useful, but I am not sure that what I select as range is the actual range (i.e. selecting +-5 V for instance seems to actually give something like +-4.8 V).
    Philippe

    Duplicate
    Message Edité par BenjaminR le 11-07-2008 10:38 AM
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • Code interface node - .lsb generated but does not load

    Howdy,
    i am using labview 6.1 and VC++/visual studio .NET 2003.
    i tried creating a simple code interface node to add two numbers. i followed the steps given in the "Using External Code in Labview" Manual. I made only one change, which is switching out "$(WkspDir)\$(OutDir)" (under custom build) with "$(ProjectDir)$(OutDir)" as the $(WkspDir) macro is missing from VC++.
    The build occurs successfully and i get a .lsb file. But when i ask the code interface node to load it up, it doesn't. The error description is, "Code Interface Node: object code not loaded."
    any suggestions? thanks in advance.

    Hi,
    This KB describes what may be the issue. I hope this is helpful.
    Regards,
    Ankita

  • Occi  10.1.0.4 instant client  interface   and MSVC ++ 6.0

    First of All
    I am using XP windows and 10.1.0.4 instant client with MSVC 6.0.
    I success with connection only in Release version not Debug and only giving
    user and password and not db data.
    In any case i am able after connect to select some from table , insert etc. but
    only 2,3,4 times not more !!! After that it crashes.
    I have on the system installed also Oracle Form 10g . May it causes problems ?
    I have check paths etc. and it seems to catch the right include lib and dll even
    if Oracle Form 10g has some dll with the same name.
    Thank You in advance for any help which will be very appreciate.
    Kind Regards
    Anna

    /* Copyright (c) 2001, 2004, Oracle Corporation. All rights reserved. */
    /* NAME
    occidml.cpp - Basic DML Operations demo
    DESCRIPTION
    To exhibit the insertion, selection, updating and deletion of
    a row using OCCI interface
    MODIFIED (MM/DD/YY)
    sudsrini 07/23/04 - Copyright Info
    idcqe 03/05/01 - Creation
    IT IS DEMO FILE OCCIDML.CPP gived with instant client JUST MODIFIED FOR INTERFACING MY DATA BASE
    ONLY DISPLAYROW function has been used.
    Behaviour is only 7/8 line has been displayed and than it crashes.
    Message error gived:
    The instruction at "0x7c910c3f" referenced at "0x0036c725". The memory could not be "read"
    #include <stdafx.h>
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    class occidml
    private:
    Environment *env;
    Connection *conn;
    Statement *stmt;
    public:
    occidml (string user, string passwd, string db)
    env = Environment::createEnvironment (Environment::DEFAULT);
    conn = env->createConnection (user, passwd, db);
    ~occidml ()
    env->terminateConnection (conn);
    Environment::terminateEnvironment (env);
    * Insertion of a row with dynamic binding, PreparedStatement functionality.
    void insertBind (int c1, string c2)
    string sqlStmt = "INSERT INTO author_tab VALUES (:x, :y)";
    stmt=conn->createStatement (sqlStmt);
    try{
    stmt->setInt (1, c1);
    stmt->setString (2, c2);
    stmt->executeUpdate ();
    cout << "insert - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertBind"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * Inserting a row into the table.
    void insertRow ()
    string sqlStmt = "INSERT INTO author_tab VALUES (111, 'ASHOK')";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->executeUpdate ();
    cout << "insert - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * updating a row
    void updateRow (int c1, string c2)
    string sqlStmt =
    "UPDATE author_tab SET author_name = :x WHERE author_id = :y";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setString (1, c2);
    stmt->setInt (2, c1);
    stmt->executeUpdate ();
    cout << "update - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for updateRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * deletion of a row
    void deleteRow (int c1, string c2)
    string sqlStmt =
    "DELETE FROM author_tab WHERE author_id= :x AND author_name = :y";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setInt (1, c1);
    stmt->setString (2, c2);
    stmt->executeUpdate ();
    cout << "delete - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for deleteRow"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * displaying all the rows in the table
    void displayAllRows ()
         string s1,s2;
    string sqlStmt = "SELECT trans_num, pan1 FROM transazioni \
    order by trans_num";
    stmt = conn->createStatement (sqlStmt);
    ResultSet *rset = stmt->executeQuery ();
    try{
    while (rset->next ())
              cout << "trans_num: " << rset->getString(1) << " PAN1: " << rset->getString(2) << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for displayAllRows"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
         stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    * Inserting a row into elements table.
    * Demonstrating the usage of BFloat and BDouble datatypes
    void insertElement (string elm_name, float mvol=0.0, double awt=0.0)
    BFloat mol_vol;
    BDouble at_wt;
    if (!(mvol))
    mol_vol.isNull = TRUE;
    else
    mol_vol.value = mvol;
    if (!(awt))
    at_wt.isNull = TRUE;
    else
    at_wt.value = awt;
    string sqlStmt = "INSERT INTO elements VALUES (:v1, :v2, :v3)";
    stmt = conn->createStatement (sqlStmt);
    try{
    stmt->setString(1, elm_name);
    stmt->setBFloat(2, mol_vol);
    stmt->setBDouble(3, at_wt);
    stmt->executeUpdate ();
    cout << "insertElement - Success" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for insertElement"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    conn->terminateStatement (stmt);
    * displaying rows from element table
    void displayElements ()
    string sqlStmt =
    "SELECT element_name, molar_volume, atomic_weight FROM elements \
    order by element_name";
    stmt = conn->createStatement (sqlStmt);
    ResultSet *rset = stmt->executeQuery ();
    try{
    cout.precision(7);
    while (rset->next ())
    string elem_name = rset->getString(1);
    BFloat mol_vol = rset->getBFloat(2);
    BDouble at_wt = rset->getBDouble(3);
    cout << "Element Name: " << elem_name << endl;
    if ( mol_vol.isNull )
    cout << "Molar Volume is NULL" << endl;
    else
    cout << "Molar Volume: " << mol_vol.value << " cm3 mol-1" << endl;
    if ( at_wt.isNull )
    cout << "Atomic Weight is NULL" << endl;
    else
    cout << "Atomic Weight: " << at_wt.value << " g/mole" << endl;
    }catch(SQLException ex)
    cout<<"Exception thrown for displayElements"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    stmt->closeResultSet (rset);
    conn->terminateStatement (stmt);
    }; // end of class occidml
    int main (void)
    //string user = "central";
    //string passwd = "central";
    //string db = "//10.80.0.108:1521/ora8";
    string user = "orasin";
    string passwd = "orasin";
    // string db = "//192.168.49.140:1521/ora8";
    // string user = "sede";
    // string passwd = "sede";
    // string db = "//192.168.49.145:1521/ora8";
    // string user;
    // string passwd;
    string db;
    cout << "occidml - Exhibiting simple insert, delete & update operations"
    << endl;
    occidml *demo = new occidml (user, passwd, db);
    cout << "Displaying all records before any operation" << endl;
    try
    demo->displayAllRows ();
    }catch(SQLException ex){
    cout<<"Exception thrown for displayAllRows"<<endl;
    cout<<"Error number: "<< ex.getErrorCode() << endl;
    cout<<ex.getMessage() << endl;
    // cout << "Inserting a record into the table author_tab "
    // << endl;
    // demo->insertRow ();
    // cout << "Displaying the records after insert " << endl;
    // demo->displayAllRows ();
    // cout << "Inserting a records into the table author_tab using dynamic bind"
    // << endl;
    // demo->insertBind (222, "ANAND");
    cout << "Displaying the records after insert using dynamic bind" << endl;
    demo->displayAllRows ();
    cout << "deleting a row with author_id as 222 from author_tab table" << endl;
    demo->deleteRow (222, "ANAND");
    cout << "updating a row with author_id as 444 from author_tab table" << endl;
    demo->updateRow (444, "ADAM");
    cout << "displaying all rows after all the operations" << endl;
    demo->displayAllRows ();
    cout << "inserting radio active element properties" << endl;
    demo->insertElement ("Uranium", 12.572, 238.0289 );
    demo->insertElement ("Plutonium", 12.12, 244.0642 );
    demo->insertElement ("Curium", 18.17, 247.0703 );
    demo->insertElement ("Thorium");
    demo->insertElement ("Radium", 41.337, 226.0254);
    cout << "displaying all radio active element properties" << endl;
    demo->displayElements ();
    delete (demo);
    cout << "occidml - done" << endl;
    return ( 0 );
    }

Maybe you are looking for

  • SelectManyListbox  doesn't refresh with partialTriggers

    I can successfully populate and default selected values in a selectManyListbox when a selectOneChoice has changed it's value. This issue is when I change the selectOneChoice the second time. The selectManyListbox keeps the selected values associated

  • Locating & syncing Contacts post iphone OS upgrade

    Just upgraded my iPhone 4  to latest OS version 6.1.2. The sync has not included my contacts. How can I find where they have been saved in the back up that occured prior to version upgrade? I am not sure where it has been saved and then how to have t

  • How to pass value to Multiline container element in workflow ?

    Dear Experts, I am using the BAPI "SAP_WAPI_WRITE_CONTAINER" to write into the workitem container elements. now i want to write the data into a multiline container element. i am unable to do the same. please guide me how to write the data into multil

  • BAPI return message problem

    Hi All, I created BAPI for Sale order the order created successfully but the return message S -success  is not coming- but the error message the sale order is already exist. How to solve this. I used the returnmessage for BAPI - BAPIRETURN1. Thanks,

  • License issues with PS CS6

    I have been running PS CS6 Extended on my Mac for some time.  I recently upgraded to 13.0.2 using the adobe updater, and now I'm getting these warnings that my trial will run out in x days (it's 29 days now).  Here's the window I keep getting: I've e