Newbie question. Trying to set up connection using OLEDB with C++

I have been able to create a C#.Net program using OLEDB to connect to my Oracle server.
C++ is a different beast!
I can't seem to get any traction. What files should I include? What syntax do I use, things of that nature.
I've been looking for code examples, but it seems that all things OLEDB leads to the use of C# and not C++. I have a MFC .dll written in C++ that I need to modify to use Oracle technology instead of MS SQL Server.
If anybody can point me in the right direction, it would be greatly appreciated.

Hi,
You might take a look at the two samples under "VC++ OLEDB Samples" here:
http://www.oracle.com/technology/sample_code/tech/windows/ole_db/oledb8/index.html
They're pretty old, but then again so is OLEDB I guess.
Regards,
Mark

Similar Messages

  • HT204407 my 2 daughters and I are sharing one icloud.  I am trying to set up and use find my friends with them, but it won't let me.  It says I can't send a request to myself when I send one to her email address, which is different than mine.  What am I d

    my two daughters and I have iphones.  I am trying to set up and use find my friends with them. We have 1 icloud, but different emails.  When I send a request it states that I can't send a request to myself.  What am I doing wrong

    Sharing an Apple ID is never recommended for these reasons.
    They can create their own: http://appleid.apple.com and you can add them at the addresses they use for their ID.
    Sharing an Apple ID is not recommended because all of your data gets merged and when it gets deleted from one device, it deletes from them all, such as Contacts.
    iCloud Guide

  • Getting socket error while trying to get oracle connection using JDBC

    hi,
    I am getting following socket read error while trying to get database connection using JDBC. This happening with jdk1.5.0_12 version with Oracle 9i
    following is the stacktrace...
    Thread t@92: (state = IN_NATIVE)
    - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) @bci=0 (Compiled frame; information may be imprecise)
    - java.net.SocketInputStream.read(byte[], int, int) @bci=84, line=129 (Compiled frame)
    - oracle.net.ns.Packet.receive() @bci=31 (Compiled frame)
    - oracle.net.ns.DataPacket.receive() @bci=1 (Interpreted frame)
    - oracle.net.ns.NetInputStream.getNextPacket() @bci=48 (Compiled frame)
    - oracle.jdbc.driver.T4CMAREngine.unmarshalSB1() @bci=1, line=1070 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.doOall8(boolean, boolean, boolean, boolean) @bci=617, line=207 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.executeForDescribe() @bci=39, line=790 (Compiled frame)
    - oracle.jdbc.driver.OracleStatement.executeMaybeDescribe() @bci=106, line=1039 (Interpreted frame)
    - oracle.jdbc.driver.T4CStatement.executeMaybeDescribe() @bci=11, line=830 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout() @bci=128, line=1132 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) @bci=76, line=1272 (Interpreted frame)
    any help would appreciated. thanks in advance

    I do not have exact exception message.
    additionally, i have got following the tomcat log file:
    INFO - Resource pool cleanup thread just woke up.
    Nov 1, 2008 3:41:52 AM org.apache.tomcat.util.threads.ThreadPool logFull
    SEVERE: All threads (100) are currently busy, waiting. Increase maxThreads (100) or check the servlet status
    INFO - Resource pool cleanup thread just woke up.
    thanks in advance

  • HT204380 help. tried for first time to use FaceTime with another iPhone user & it would not work. "FaceTime failed". we are both on wi-fi networks & iTunes accounts are set up correctly.

    help. tried for first time to use FaceTime with another iPhone user & call refused to connect. Call would dial, allow us to accept call, then error message "FaceTime failed" would appear & call disconnect. we are both on wi-fi networks, both phones have updated software & both enabled FaceTime with iTunes logged in. don't know what else to do to get FaceTime to connect. Someone please help.

    Thanks Helen for the response. At least you can get some of the contacts to work. Absolutely none of mine will. Feel like my phone is cheating me out something it should do. Think I'm going to just have to dump all the Apple products in general because this phone hasn't worked right since I got it.

  • Trying to share internet connection using Airport Express

    I have an internet connection via a Verizon Wireless broadband card in the Express Card slot in my MacBookPro. I share this connection to my iMac via Airport and I have an Airport Express card connected to a printer & stereo. However, when I establish the Airport internet connection (internet sharing in System prefrences) it establishes a wireless network in the MacBook (I think) as evedinced by the Airport signal (fan) logo changing to a vertical arrow. This precludes connecting to the Airport Express (the Airport Express network is not shown in the Airport pull down menu, only the MacBook network). My question is: can I somehow share the internet connection using the Airport Express network???

    ejagnut, Welcome to the discussion area!
    Configure the AirPort Express (AX) to join the wireless network created by your MacBook Pro. The directions can be found in KB 302153, AirPort Express: How to join an existing wireless network in client mode.

  • Setting up connection using a single connection string.

    Post Author: DubbleOh7
    CA Forum: Data Connectivity and SQL
    I know about the ConnectionInfo object in for .NET crystal reports, but for security purposes we don't have access to a password of any kind, nor do we pass them around our web pages, they are used for login access only. So how can I just set a connection string for the report to access a SQL Server database? I prefer NOT to do the Dataset work around. Its a busy server and the report could contain up to 20,000 records with lots of fields. Not efficient. I also know I could make an object fill it with data from a data reader, but not sure thats as efficient as just having the report execute the stored procedure I have. I also don't want the report to pop up that login page automatically for the users since they have already logged into the website. I'm looking forward to any ideas or suggestions. Thanks in advance for any info or suggestions you may have!
    Summary:
    I don't want to use datasets due to inefficiency and overhead of several thousand records.
    I just want to be able to use a connection string using windows authentication enabled for the report connection to a SQL Server database.
    This is for SQL 2K5..calling a stored procedure
    Crystal reports for ASP.NET (VB language solutions preferred)
    Basically I'd like to use a trusted connection and
    ReportConnection.ServerName = "SERVER"
    ReportConnection.DatabaseName = "DATABASE"
    ReportConnection.IntegratedSecurity = True
    doesn't get me there.

    If your Internet Service Provider is DSL follow this link

  • Trying to set up HP Photosmart B209a with Macbook pro through airport

    I am trying to set up an HP Photosmart B209a printer through my Macbook pro with my home network through airport extreme and express. Each time I reach the point in the set up for connecting to the wireless printer, the program recognizes my network but will not connect. It just sits and spins. Can anybody offer any solutions?

    The problem was solved by using the airport utilities manager under the "base station" menu. I opened the "add wireless clients" and checked "first try". The printer connected and the problem was solved.

  • How do i set up a used iPad with iTunes account

    Hi, my friend has recently bought a second hand iPad and has been having problems using it with her iTunes account. She has the latest version installed on her laptop but when the iPad is connected, a window opens to say it cannot be used because it requires iTunes 10.1 or later.
    Is it possible to use a second hand device with an existing iTunes account and how do you get the latest version of iTunes on the iPad?
    Any help would be appreciated.

    Sorry that I mentioned 'daughter' rather than 'friend'.
    Has she access to another computer with iTunes. If so, attach it to that briefly to see if she gets the same message. If she does not then the problem is iTunes on her own laptop. This can be resolved in two ways. If the iTunes update was recent then do a system restore on the laptop and then update iTunes again. (Be careful that such a restore has not ramifications as regards to new programmes installed in the interim.) Now try connecting again. The second option, as quoted earlier by Demo, is to forget about the system restore (on the laptop) and reinstall iTunes. The following should help - http://support.apple.com/kb/ht1925

  • How to set FTP Connection type BINARY with the SOCKET

    hi all,
    manish here.
    could anyone help me in setting the Binary type FTP with the SOCKET.....
    one thing i tried command "TYPE" and argument "I ". but its not accepting and then the Window gets Hang.
    Regards,
    Manish

    X-post:
    http://forum.java.sun.com/thread.jspa?threadID=585104&tstart=0

  • Trying To make DB connection using DataSource

    Hi ,
    I am working on Jdev 11g . Getting exception while trying to execute below code:
    import java.sql.*;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.sql.*;
    final class GetConnection {
    /** Uses JNDI and Datasource (preferred style). */
    static Connection getJNDIConnection(){
    // String DATASOURCE_CONTEXT = "java:comp/env/jdbc/blah";
    String DATASOURCE_CONTEXT = "JNDIDataSource-0";
    // String DATASOURCE_CONTEXT = "TESTJNDI_CONN";
    System.out.println("Control till here :1");
    Connection result = null;
    try {
    Context initialContext = new InitialContext();
    if ( initialContext == null){
    System.out.println("JNDI problem. Cannot get InitialContext.");
    System.out.println("Control till here :2");
    Hashtable<String, String> table = new Hashtable<String, String>();
    System.out.println("Here");
    table.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    System.out.println("Control till here :3");
    table.put(Context.PROVIDER_URL, "hostName");
    System.out.println("Control till here :4");
    table.put(Context.SECURITY_PRINCIPAL, "weblogic");
    System.out.println("Control till here :5");
    table.put(Context.SECURITY_CREDENTIALS, "weblogic123");
    System.out.println("Control till here :6");
    initialContext = new InitialContext(table);
    System.out.println("Control till here :7");
    initialContext = new InitialContext(table);
    System.out.println("Control till here :8");
    DataSource datasource = (DataSource)initialContext.lookup(DATASOURCE_CONTEXT);
    DataSource source = (DataSource)new InitialContext().lookup("DataSource");
    // result = source.getConnection();
    System.out.println("Control till here :9");
    if (datasource != null) {
    System.out.println("Control till here :3");
    result = datasource.getConnection();
    System.out.println("Control till here :4");
    else {
    System.out.println("Failed to lookup datasource.");
    catch ( NamingException ex ) {
    System.out.println("Cannot get connection: 1" + ex);
    catch(SQLException ex){
    System.out.println("Cannot get connection: 2" + ex);
    return result;
    public static void main(String[] args) throws Exception {
    //WBSCallingProc WbsProc = new WBSCallingProc();
    String returnValue;
    GetConnection getConnection = new GetConnection();
    // returnValue =home.callingProcedure();
    Connection returnValue1 =getConnection.getJNDIConnection();
    System.out.println("returnValue1 " + returnValue1);
    Log
    Control till here :1
    Control till here :2
    Here
    Control till here :3
    Control till here :4
    Control till here :5
    Control till here :6
    Cannot get connection: 1javax.naming.NamingException: String index out of range: -1
    returnValue1 null
    Can anyone please help me here.Many Thanks.
    Regards
    Kumar

    What is the full Java and os versions you are using to compile and to run. Note that with JDEV the platform used for your code may be different than the platform used by JDEV itself.
    Please modify all of your exception handlers to print the stack trace. Add this as the first line in each handler.
    ex.printStackTrace();The stacktrace contains important information about where the problem really occured.
    See the Java docs for NamingException - http://docs.oracle.com/javase/6/docs/api/javax/naming/NamingException.html
    >
    This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass. This exception captures the information pinpointing where the operation failed, such as where resolution last proceeded to.
    •Resolved Name. Portion of name that has been resolved.
    •Resolved Object. Object to which resolution of name proceeded.
    •Remaining Name. Portion of name that has not been resolved.
    •Explanation. Detail explaining why name resolution failed.
    •Root Exception. The exception that caused this naming exception to be thrown.

  • Newbie question for LogOn trigger and Connection String

    Hi,
    I would like to set certain session variables in the logon trigger. Is there a connection string attribute or some other way to pass a string or some data to the session.
    regards
    Stefan

    Hi,
    my concrete problem is that our application only uses one user. eg. appuser . During the login process of the application the "real" user name, language and other attributes are set in a packag as global variables.
    This works fine, but as soon as a usr logs on the DB without our application login then these are ofcourse not filled. My idea was to maybe to be able to enhance the connection string and to be able to pass some more information to the logon trigger.
    regards
    Stefan

  • Newbie question - trying to apply info from a table to a cell

    I'm a trucker who has purchased a MBP and want to use a spreadsheet to calculate cost for fuel. I am familiar with spreadsheets, but not that in depth. I want to be able to apply state taxes for fuel cost, but not sure how to apply it using a table. I want to use a cell to type in the state abbreviation and have the cell apply the state sales tax to my spreadsheet from a table with all the states and sale taxes. Here the table I have set up in my spreadsheet.
    STATE RATE
    AL $0.19
    AK $0.08
    AZ $0.26
    AR $0.225
    CA $0.367
    CO $0.205
    CT $0.26
    DE $0.22
    DC $0.00
    FL $0.3057
    GA $0.141
    HI $0.00
    ID $0.25
    IL $0.367
    IN $0.27
    IA $0.225
    KS $0.26
    KY $0.222
    LA $0.20
    ME $0.279
    MD $0.2425
    MA $0.21
    MI $0.28
    MN $0.20
    MS $0.18
    MO $0.17
    MT $0.2775
    NE $0.27
    NV $0.27
    NH $0.18
    NJ $0.175
    NM $0.21
    NY $0.3685
    NC $0.299
    ND $0.23
    OH $0.28
    OK $0.13
    OR $0.24
    PA $0.381
    RI $0.30
    SC $0.16
    SD $0.22
    TN $0.17
    TX $0.20
    UT $0.25
    VT $0.26
    VA $0.195
    WA $0.34
    WV $0.315
    WI $0.329
    WY $0.14
    Any help would be appreciated a great deal.
    "El Capitone"
    P.S. if you need to see the actual spreadsheet, I can send it to you by email. I tried to attach it to this message, but was unable to do so.

    El Capitone,
    I'm assuming you want to find the total amount of state taxes paid to each individual state, but I'm not sure what these rates mean or how they are to be applied. Actually, their application may vary from state to state. However, two possiblities are shown here and if this is not what you want you'll get back to us.
    1. If the rates mean $ per gallon then tax paid is is shown in column D below and the formula is:
    =IF(ISBLANK(Gals),"",Tax Rate*Gals)
    2. If the rate means a percent of the pump price after all other taxes and charges are added in, the result appears in column F:
    =IF(ISBLANK(Tot Cost),"",Tot Cost-Tot Cost/(1+Tax Rate))
    As I say, I have the feeling this problem may be more complex.
    pw

  • Java newbie questions...Setting the classpath in Unix

    When you set the classpath, how do you include anything already in the classpath? For instance, if your profile sets your classpath to
    "/home/weblogic/:home/weblogic/weblogic.jar, and you want to add MyJar.jar to it, can you enter:
    export classpath=~:MyJar.jar
    My question really boils down to how do you prefix the existing CLASSPATH environment variable to any new classes or jars you want to add to it. I think it's the tilde, but I'm not sure.

    In csh, the CLASSPATH environment variable is modified with the setenv command. The format is:
    setenv CLASSPATH path1:path2
    In sh, the CLASSPATH environment variable can be modified with these commands:
    CLASSPATH = path1:path2:...
    export CLASSPATH
    ====
    (From the Sun documentation)
    or, in sh,
    export CLASSPATH=path1:path2
    should work

  • Newbie Question: - Which Patch Sets/Interim Patches to install?

    We have 6 Oracle 10.2.3.0 Databases (AIX5.3 64bit) including a 10.2.3.0 Grid Db, Now I have stated to investigate the possibility of patching our new Db/Infrastructure using GRID patching wizard (Deployment > Patch Oracle Software) . The question I have it what patches will I install? All of them? to all Db ? How do I know which to install and which ones not to install?
    When I run the Patch Oracle Software wizard, It queries my metal ink account and pulls back around 460 patches?
    If anybody could help or provide a link to some more information it would be a great help.

    CPU patches have the interim patches in them, so no need to do them individually.
    I suspect that the patches to apply isn't the issue here; rather, the TESTING you need to do, so as not to introduce nasty stuff by accident. e.g. a new tweak to the CBO/whatever in a CPU may suddenly make lots of your important queries behave strangely. Always patch your test system first, and spend real time ensuring that nothing bizarre has happened to your system. It's always a panic-inducing time uninstalling patches, so get it right up-front.
    “You probably could be a hamburger-flipping scientist” – Jonathan Lewis

  • Newb Question regarding Same InDesign CS4 file used on two different computers.

    Probably been answered 1,000 times or is common knowledge, but I could not get it narrowed down using the search feature.
    I would like to take an InDesign CS4 file ( a book) created on my imac, and work on it while away on a macbook pro with identical InDesign CS4 software. I will only be changing layout and some text, but will not be modifying anything that is a link other than re-sizing.
    After doing this, will I be able to put the updated file into my imac and be ready to go, or am I playing with fire? If I might do more harm than good, I will not do it. It's just that I have a big project due and I have to be out of town for 3 days and would like to work on it if I can while I'm gone.
    Thanks for any input,
    Sebastian Gaeta

    If you only copy the InDesign file then yes, preflight will alert you to the missing links. Just ignore it, or package the file and transfer the links, too.
    Better yet, get yourself a membership to Dropbox. With Dropbox installed on both computers you can keep the entire job (up to 2 GB) in one folder and the files will sync to Dropbox’s servers, which will then sync to all computers sharing that folder. Open InDesign file on Mac 1, make changes, close file. Open file on Mac 2, make changes, close file. Open file on Mac 1 and the changes will be there. Best of all, you can go to Dropbox’s website and access a file’s history. This means you can go back to previous version of the file if you need to.
    I add a folder to my Dropbox folder for any current job. When I’m done I move the files out and archive them.
    Self serving link: https://www.dropbox.com/referrals/NTUwMDUyOTI5
    If you sign up using the above link I get a tiny increase in my allotted storage.

Maybe you are looking for