Adapting the OCI examples for VC++. Errors

Hi,
I can build and run the OCI example 6 .c in VC++ IDE as a console app.
Now I want to develop my code further with hpp and cpp files to create SDI/MDI application that uses an adapted version of the OCI6 Example. My problem is that the error (below) keeps coming up.
Where could the problem be?
As this project has been adapted from the .c console app all of the include files and library files seem to be added sucessfully yet I still get these errors.
d:\projects\vc\oci\oci6_test2\oci06.cpp(139) : error C2660: 'oopen' : function does not take 7 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(146) : error C2660: 'oparse' : function does not take 5 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(155) : error C2660: 'obndra' : function does not take 15 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(177) : error C2660: 'odefin' : function does not take 12 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(197) : error C2660: 'oexec' : function does not take 1 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(205) : error C2660: 'ofen' : function does not take 2 parameters
d:\projects\vc\oci\oci6_test2\oci06.cpp(205) : fatal error C1903: unable to recover from previous error(s); st
Windows 2000
VC++ 6.0
Ora 817

I have found that if I change the settings for the .cpp file
from:
Use precompiled header files.
To:
Don't use precompiled header files.
The error message changes:
From:
d:\projects\vc\oci\test2\cdemo6.cpp(316) : fatal error C1010: unexpected end of file while looking for precompiled header directive
to the above:
Any help would be appreciated..

Similar Messages

  • Examples for JMS Error Queue implementation in BPEL

    Hi ,
    Please anyone provide me examples for JMS error queue implementaion in BPEL.
    Regards
    Narsi p

    Hi Narsi p,
    Please remember to mark answers accordingly... Helpful or correct, following the forum rules
    https://forums.oracle.com/forums/ann.jspa?annID=330
    Can you tell us more about what are you trying to achieve here?
    If you are just trying to configure an error queue to put the messages that couldn't be delivered, you can do this in weblogic directly.
    Configuring an Error Destination for Undelivered Messages
    http://docs.oracle.com/cd/E17904_01/web.1111/e13727/manage_apps.htm#JMSPG254
    Cheers,
    Vlad

  • I need the coding example for encapsulation

    hi all
    i need the coding example for encapsulation
    thanks in advance

    hi all
    i need the coding example for encapsulation
    thanks in advanceI see a man, hes trapped on the other side.. what Sam?... yes ... hes wearing a hood, he's a hooded gentleman, perhaps a monk who practised the black arts.... he says... "google for the answer"...

  • How do I resolve the "insufficient data for image" error for Adobe reader 11.0.04?

    How do I resolve the "insufficient data for image" error for Adobe reader 11.0.04?

    Hi Johnkel1524,
    Please refer : http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html
    Also try updating to 11.0.5 and check.

  • [svn] 3775: Adding a link to the FxCheckBox example for ASDoc.

    Revision: 3775
    Author: [email protected]
    Date: 2008-10-21 09:22:17 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Adding a link to the FxCheckBox example for ASDoc.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxCheckBox.as

    guess not

  • Cannot deploy the Bookstore Example for Java EE tutorials

    I also have the same issue as another user on a different thread, and I did check my build.properties and it appears accurate. However I am still getting the exception when I try to run the 'ant create-tables' or 'ant deploy' :
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48:java.io.FileNotFoundException: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src} (The system cannot find the file specified)
    Total time: 7 seconds
    The Build.Properties file in my [install]/examples/bp-projects/ directory is a follows
    javaee.home=C:/Sun/AppServer
    javaee.tutorial.home = c:/tutorial/javaeetutorial5
    javaee.server.name=localhost
    javaee.server.port=10000
    javaee.adminserver.port=4848
    javaee.server.username=admin
    javaee.server.passwordfile=c:/tutorial/javaeetutorial5/password.txt
    appserver.instance=server
    I was able to compile the first Hello tutorial with Ant, so I am assuming that means the above build.properties file should be correct (or else that deployment would have failed too, right?). I also created the JDBC connection in the System Admin Console before trying this, as per the tutorial text.
    Since I'm new to the environment, I'm not sure where else to look for the problem.

    Ok, I did an 'ant deploy' at the books directory. It seems to be going well and then just hung for minutes at the following line...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database started in Network Server mode on host localhost and port 1
    527.
    [exec] --------- Derby Network Server Information --------
    [exec] Version: CSS10011/10.1.1.0 Build: 208786 DRDA Product Id: CSS10011
    [exec] -- listing properties --
    [exec] derby.drda.maxThreads=0
    [exec] derby.drda.keepAlive=true
    [exec] derby.drda.minThreads=0
    [exec] derby.drda.portNumber=1527
    [exec] derby.drda.logConnections=false
    [exec] derby.drda.timeSlice=0
    [exec] derby.drda.startNetworkServer=false
    [exec] derby.drda.host=localhost
    [exec] derby.drda.traceAll=false
    [exec] ------------------ Java Information ------------------
    [exec] Java Version: 1.5.0_06
    [exec] Java Vendor: Sun Microsystems Inc.
    [exec] Java home: C:\Sun\AppServer\jdk\jre
    [exec] Java classpath: C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServe
    r\lib\admin-cli.jar;C:\Sun\AppServer\javadb\lib\derby.jar;C:\Sun\AppServer\javad
    b\lib\derbytools.jar;C:\Sun\AppServer\javadb\lib\derbynet.jar;C:\Sun\AppServer\j
    avadb\lib\derbyclient.jar
    [exec] OS name: Windows XP
    [exec] OS architecture: x86
    [exec] OS version: 5.1
    [exec] Java user name: Russell Longo
    [exec] Java user home: C:\Documents and Settings\Russell Longo
    [exec] Java user dir: C:\Sun\AppServer
    [exec] java.specification.name: Java Platform API Specification
    [exec] java.specification.version: 1.5
    [exec] --------- Derby Information --------
    [exec] JRE - JDBC: J2SE 5.0 - JDBC 3.0
    [exec] [C:\Sun\AppServer\javadb\lib\derby.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbytools.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbynet.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbyclient.jar] 10.1.1.0 - (208786)
    [exec] ------------------------------------------------------
    [exec] ----------------- Locale Information -----------------
    [exec] ------------------------------------------------------
    [exec] Starting database in the background. Log redirected to C:/Sun/AppSe
    rver/javadb\derby.log.
    [exec] Command start-database executed successfully.
    I hit a Ctrl-C and it asked if I wanted to end the batch. I replied 'n' but it dropped out to the command line.
    So I tried the ant deploy again and got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I finally went to the bookstore directory to see if I could deploy that application. Ant deploy gave the following:
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    Last, I went to bookstore1 just to try the ant deploy again, see if things were cleared up, and maybe the errors above wouldn't affect it. When I tried deploying I got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I'm clearly not 'getting' a handle on this environment.

  • What is the best Resolution for this Error: Failed to execute IS server package because of error 0x80131904. Server:

    Dear Forum Members,
    I have an SSIS running perfectly when i run it in Visual Studio Shell. I have organized it into a job which runs well on SQL Server agent at intervals. 
    However, suddenly, i started having this error as stated in the title. Please find details of the error below and kindly help resolve it ASAP.
    Error Details:
    Date 1/27/2015 11:24:00 AM
    Log Job History (FmdqSync)
    Step ID 1
    Server ITGTESTSERVER
    Job Name FmdqSync
    Step Name S1
    Duration 00:00:30
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  11:24:00 AM  Failed to execute
    IS server package because of error 0x80131904. Server: ., Package path: \SSISDB\FMDQSync\FMDQServerDataSync\FMDQServerDataSync1.dtsx, Environment reference Id: NULL.  Description: Timeout expired.  The timeout period elapsed prior to completion of
    the operation or the server is not responding.  The statement has been terminated.  Source: .Net SqlClient Data Provider  Started:  11:24:00 AM  Finished: 11:24:30 AM  Elapsed:  30.187 seconds.  The package execution
    failed.  The step failed.

    Hi Sadeeq,
    Based on your description and the error message, it should be a timeout issue when the ADO .NET Source connects to the source database. So, please refer to the following two suggestions:
    Double click on the ADO .NET Connection Manager, click the All tab, and set the “Connect Timeout” property to a bigger value. By default, it is 15 seconds.
    Increase the DefaultBufferSize value of the Data Flow Task. By default, the DefaultBufferSize is 10 (MB), you can increase it to a value that is less than 100 (MB).
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Is there a way to Point the Exact Location for an Error In an XML File?

    Dear Members,
    I am validating an XML File with an XML Schema. The XML Schema is in the Database.
    I am using presently isschemavalid to check for the validity of the XML File.
    But this is not showing where the error is there in the XML File.
    Is there any way where I can check this one...(Validation should happend only in the Database side)
    Regards
    Madhu K

    Read about advantages of [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb03usg.htm#sthref315]schemaValidate  method over isSchemaValid.
    Best regards
    Maxim

  • Need a link to the microsoft hotfix for this error (below)

    error 2203.Database: C:\windows\installer\41d24.ipi. Cannot open database file system error -2147287035

    Hi avanasse,
    Please check the KB : http://helpx.adobe.com/creative-suite/kb/error-2203-install-creative-suite.html
    For Microsoft hotfix please contact Microsoft

  • Please help give the BDC example for KZZ2, overhead rate BDC program

    Hi, All
    I have implemented notes 208474, and I need an add-on BDC program for KZZ2. Could anybody help me?
    Thanks in advance.
    <LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:17 PM

    you might have got the details of what to extend for this customer n XD01. do a recording for those fields which have to be extended and call transaction XD01 and do a bdc. Other also after extending it do another recording to modify this using XD02 like the similar way taking the fields that you have to modify and do a bdc. Know from them if they need both of them in one BDC Prg or different BDC Progams. This is one way.
    The other way is to search if you have any BAPI's to do this and use those BAPI's.
    Award points if it helps.

  • Not able to get Out-of-the-Box Examples Index Page for running the jsp examples

    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas

    Hi.
    Please post all WLS 7.0 beta questions to the beta newsgroups -
    weblogic.developer.interest.70beta.*.
    Thanks,
    Michael
    Vikas wrote:
    Hi
    I am a new person using weblogic first time I installed the weblogic 7.0 beta
    version on my machine.I am trying to start the weblogic server console so that
    I can configure web applications examples on my machine.
    I am getting following error and not able to view Out-of-the-Box Examples Index
    Page
    error:
    <Apr 5, 2002 12:11:39 PM IST> <Error> <SystemDataStore> <null> <Unable to listen
    on Port 7003: Address in use: JVM_Bind>
    Please help me to find the reason to have this problem
    Thank You in advance
    Vikas--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Using the States Example how can I set Selected to Maryland Without RowNumber

    Let's use the states example for the sake of everyone having
    the code in front of them. If I am returning a value from the
    database that I am writting out to the application like this
    <%out.write("STATE_NAME"); %>
    how can I set the selected value to that without knowing what
    the row number is, here is my try but I get a few error messages:
    <option spry:if="{name} == '<%out.write("STATE_NAME");
    %>'" value="{name}" selected
    ="selected">{name}</option>
    <option spry:if="{name} != '<%out.write("STATE_NAME");
    %>'" value="{name}" >{name}</option>
    I get double the states and the following in the debug box:
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: Alabama == Exception:[object Error]
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: Alabama != '' Exception:[object Error]
    This goes on for as many records as I have in the DB,
    Please let me know how it could be done if it could be done?

    I believe what you guys are looking for is the
    Set
    Default Row Based on Specific Column sample that is on the
    Spry
    Samples Page.
    The problem of using a spry:if="{name} ..." approach is that
    it only makes sure the form select widget is set to what the server
    thinks is the current row in the data set, but it doesn't actually
    set the current row in the data set to reflect this, so the cities
    select is out of sync cause it is defaulting to displaying the
    cities for the first row in the states data set.
    Checkout the sample I mentioned above, it will show you how
    to set up an observer where you can query for the correct row
    immediately after the data is loaded, and then set the current row
    so that everything is as expected.
    --== Kin ==--

  • I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be fund raising, gift p

    I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be dependent on the customer type selection from the first list. Some examples would be: fund raising, gift planning, surveys, and others. The purpose of the trip would be dependent on the program type selected from the second list. Some examples of trip purposes would be: presentation, design, prospecting. Further, the purpose of trip selection from the third drop-down box would then have to determine the values of other fields by expense type: such as commission, airfare, hotel. etc. I've tried pop-up menu but can't figure out how to "select" from the final popup list and have it populate a field for the purpose of the trip. I've tried to look at the JavaScript examples for dependent drop-down boxes, but can't find any that quite fit what I'm trying to accomplish. I am very new to all of this. No training in writing Javascripts - just trying to wing it. The form has to be very simple for our consultants to use, but also give our office the detail we need to process through the correct account numbers. I would appreciate any detailed step-by-step instructions - kind of a javascript for dummies type of info. HELP!

    An AcroForm is the name given to the type of PDF form that you create in Acrobat. An XFA form is the type of form that you create in LiveCycle Designer. Although they are both PDF files, they are very different structurally and have significant;y different scripting models. So pay attention to the information on AcroForms and ignore anything about XFA. Be sure to get the sample PDF forms so you can look at how it works and where the scripts are placed.
    What you want to do will require scripting, and if you don't have the experience and are unable to use the information in the tutorials to create what you want, you might consider getting someone who has experience do this for you. I'll often suggest code if I can do so quickly, but what you want requires more than a few minutes.

  • TS3074 iTunes for Windows: "Error 7" message when opening iTunes in Windows 8

    I have Windows 8 (64bit). I have uninstalled iTunes and re-installed iTunes several times as it has constantly instructed me to do. It says that iTunes has been sucessfully installed; however, when I try to open iTunes, I keep getting the message "iTunes for Windows: Error 7 (windows error 127)".

    Here is what it said....But every time I reinstall iTunes it says it was successful. I'm using Windows 8 (64 bit).

  • Why do I always have "Insufficent Content for Edit" error message ?

    Hi all FCE experts,
    May I ask why do I always have "Insufficent Content for Edit" error message when I tried to overwrite or replace a clip ?
    Ok,this is what happen:
    I have a clip A (4 secs) followed by clip B (4 secs). Then in between I add a video transition.
    After a while, I reckon I want to change clip B with another clip (say clip C). So, I went to brower & search for clip C which is 2 mins long clip. To make sure there are enough handles, I went to the centre mark an In point then 4 sec later mark an Out point. So I drag this clips C of 4 secs from the Viewer (I marked the In & Out point in the viewer) to the Overlay canvas & do an Overwrite but it says "Insufficent Content for Edit".
    I then tried Replace also got the "Insufficent Content for Edit" error message.
    I then tried to delete the video transition and repeat the above for overwrite and replace, both times I got the same error.
    Any ideas ?
    Thanks

    Tom Wolsky wrote:
    From your description there is no way either of these things should happen. Without seeing it I would guess there is something else going in your timeline or your clip which you're not telling us. *Perhaps there are I/O pints marked in the timeline*. Or the destination tracks are not set correctly. or something else.
    Thanks Tom, you are correct.
    I have In Point & Out Point marked on the Timeline. I used it when I did FILE > EXPORT and left it there. But once I cleared it, I am able to replace it with another clip.
    But I am still puzzled as to why I cannot do any overwrite or replace when there is I/O points marked on the Timeline ? Especially when the section of clips I wanted to overwrite or replaced are located outside of the I/O points ?
    Thanks

Maybe you are looking for